Shotgun integration

63 views
Skip to first unread message

Brice Lefebvre

unread,
Jul 25, 2016, 6:15:30 AM7/25/16
to Royal Render Knights Tavern
Hello !

voilas I have some problem to the integration of Shotgun in RoyalRender with Nuke. I do not arive to launch render, and the documentation is weak on the integration method.

I can not have the loader SGTK

You can help me ? 

Thanks in advence :) 


Log : 

   *************************************** : 
S 16|     ***** If you get an error importing the shotgun toolkit (sgtk) module, then please copy the module folder into [RR]/plugins/python_modules/ 
R  0| >"C:\Program Files (x86)\rrService\lc64\rrResetexitcode.exe"
R  1| +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
R  2| ++++++++++++++++++++++++++++++++++++++++++ START ++++++++++++++++++++++++++++++++++++++++++++++
R  3| ++++++++++++++++++++++++++++++++++++++++ 7.0.11 ++++++++++++++++++++++++++++++++++++++++++
R  4| +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
R  5| rrErr: [10:56.50] ERROR: ShotgunWrite1: 'WriteTank': unknown command. This is most likely from a corrupt .nk file, or from a missing or unlicensed plug-in. Can't render from that Node.
R  6| rrErr: Traceback (most recent call last):
R  7| rrErr:   File "//SERVEUR_X/core/00_RoyalRender/render_apps/scripts/nuke_shotgun.py", line 103, in <module>
R  8| rrErr:     makeLocalRenderOut(sys.argv[1],sys.argv[2],sys.argv[3],sys.argv[4],sys.argv[5],sys.argv[6])
R  9| rrErr:   File "//SERVEUR_X/core/00_RoyalRender/render_apps/scripts/nuke_shotgun.py", line 56, in makeLocalRenderOut
R 10| rrErr:     import sgtk
R 11| rrErr: ImportError: No module named sgtk
R 12| rrErr: No module named sgtk
R 13|         
R 14| >"C:\Program Files\Nuke9.0v7\Nuke9.0.exe" -X ShotgunWrite1  -f    -m 40 --priority low "C:\RR_localdata\cachedscenes\serveur_m_premierproj\sequences\3a9341e0\nuke\P10.v001.nk" 75-78/1 
R 15| Nuke 9.0v7, 64 bit, built Aug 17 2015.
R 16| Copyright (c) 2015 The Foundry Visionmongers Ltd.  All Rights Reserved.
R 17| Licence expires on: 2016/8/5
R 18| Failed to start Toolkit Engine - No module named sgtk
R 19| xml error : 4
R 20| 
R 21| >"C:\Program Files (x86)\rrService\lc64\rrCheckexitcode.exe" 1 1 0 75 
R 22| rrErr: [10:56.53] ERROR: ShotgunWrite1: 'WriteTank': unknown command. This is most likely from a corrupt .nk file, or from a missing or unlicensed plug-in. Can't render from that Node.
R 23| rrErr: ShotgunWrite1 cannot be executed
R 24| +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
R 25| +++++++++++++++++++++++++++07.25. 10:56.54 Render Executable done +++++++++++++++++++++++++++++++++++
R 26| ++++++++++++++++++++ Royal Render checks the return code of the executable ++++++++++++++++++++
R 27| ++++ Executable returned 1 (0x 1) as exit code for frame 75.
R 28| ++++ Executable crashed 
R 29| ++++++++++++++++++++++++++++++++++++++++++++ 7.0.18c+++++++++++++++++++++++++++++++++++++++++++++++++++
R 30|  ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
   0|  STATION10  rrClient console L     7.0.36    rrVer7.0.36
   1|  10:56:54,35
   2|  Job ID: {YTH}
   3|  ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
   4| 
   5| 
   6| 
   7| 
   8| Current time:07.25 10:56.59
   9| 
  10| 
  11| Total processing time: 00:00.31
  12| Max memory usage: 0.09GB 
  13| Max CPU usage: 1.0cores  3% (of 40 cores)
