AWS Thinkbox Discussion Forums

No Module - Possible PythonPath Issue - Mac OSX

We are attempting to get Draft working on our Deadline farm at our School. We have Deadline set up and running, I’ve tested everything with Maya and After Effects it will render out all the frames but now attempting to get Draft working and I’m running into some issues. We have 10 license for Draft already on the server so I’m told, not sure if there is away for me to be able to check this without access to the server. When submitting a Draft job I get No Plug In found errors, so I’ve run the Diagnostic inside of the Samples folder in the repository. Here is the result of that:


****** Attempting to import Draft. ******
*** "import Draft" failed, error message: ***
No module named Draft

****** Attempting to find Draft. ******

*** Problem finding Draft module, error message: ***
No module named Draft
*** Nothing in sys.path looks like it could be the Draft path.  The problem could be with PYTHONPATH. ***

****** printing diagnostic information ******

sys.version = 2.7.10 (default, Jul 14 2015, 19:46:27) 
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)]
sys.version_info = sys.version_info(major=2, minor=7, micro=10, releaselevel='final', serial=0)
sys.api_version = 1013
sys.platform = darwin
sys.prefix = /System/Library/Frameworks/Python.framework/Versions/2.7
sys.meta_path = []

sys.path:
/Volumes/Rendering/Repository/draft/Samples/Diagnostics
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python
/Library/Python/2.7/site-packages
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC

os.environ:
VERSIONER_PYTHON_PREFER_32_BIT = no
     TERM_PROGRAM_VERSION = 343.7
                  LOGNAME = graphicslab
                     USER = graphicslab
                     PATH = /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
                     HOME = /Users/graphicslab
             TERM_PROGRAM = Apple_Terminal
                     LANG = en_US.UTF-8
                     TERM = xterm-256color
Apple_PubSub_Socket_Render = /private/tmp/com.apple.launchd.OvD8Vydvac/Render
 VERSIONER_PYTHON_VERSION = 2.7
                    SHLVL = 1
                XPC_FLAGS = 0x0
                   TMPDIR = /var/folders/g7/9n0pz5hx0kv6tpjfnztvcwmdwx6m2v/T/
          TERM_SESSION_ID = 8B016925-5D3F-4FBB-9434-C6C8EC874416
         XPC_SERVICE_NAME = 0
               PYTHONPATH = /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python:/Library/Python/2.7/site-packages
            SSH_AUTH_SOCK = /private/tmp/com.apple.launchd.jA5UdQj3hX/Listeners
                    SHELL = /bin/bash
                        _ = /usr/bin/python
                   OLDPWD = /Volumes/Rendering/Repository/draft/Samples
  __CF_USER_TEXT_ENCODING = 0x79D3505B:0:0
                      PWD = /Volumes/Rendering/Repository/draft/Samples/Diagnostics

I’ve also created an Enviroment.plist inside of the /Library/LaunchAgents folder to set the $PYTHONPATH variable at boot, originally a test of echo $PYTHONPATH would return null. We are running OS X 10.10.5, with means we have Python 2.7 install natively.

Any help would be greatly appreciated!
Kris

Hello,

So there are a few things we would recommend. First, if you have the ‘running as user’ option enabled in the repository options under User Security, and do not need to use it, turn it off. Second, if possible, use preserve environment in the same section, user security, so we can try to eliminate that possible problem. Lastly, if are using sudo, and don’t want to use it, we have docs at docs.thinkboxsoftware.com/produc … eservation which will help you with that.

Thanks! We got it working sort of, now it’s more of a deadline issue I believe then a draft issue so I’ll go ask for help over there. :smiley:

Good to hear!

Julie

Privacy | Site terms | Cookie preferences