Python Modules
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
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 04 Feb, 2013 10:33 PM
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 Posted by Mark Parson on 05 Feb, 2013 03:39 AM
Perfect, thanks!
Mark Parson closed this discussion on 05 Feb, 2013 03:44 AM.