C  0| ************************* LOCAL RENDER INFORMATION *************************
C  1| Total render files found:     0
C  2| Files successful copied:      0
C  3| Files broken/not copied:      0
C  4| Total render files found (main pass only):     0
C  5| List of files: (C=copied    R=successfully read    X=Exr cropped    F=image verify failed    V=rrViewer cache created)
C  6| ************************* CLIENT REPORTS DURING THIS RENDER *************************
C  7| 
C  8| Permanent error in this  log file: rrerr: [10:56.50] error: shotgunwrite1: 'writetank': unknown command. this is most likely from a corrupt .nk file, or from a missing or unlicensed plug-in. can't render from that node.
C  9| Permanent error in this  log file: rrerr: [10:56.53] error: shotgunwrite1: 'writetank': unknown command. this is most likely from a corrupt .nk file, or from a missing or unlicensed plug-in. can't render from that node.
C 10| Error in this log file (76):     ***** if you get an error importing the shotgun toolkit (sgtk) module, then please copy the module folder into [rr]/plugins/python_modules/ 
C 11| Error in this log file (88): rrerr: importerror: no module named sgtk
C 12| Error in this log file (96): xml error : 4
C 13| 
C 14| Permanent error found in this log

RR, Schoenberger

unread,
Jul 31, 2016, 8:20:26 AM7/31/16
to rrKn...@googlegroups.com
Hi
 
You should have the shotgun Toolkit python module on the workstations.
Otherwise you should not be able to use the nodes.
 
 
We will probably change the submission plugin that the workstation saves a copy of the nuke file for rendering.
Then you will not need to install anything with shotgun on the render nodes.
 
 
 
regards,
Holger Schönberger
 

Please use the rrKnights Tavern
or our support system for new questions.

 


From: rrkn...@googlegroups.com [mailto:rrkn...@googlegroups.com] On Behalf Of Brice Lefebvre
Sent: Monday, July 25, 2016 12:15 PM
To: Royal Render Knights Tavern
Subject: [rrKnights] Shotgun integration

--
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.
Visit this group at https://groups.google.com/group/rrKnights.
For more options, visit https://groups.google.com/d/optout.

Brice Lefebvre

unread,
Aug 3, 2016, 8:34:17 AM8/3/16
to Royal Render Knights Tavern
Hi ! sorry i have a another issue with ShotGun intergration, when i intergrate in RR Config i have this error : 


 ERR wrong entity name CustomEntity04. (Please no not enter the display name!)
                    Exception running command:
                     
                        allInstancesOfEntity = sg.find('CustomEntity04', filters=[])
                    
                    Traceback (most recent call last):
                      File "<string>", line 2, in <module>
                    AttributeError: 'NoneType' object has no attribute 'find'
                    
                    
                    
                    PY| Embedded Python Interpreter. 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)]
                    PY| list sys.path:
                    PY| //SERVEUR_X/core/00_RoyalRender/bin/python27/win32
                    PY| //SERVEUR_X/core/00_RoyalRender/bin/python27/python27.zip/Lib
                    PY| //SERVEUR_X/core/00_RoyalRender/plugins/python_modules
                    
                    
                    PY| rrSG (Shotgun) loaded
                    PY| None
                    PY| __main__
                    PY|   File "<string>", line 2
                    PY|     sg = shotgun_api3.Shotgun('https://digiteyes.shotgunstudio.com', 'royalRenderViewer', '
                    PY|                                                                                            ^
                    PY| SyntaxError: EOL while scanning string literal
                    PY| sg
                    PY| None
                    

 rrConfig 7.0.35 32bit []


Thanks 

Brice Lefebvre

unread,
Aug 16, 2016, 5:06:55 AM8/16/16
to Royal Render Knights Tavern
Up ? 

RR, Schoenberger

unread,
Aug 16, 2016, 8:27:04 AM8/16/16
to rrKn...@googlegroups.com
Hi
 
Please upload your file RR/sub/cfg_global/globalconfig.ini via this website www.RoyalRender.de/upload_r.php
Then we can try to repro the issue.
 
 
regards,
Holger Schönberger
 

Please use the rrKnights Tavern
or our support system for new questions.

 

From: rrkn...@googlegroups.com [mailto:rrkn...@googlegroups.com] On Behalf Of Brice Lefebvre
Sent: Tuesday, August 16, 2016 11:07 AM

To: Royal Render Knights Tavern
Subject: [rrKnights] Re: Shotgun integration

Brice Lefebvre

unread,
Aug 29, 2016, 6:22:07 AM8/29/16
to Royal Render Knights Tavern, schoen...@royalrender.de
Hi ! 

I send it to you :) 

