Thanks for the followup guys! Would there be a new official build to fix this issue, or should i monitor this thread / the beta uploads?
The Deadline 10 release build that went out this morning (10.0.5.1) includes a fix which should resolve your PYTHONPATH issues. With that version you should be able to set PYTHONPATH the same way you were doing with Deadline 8. If itâs still causing you trouble, or something else comes up, let us know.
Awesome, thanks! Will try it asap.
We have tried with 10.0.6.3, and are getting the same problem. When the jobâs pythonpath env variable is set according to what maya will require, we get this:
import httplib2
Error: AttributeError : âmoduleâ object has no attribute âHTTPSConnectionâ
File âs:\work\deadlinetest.pyâ, line 1, in
import httplib2
File âC:\Users\laszlo.sebo\AppData\Local\Thinkbox\Deadline10\pythonAPIs\2017-10-26T042206.0000000Z\httplib2_init_.pyâ, line 930, in
class HTTPSConnectionWithTimeout(httplib.HTTPSConnection):
We are experiencing the same issue with 10.0.25.2, when trying to connect Shotgun.
Seems like httplib2 comes from Shotgun, but cannot tell where httplib comes from, Iâm guessing Deadline10/bin/Lib
.
I see in the httplib code the following:
try:
import ssl
except ImportError:
pass
else:
class HTTPSConnection()...
So if ssl was not loaded for whatever reason, the HTTPSConnection class wonât be available.
I was able to import ssl from dpython.
Finally fixed this, and the solution is to insert the Shotgun path in a specific place in PYTHONPATH
- right after bin/Lib
, I believe. Otherwise it appears ssl or httplib gets shadowed by another path.
Also removing pythonAPIs from the path.
It would be nice to have more control over the include path in Deadline plugins, now a few things are magical.