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

13 Mar, 2023 06:46 AM
12 Mar, 2023 03:02 AM
11 Mar, 2023 02:11 AM
10 Mar, 2023 06:47 AM
10 Mar, 2023 12:46 AM

 

02 Mar, 2023 08:49 PM
27 Feb, 2023 01:29 PM
24 Feb, 2023 09:28 AM
21 Feb, 2023 02:24 AM
20 Feb, 2023 03:23 AM
31 Jan, 2023 11:29 PM