Regards 

Brice Lefebvre

unread,
Sep 2, 2016, 9:25:29 AM9/2/16
to Royal Render Knights Tavern, schoen...@royalrender.de
up ?

RR, Schoenberger

unread,
Sep 2, 2016, 9:37:30 AM9/2/16
to rrKn...@googlegroups.com
Hi
 
Yes, I will check the status of the investigation later.
 
 
regards,
Holger Schönberger
 

Please use the rrKnights Tavern
or our support system for new questions.

 

From: rrkn...@googlegroups.com [mailto:rrkn...@googlegroups.com] On Behalf Of Brice Lefebvre
Sent: Friday, September 02, 2016 3:25 PM

To: Royal Render Knights Tavern
Cc: schoen...@royalrender.de
Subject: Re: [rrKnights] Re: Shotgun integration

RR, Schoenberger

unread,
Sep 7, 2016, 10:51:34 AM9/7/16
to rrKn...@googlegroups.com
Sorry for the slow reply for this topic.
 
The issue seems to be a copy-paste issue.
Please open rrConfig, tab 3rd party.
Edit the auth key and remove the 3 empty characters in front of the key.
 
 
 
regards,
Holger Schönberger
 

Please use the rrKnights Tavern
or our support system for new questions.

 


From: rrkn...@googlegroups.com [mailto:rrkn...@googlegroups.com] On Behalf Of RR, Schoenberger
Sent: Friday, September 02, 2016 3:37 PM
To: rrKn...@googlegroups.com
Subject: RE: [rrKnights] Re: Shotgun integration

Brice Lefebvre

