0.5 Beta 6 - python - missing paths
Posted: January 20th, 2010, 3:33 pm
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?
When run via CLI, I get:
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 as a post processing script via SabNZBD 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
'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