Page 1 of 1

0.5 Beta 6 - python - missing paths

Posted: January 20th, 2010, 3:33 pm
by imthenachoman
Version: 0.5.0 beta 6
OS:
OS X - Snow Leopard
Install-type: OS X app
Is the issue reproducible?: Yes

I created a python post processing script and ran it via CLI and SabNZBD. The path's return differ which results in libraries I am unable to import (eg: plistlib). Any thoughts?

Code: Select all

#
#!/usr/bin/python

import sys

print "Version Information"
print sys.version
print ""
print "Path Information"
for i in sys.path:
        print "\t" + i
print ""
print "Executable"
print "\t" + sys.executable
When run via CLI, I get:
$ ./test.py
Version Information
2.6.1 (r261:67515, Jul  7 2009, 23:51:51)
[GCC 4.2.1 (Apple Inc. build 5646)]

Path Information
        /Volumes/Data/users/enigma/Documents/scripts/sabnzbd
        /System/Library/Frameworks/Python.framework/Versions/2.6/lib/python26.zip
        /System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6
        /System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-darwin
        /System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac
        /System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/lib-scriptpackages
        /System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python
        /System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-tk
        /System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-old
        /System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload
        /Library/Python/2.6/site-packages
        /System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/PyObjC
        /System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/wx-2.8-mac-unicode

Executable
        /usr/bin/python
When run as a post processing script via SabNZBD I get:
    'import site' failed; use -v for traceback
Version Information
2.6.1 (r261:67515, Jul  7 2009, 23:51:51)
[GCC 4.2.1 (Apple Inc. build 5646)]

Path Information
/Volumes/Data/users/enigma/Documents/scripts/sabnzbd
/Applications/SABnzbd.app/Contents/Resources
/Applications/SABnzbd.app/Contents/Resources/lib/python26.zip
/Applications/SABnzbd.app/Contents/Resources/lib/python2.6/
/Applications/SABnzbd.app/Contents/Resources/lib/python2.6/plat-darwin
/Applications/SABnzbd.app/Contents/Resources/lib/python2.6/plat-mac
/Applications/SABnzbd.app/Contents/Resources/lib/python2.6/plat-mac/lib-scriptpackages
/Applications/SABnzbd.app/Contents/Resources/lib/python2.6/../../Extras/lib/python
/Applications/SABnzbd.app/Contents/Resources/lib/python2.6/lib-tk
/Applications/SABnzbd.app/Contents/Resources/lib/python2.6/lib-old
/Applications/SABnzbd.app/Contents/Resources/lib/python2.6/lib-dynload
/Applications/SABnzbd.app/Contents/Resources/lib/python2.6/site-packages.zip
/Applications/SABnzbd.app/Contents/Resources/lib/python2.6/site-packages

Executable
/usr/bin/python

Re: 0.5 Beta 6 - python - missing paths

Posted: January 22nd, 2010, 4:40 pm
by zakharm
+1 for this.  I can't run Python scripts on Leopard or Snow Leopard on Beta6 through RC3. 

import errors for any module i try to include.

Re: 0.5 Beta 6 - python - missing paths

Posted: January 22nd, 2010, 7:07 pm
by Camelot
I've had the same problem since v4. something.. hopefully a solution will present itself :)