IronPython install location

Hey,

I need to get PyMongo working with deadline and since deadline uses ironpython, I have to use this work-around:
dllhell.net/2010/05/27/on-using- … ronpython/

I’m curious where the python site-packages directory will be on the repository machine?

Thanks

Hi Brett,
Deadline v6 dropped IronPython support and now uses native cPython. So any 3rd party modules can just be installed in the standard manner.
A typically location for site-packages might be: “C:\Python26x64\Lib\site-packages”. - However, depends on individual studio pipeline setup, etc.
Deadline’s site-packages directory is here: “C:\Program Files\Thinkbox\Deadline6\bin\lib\site-packages” but this location is prone to being overwritten when a newer version of Deadline is installed so it’s not a good idea to install here.
Mike

We are currently not in the position to upgrade to Deadline 6x because our pipeline was designed to work with 5x. Is there any way to get this to work with 5x?

Ah, v5.2 has CPython (x86/x64) as well. Here’s the x64 path: “C:\Program Files\Thinkbox\Deadline\python\2.6.7\x64\lib\site-packages” and it would be fair to assume that if your already on v5.2, no further updates will be coming out for this version.

Okay, cool. I’ll give that a shot. We’re on version:
Deadline Version: 5.2.0.49424
FranticX Version: 2.0.0.49423

Thanks!

Looks like it still doesn’t work when the pymongo egg contents are copied to C:\Program Files\Thinkbox\Deadline\python\2.6.7\x64\lib\site-packages on the slave machines:

try:
import pymongo
print “Successfully imported pymongo”
conn = pymongo.Connection(“pipeline”, 27017)
print “conn:”, conn
except Exception, e:
print Exception, e

results in:
Successfully imported pymongo
<type ‘exceptions.Exception’>
Specified cast is not valid.

Any ideas? I thought those errors would be caused by IronPython and not cPython?

I’ll begin investigating ways we might be able to upgrade to 6x sooner.

It’s recommended to always use the MS Windows installers when installing py 3rd party modules.

pypi.python.org/pypi/pymongo/
pypi.python.org/packages/2.6/p/ … a89df1225a

Using the MS installer still does not work.

Hi,
Do you have CPython installed already in your pipeline? locally/network? If so, it would be easier to just add the required paths to the “Python Settings” in the repository options section. I assume you want Deadline scripts to be able to communicate to a standalone MongoDB?