unread,
Sep 9, 2016, 6:30:01 AM9/9/16
to Royal Render Knights Tavern
Thank ! but i have another issue :/. At the 7th step i have this error : 

 ERR Unable to create submit entities
                    Exception running command:
                     
                        createNewFields('CustomEntity07', entityConfig.submitEntityFields)
                    
                    Traceback (most recent call last):
                      File "<string>", line 2, in <module>
                      File "<string>", line 13, in createNewFields
                      File "//SERVEUR_X/core/00_RoyalRender/plugins/python_modules\shotgun_api3\shotgun.py", line 1268, in schema_field_create
                        return self._call_rpc("schema_field_create", params)
                      File "//SERVEUR_X/core/00_RoyalRender/plugins/python_modules\shotgun_api3\shotgun.py", line 2130, in _call_rpc
                        self._response_errors(response)
                      File "//SERVEUR_X/core/00_RoyalRender/plugins/python_modules\shotgun_api3\shotgun.py", line 2406, in _response_errors
                        raise Fault(sg_response.get("message", "Unknown Error"))
                    Fault: API schema_field_create invalid/missing 'type' string:
                    "CustomEntity06"
                    Valid types:
                    ["ApiUser",
                     "AppWelcome",
                     "Asset",
                     "Attachment",
                     "Banner",
                     "Booking",
                     "Camera",
                     "ClientUser",
                     "CustomEntity01",
                     "CustomEntity02",
                     "CustomEntity03",
                     "CustomEntity04",
                     "CustomEntity05",
                     "CustomEntity28",
                     "Cut",
                     "CutItem",
                     "Department",
                     "Group",
                     "HumanUser",
                     "Icon",
                     "LocalStorage",
                     "MocapSetup",
                     "MocapTake",
                     "MocapTakeRange",
                     "Note",
                     "Page",
                     "Performer",
                     "PermissionRuleSet",
                     "Phase",
                     "PhysicalAsset",
                     "PipelineConfiguration",
                     "Playlist",
                     "Project",
                     "PublishedFile",
                     "PublishedFileDependency",
                     "PublishedFileType",
                     "Release",
                     "Revision",
                     "RvLicense",
                     "Sequence",
                     "ShootDay",
                     "Shot",
                     "Status",
                     "Step",
                     "Tag",
                     "Task",
                     "TaskTemplate",
                     "Ticket",
                     "Version"]
                    
                    
                    
                    PY| Embedded Python Interpreter. 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)]
                    PY| list sys.path:
                    PY| //SERVEUR_X/core/00_RoyalRender/bin/python27/win32
                    PY| //SERVEUR_X/core/00_RoyalRender/bin/python27/python27.zip/Lib
                    PY| //SERVEUR_X/core/00_RoyalRender/plugins/python_modules
                    
                    
                    PY| rrSG (Shotgun) loaded
                    PY| None
                    PY| __main__
                    PY| sg
                    PY| <shotgun_api3.shotgun.Shotgun object at 0x070A2DF0>
                    PY| adding fields [{'input': {'valid_types': ['Sequence']}, 'type': 'entity', 'name': 'linked_sequence'}, {'input': {'valid_types': ['Shot']}, 'type': 'entity', 'name': 'linked_shot'}, {'input': {'valid_types': ['Task']}, 'type': 'entity', 'name': 'linked_task'}, {'input': {'valid_types': ['HumanUser']}, 'type': 'entity', 'name': 'linked_user'}, {'input': {'valid_types': ['CustomEntity06']}, 'type': 'multi_entity', 'name': 'linked_jobs'}, {'type': 'text', 'name': 'render_application'}, {'input': {'open_in_new_window': True}, 'type': 'url', 'name': 'render_scene_name'}] to entityType CustomEntity05...
                    
                    PY| None
                    PY| __main__
                    PY| sg
                    PY| <shotgun_api3.shotgun.Shotgun object at 0x07510BB0>
                    
                    PY| None
                    PY| __main__
                    PY| sg
                    PY| <shotgun_api3.shotgun.Shotgun object at 0x075107B0>
                    PY| adding fields [{'input': {'valid_types': ['Sequence']}, 'type': 'entity', 'name': 'linked_sequence'}, {'input': {'valid_types': ['Shot']}, 'type': 'entity', 'name': 'linked_shot'}, {'input': {'valid_types': ['Task']}, 'type': 'entity', 'name': 'linked_task'}, {'input': {'valid_types': ['HumanUser']}, 'type': 'entity', 'name': 'linked_user'}, {'input': {'valid_types': ['CustomEntity06']}, 'type': 'multi_entity', 'name': 'linked_jobs'}, {'type': 'text', 'name': 'render_application'}, {'input': {'open_in_new_window': True}, 'type': 'url', 'name': 'render_scene_name'}] to entityType CustomEntity07...
                    

 rrConfig 7.0.35 32bit []



Le lundi 25 juillet 2016 12:15:30 UTC+2, Brice Lefebvre a écrit :

RR, Schoenberger

unread,
Sep 13, 2016, 8:35:07 AM9/13/16
to rrKn...@googlegroups.com
Hi
 
 
According to the error message, it tries to use "CustomEntity06", which is wrong.
If you check the setting for the entities, they should be
 
Entity you choose for "render job": CustomEntity04
Entity you choose for "submitted renders": CustomEntity05
 
in your case.
 
 
regards,
Holger Schönberger
 

Please use the rrKnights Tavern
or our support system for new questions.

 

From: rrkn...@googlegroups.com [mailto:rrkn...@googlegroups.com] On Behalf Of Brice Lefebvre
Sent: Friday, September 09, 2016 12:30 PM

To: Royal Render Knights Tavern
Subject: [rrKnights] Re: Shotgun integration
--
Reply all
Reply to author
Forward
0 new messages