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


    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?

  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.

  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


? 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

22 Feb, 2024 05:51 AM
22 Feb, 2024 01:11 AM
21 Feb, 2024 05:27 PM
21 Feb, 2024 04:49 PM
16 Feb, 2024 05:24 PM


06 Feb, 2024 04:45 AM
19 Jan, 2024 09:50 AM
13 Jan, 2024 03:47 AM
05 Jan, 2024 05:10 PM
05 Jan, 2024 04:54 PM
04 Jan, 2024 11:49 PM