brando56894
Wizard
- Joined
- Feb 15, 2014
- Messages
- 1,537
There are problems with my jail creation that causes Python 2.7 to run incorrectly. I'm trying to execute nzbToSickbeard.py and it keeps telling me this
All nzbToSickbeard does is call nzbToMedia (GitHub), which works...mostly. Everything else that uses Python like NZBGet, SickRage/SickBeard, SABnzbd, and CouchPotato work perfectly.
I've had this problem in multiple fresh FreeBSD jails and multiple clonings of the same git repository. I have just found out that this is a problem specifically with my jail creation on FreeNAS 9.3 since I downloaded and installed FreeBSD 9.3 in a VM. I installed Git, it's dependencies, and then cloned nzbToMedia. I executed nzbToSickbeard.py with Python 2.7 and it worked perfectly!
So can someone help me figure out what's wrong with the template I'm using for my Jail creation? It's the stock/default one, so I don't know what's happening.
Here's some info about my environment in one of my FreeBSD jails that holds NZBGet, SickRage and a few other programs.
Version: FreeNAS-9.3-STABLE-201502070132
Code:
Traceback (most recent call last): File "/usr/local/sabnzbd/nzbToMedia/nzbToSickBeard.py", line 255, in <module> result = nzbToMedia.main(sys.argv, section) AttributeError: 'module' object has no attribute 'main'
All nzbToSickbeard does is call nzbToMedia (GitHub), which works...mostly. Everything else that uses Python like NZBGet, SickRage/SickBeard, SABnzbd, and CouchPotato work perfectly.
I've had this problem in multiple fresh FreeBSD jails and multiple clonings of the same git repository. I have just found out that this is a problem specifically with my jail creation on FreeNAS 9.3 since I downloaded and installed FreeBSD 9.3 in a VM. I installed Git, it's dependencies, and then cloned nzbToMedia. I executed nzbToSickbeard.py with Python 2.7 and it worked perfectly!
So can someone help me figure out what's wrong with the template I'm using for my Jail creation? It's the stock/default one, so I don't know what's happening.
Here's some info about my environment in one of my FreeBSD jails that holds NZBGet, SickRage and a few other programs.
Code:
root@Template:~ # which python /usr/local/bin/python root@Template:~ # ls -l /usr/local/bin/|grep python lrwxr-xr-x 1 root wheel 24 Jan 17 18:15 python -> /usr/local/bin/python2.7 lrwxr-xr-x 1 root wheel 9 Jan 9 09:30 python2 -> python2.7 lrwxr-xr-x 1 root wheel 16 Jan 9 09:30 python2-config -> python2.7-config -r-xr-xr-x 1 root wheel 5176 Jan 9 09:28 python2.7 -r-xr-xr-x 1 root wheel 1687 Jan 9 09:28 python2.7-config root@Template:~ # echo $PATH /sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/root/bin root@Template:~ # ls /usenet/nzbToMedia/ .git TorrentToMedia.py changelog.txt license.txt nzbToHeadPhones.py nzbToSickBeard.py .gitattributes autoProcessMedia.cfg error.log logs nzbToMedia.py nzbtomedia .gitignore autoProcessMedia.cfg.old getffmpeg.sh nzbToCouchPotato.py nzbToMylar.py nzbtomedia.db README.md autoProcessMedia.cfg.spec libs nzbToGamez.py nzbToNzbDrone.py tests
Version: FreeNAS-9.3-STABLE-201502070132
Last edited: