Calling Shotgun API 3.0.9b2 from IronPython 2.7.3

loocas | dotNET,Python,software,technical | Sunday, July 8th, 2012

IronPython and Shotgun

In February, I wrote about calling the JSON variant of the Shotgun API from the IronPython 2.7.1. Now it is time to upgrade the pipeline tools to the latest versions of both IronPython and the Shotgun API.

There are, however, some steps you have to take in order to make things work without issues.

Naturally, you still have to follow the steps described in the february article. In addition to that, however, you also have to modify the some more. On lines 52, 53 and 54, remove the relative module paths. So, basically just remove the dots from the “.lib“. For some reason, IronPython is having issues with relative imports outside of packages.

After that, everything should be running smoothly again.

Here are a few screenshots from the IronPython console as well as from the MAXScript Listener in 3ds Max 2013.

IronPython 2.7.3:
IronPython 2.7.3 Shotgun

duberPython (utilizing IronPython engine 2.7.3):
duberPython Shotgun


  1. Can you open an issue on the IronPython tracker so that we can fix the issue with relative paths if necessary?

    Comment by Slide — July 9, 2012 @ 02:18

  2. Hey, Slide. Sure thing. I’ll just gather the stderrs and submit a bug report.

    Comment by loocas — July 9, 2012 @ 09:12

  3. hey!
    my name is Carlos Anguiano, i’m the head max developer at pixo as a few months…
    was wondering if you could contact me about some duber python question that have come up.
    thanks for your time and efforts, I’m looking forward to hearing from you.

    Comment by Carlos Anguiano — November 17, 2012 @ 04:03

RSS feed for comments on this post. TrackBack URI

Leave a comment

Powered by WordPress | Theme by Roy Tanck