Nurbs and Silk errors

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
User avatar
Stou
Posts: 40
Joined: Mon Dec 31, 2018 12:24 pm
Location: Laval, Québec, Canada
Contact:

Nurbs and Silk errors

Postby Stou » Mon Jan 28, 2019 2:10 pm

I installed Nurbs and Silk via Addon Manager without any error but when I tried to used it, I have errors. It look like there's some modules and variables missing.

Nurbs errors:
Running the Python command 'Nurbs_createsketchspline' failed:
Traceback (most recent call last):
File "<string>", line 271, in Activated
File "<string>", line 1, in <module>
File "C:\Users\stou9\AppData\Roaming\FreeCAD\Mod\nurbs\nurbswb\createsketchspline.py", line 9, in <module>
from scipy.signal import argrelextrema

No module named scipy.signalRunning the Python command 'Nurbs_createsketchspline' failed:
Traceback (most recent call last):
File "<string>", line 271, in Activated
File "<string>", line 1, in <module>
File "C:\Users\stou9\AppData\Roaming\FreeCAD\Mod\nurbs\nurbswb\createsketchspline.py", line 9, in <module>
from scipy.signal import argrelextrema
Do I need to install scipy.signal package manually to get it work?

Silk errors:
Running the Python command 'ControlPoly4' failed:
Traceback (most recent call last):
File "C:\Users\stou9\AppData\Roaming\FreeCAD\Mod\Silk\ControlPoly4.py", line 42, in Activated
print mode

local variable 'mode' referenced before assignment
Do I need to set some variables somewhere?
Last edited by Stou on Tue Jan 29, 2019 2:23 pm, edited 1 time in total.
User avatar
microelly2
Posts: 4237
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: Nerbs and Silk errors

Postby microelly2 » Mon Jan 28, 2019 2:56 pm

Stou wrote:
Mon Jan 28, 2019 2:10 pm
Do I need to install scipy.signal package manually to get it work?
Yes the complete scipy package is required for a lot of the methods in nurbs wb.
User avatar
Stou
Posts: 40
Joined: Mon Dec 31, 2018 12:24 pm
Location: Laval, Québec, Canada
Contact:

Re: Nerbs and Silk errors

Postby Stou » Mon Jan 28, 2019 6:37 pm

Thanks microelly2!

I installed WinPython 3.6.7.0 which included scipy. In GitHub, I downloaded and installed Winpython64-3.7.1.0.exe (461mb) but there's also Winpython64-3.7.1.0Zero.exe (27mb).

There's no info on what is the 3.7.1.0Zero package. Any idea? Do I need to install the Zero package too?

But only with the one I installed, it seem to work fine. But I didn't do many things with it for now, I have to read about Nerbs and Silk to lear it a little bit.
User avatar
Stou
Posts: 40
Joined: Mon Dec 31, 2018 12:24 pm
Location: Laval, Québec, Canada
Contact:

Re: Nerbs and Silk errors

Postby Stou » Mon Jan 28, 2019 6:46 pm

I talked to fast, I still have problem with variables in Silk.
local variable 'mode' referenced befor assignmentHide main window
User avatar
microelly2
Posts: 4237
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: Nerbs and Silk errors

Postby microelly2 » Mon Jan 28, 2019 7:22 pm

Stou wrote:
Mon Jan 28, 2019 6:46 pm
I talked to fast, I still have problem with variables in Silk.
local variable 'mode' referenced befor assignmentHide main window
emills2 wrote:
Fri May 25, 2018 6:29 am
ping
User avatar
Stou
Posts: 40
Joined: Mon Dec 31, 2018 12:24 pm
Location: Laval, Québec, Canada
Contact:

Re: Nerbs and Silk errors

Postby Stou » Mon Jan 28, 2019 8:23 pm

microelly2 wrote:
Mon Jan 28, 2019 7:22 pm
Stou wrote:
Mon Jan 28, 2019 6:46 pm
I talked to fast, I still have problem with variables in Silk.
local variable 'mode' referenced befor assignmentHide main window
emills2 wrote:
Fri May 25, 2018 6:29 am
ping
??? I don't understand!
User avatar
microelly2
Posts: 4237
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: Nerbs and Silk errors

Postby microelly2 » Tue Jan 29, 2019 10:09 am

Stou wrote:
Mon Jan 28, 2019 8:23 pm
??? I don't understand!
this is a common trick to send emills a notification to read this thread.
User avatar
Stou
Posts: 40
Joined: Mon Dec 31, 2018 12:24 pm
Location: Laval, Québec, Canada
Contact:

Re: Nerbs and Silk errors

Postby Stou » Tue Jan 29, 2019 11:03 am

Ok, you sent a ping to emills! :lol:
User avatar
Kunda1
Posts: 4073
Joined: Thu Jan 05, 2017 9:03 pm

Re: Nerbs and Silk errors

Postby Kunda1 » Tue Jan 29, 2019 1:02 pm

Stou wrote:
Tue Jan 29, 2019 11:03 am
Hey @Stou would you be kind enough to edit the title of the first post of this thread from Nerbs to Nurbs please? Thanks.
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
User avatar
Stou
Posts: 40
Joined: Mon Dec 31, 2018 12:24 pm
Location: Laval, Québec, Canada
Contact:

Re: Nurbs and Silk errors

Postby Stou » Tue Jan 29, 2019 2:25 pm

Done! Thanks, I didn't noticed that typo.