Unknown name space while creating extension node
Hey all, I keep getting the unknown name space error while
trying to import code through the code library- python. I am not
sure why but I am wondering if its the location of the code folder.
anyone familiar with this problem please help.
Thanks in advance
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Frederik De Ble... on 07 May, 2014 10:15 AM
Hi,
We're adding a packaging mechanism to NodeBox where code needs to be located in the "code" subfolder of your project.
Are you using the latest release or running directly from git? The version in git has the packaging built in already.
2 Posted by Ruth Kinyanjui on 12 May, 2014 02:34 AM
Hey Frederik, thanks for your response. I am using the latest release downloaded from this site. Any solution for the error?
thanks
Ruth
Support Staff 3 Posted by Frederik De Ble... on 12 May, 2014 09:04 AM
Then it's probably a code placement issue.
The Python file should be in the same folder as the ndbx file. Don't use complex names, just lower-case letters and underscores.
The namespace is the name of the file + "/" + the name of the function. For example, if you have a file called "colors.py" that contains a function "add_color", the function reference should be
colors/add_color
.4 Posted by Ruth Kinyanjui on 13 May, 2014 03:33 AM
Thanks I figured the problem. For some reason the text editor I was using was not right. It worked after using python compiler.
Thanks
Ruth
Frederik De Bleser closed this discussion on 13 May, 2014 09:18 AM.