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

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