v7 - Can't import the shotgun api

64 views
Skip to first unread message

Tim Crowson

unread,
Apr 28, 2014, 12:21:53 PM4/28/14
to rrKn...@googlegroups.com
Hi Holger!

I was so excited to see the new RR-to-Shotgun Python Module in v7. I'm one of the admins for our Shotgun site, and I'm trying to get that up and running now. I've got everything entered correctly, but when I click 'Install' RR throws a Python error saying it's unable to import the shotgun API:

 ERR - Unable to connect to shotgun:
                    
                    Exception running command:
                     
                        import shotgun_api3
                    
                    Traceback (most recent call last):
                      File "<string>", line 2, in <module>
                    ImportError: No module named shotgun_api3
                    
                    
                    

 rrConfig 7.0.01 32bit [650f88,,,,|ffffffffcccc0010,,,,|ffffffffcccccccc,,,,|]


But I'm confident that we have everything filled in correctly, including the path to the Shotgun API. We've even tried placing the shotgun_api3 module inside [RR]\plugins\python_modules and still have the same problem. I can send you a screen shot off-list if you like. Naturally, if I try the same import with any other Python interpreter, it imports just fine from that same location.

So I can't wait to test this part of rr7, because I think it would REALLY help with getting RR to talk to SG, and we've been trying to figure out a way to do this for some time. Just trying to get over this basic hurdle of importing the SG API. Thanks for any insight or help you can provide.

-Tim

RR, Schoenberger

unread,
Apr 29, 2014, 11:25:31 AM4/29/14
to rrKn...@googlegroups.com
Hi
 
As you browse for the shotgun_api3\shotgun.py file, the path to the api should be right.
Just to recheck: Have you tried to resatrt rrConfig after you saved the settings? (Should not be required, but I am checking every possibility)
 
 
Please replace your file RR/bin/win/rrConfig with the one in this zip:
 
 
Then open a terminal and start
"%RR_ROOT%\bin\win\rrConfig.exe" -debug
 
Try to install the rr shotgun.
Close rrConfig, send or upload www.RoyalRender.de/upload_r.php me the file RR/sub/log/config_...txt
 
 
regards,
Holger Schönberger
 


From: rrKn...@googlegroups.com [mailto:rrKn...@googlegroups.com] On Behalf Of Tim Crowson
Sent: Monday, April 28, 2014 6:22 PM
To: rrKn...@googlegroups.com
Subject: [rrKnights] v7 - Can't import the shotgun api

--
If you reply, the message is send to the user group which is sufficient. ("Reply All" just sends the message twice to the last author which is not required)
---
You received this message because you are subscribed to the Google Groups "Royal Render Knights Tavern" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rrKnights+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Tim Crowson

unread,
May 7, 2014, 1:14:26 PM5/7/14
to rrKn...@googlegroups.com
Thanks Holger. 

After applying an update and trying this again, including what you suggested, we're still unable to import the Shotgun API. I've uploaded the log file to the upload site ("config_ROADRUNNER.txt")


-Tim

Tim Crowson

unread,
May 13, 2014, 5:39:28 PM5/13/14
to rrKn...@googlegroups.com
Holger were you ever able to look at this?

RR, Schoenberger

unread,
May 15, 2014, 5:14:16 AM5/15/14
to rrKn...@googlegroups.com
Hi
 
I am working on all python stuff this week. Already updated the help files, new sample scripts.
And the shotgun functions will be reviewed as well.
 
regards,
Holger Schönberger
 


From: rrKn...@googlegroups.com [mailto:rrKn...@googlegroups.com] On Behalf Of Tim Crowson
Sent: Tuesday, May 13, 2014 11:39 PM
To: rrKn...@googlegroups.com
Subject: [rrKnights] Re: v7 - Can't import the shotgun api

RR support, Schoenberger

unread,
May 15, 2014, 1:18:13 PM5/15/14
to rrKn...@googlegroups.com
Hi

Please change the path in rrConfig from
//fs1/g/_WORKGROUPS/python/shotgun_api3/shotgun.py
to
//fs1/g/_WORKGROUPS/python/

Does it work now?


Holger Schönberger


Quoting "RR, Schoenberger" <schoen...@RoyalRender.de>:

> Hi
>
> I am working on all python stuff this week. Already updated the help
> files, new sample scripts.
> And the shotgun functions will be reviewed as well.
>
> regards,
> Holger Schönberger
>
>
>
> _____
>

Tim Crowson

unread,
May 15, 2014, 4:35:49 PM5/15/14
to rrKn...@googlegroups.com, schoen...@royalrender.de
Thanks Holger! Yes, that got us through the installation correctly! All the new fields were created on the custom entities correctly as well.

I guess my next question is: how does the submitter know which entity (Shot or Sequence) the job needs to be linked with? I see the various scripts you have for interacting with the Shotgun database, but I'm not clear on how to tell RR what entity to link the submitted job to. Couldn't find any info in the updated docs either.



-Tim

RR, Schoenberger

unread,
May 16, 2014, 5:57:22 AM5/16/14
to rrKn...@googlegroups.com
The script file project_manager\shotgun\shotgun_onSubmit.py uses the function rRifle.submitRender and passes username, project, sequenceID and ShotID (that RR got from the scene file) as variables.
This function then tries to get the entity based on these settings.
You might have to modify that function if it does not work for you. Let me know if there is an issue, then I can ask the developer of the shotgun connection.
 
It will add the RR job data and returns an ID to that new entity. This ID is saved with the job.
 

 
regards,
Holger Schönberger
 


From: rrKn...@googlegroups.com [mailto:rrKn...@googlegroups.com] On Behalf Of Tim Crowson
Sent: Thursday, May 15, 2014 10:36 PM
To: rrKn...@googlegroups.com
Cc: schoen...@royalrender.de
Subject: Re: [rrKnights] Re: v7 - Can't import the shotgun api

Reply all
Reply to author
Forward
0 new messages