Unknown name space while creating extension node

Ruth Kinyanjui's Avatar

Ruth Kinyanjui

05 May, 2014 09:38 PM

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

  1. Support Staff 1 Posted by Frederik De Ble... on 07 May, 2014 10:15 AM

    Frederik De Bleser's Avatar

    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. 2 Posted by Ruth Kinyanjui on 12 May, 2014 02:34 AM

    Ruth Kinyanjui's Avatar

    Hey Frederik, thanks for your response. I am using the latest release downloaded from this site. Any solution for the error?
    thanks
    Ruth

  3. Support Staff 3 Posted by Frederik De Ble... on 12 May, 2014 09:04 AM

    Frederik De Bleser's Avatar

    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. 4 Posted by Ruth Kinyanjui on 13 May, 2014 03:33 AM

    Ruth Kinyanjui's Avatar

    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

  5. Frederik De Bleser closed this discussion on 13 May, 2014 09:18 AM.

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

Recent Discussions

06 Feb, 2025 01:37 AM
04 Feb, 2025 06:32 AM
04 Feb, 2025 05:04 AM
30 Jan, 2025 09:31 AM
30 Jan, 2025 09:08 AM

 

30 Jan, 2025 08:40 AM
24 Jan, 2025 07:50 AM
22 Jan, 2025 11:42 PM
21 Jan, 2025 09:43 AM
21 Jan, 2025 09:41 AM
21 Jan, 2025 09:36 AM