Python Modules

Mark Parson's Avatar

Mark Parson

04 Feb, 2013 07:38 PM

I'm trying to use a custom python module that I have installed in my local python env, but nodebox is unable to locate it. How do I install python modules so they will be visible to nodebox?

Thanks!
-Mark

I'm on OSX, trying to us pymongo installed via pip and getting:
ImportError: No module named pymongo

  1. Support Staff 1 Posted by Frederik De Ble... on 04 Feb, 2013 10:33 PM

    Frederik De Bleser's Avatar

    NodeBox 3 uses Jython which has its own package path. However, you can "install" a Python module by just including the package together with your Python script.

    Only pure-Python libraries are supported though; Python libraries with a native C component are not supported. I think pymongo will work, but the native speedups won't.

  2. 2 Posted by Mark Parson on 05 Feb, 2013 03:39 AM

    Mark Parson's Avatar

    Perfect, thanks!

  3. Mark Parson closed this discussion on 05 Feb, 2013 03:44 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

30 Nov, 2023 08:38 PM
29 Nov, 2023 01:33 PM
29 Nov, 2023 05:30 AM
28 Nov, 2023 10:03 PM
28 Nov, 2023 12:38 AM

 

27 Nov, 2023 04:40 AM
26 Nov, 2023 10:02 AM
22 Nov, 2023 09:33 AM
20 Nov, 2023 08:54 PM
17 Nov, 2023 01:43 AM
15 Nov, 2023 06:58 AM