Opened 17 years ago
Closed 14 years ago
#14801 closed defect (fixed)
bittorrent port broken on Leopard - py-wxpython version issues
Reported by: | em@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.6.0 |
Keywords: | Cc: | ||
Port: | bittorrent |
Description
Bittorrent will not run, it gives permission errors.
$ bittorrent.py --version Traceback (most recent call last): File "/opt/local/bin/bittorrent.py", line 20, in ? from BitTorrent.translation import _ File "/opt/local/lib/python2.4/site-packages/BitTorrent/__init__.py", line 72, in ? from BitTorrent.platform import get_temp_subdir, get_home_dir, get_dot_dir, is_frozen_exe File "/opt/local/lib/python2.4/site-packages/BitTorrent/platform.py", line 374, in ? no_really_makedirs(locale_root) File "/opt/local/lib/python2.4/site-packages/BitTorrent/platform.py", line 364, in no_really_makedirs os.makedirs(path) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/os.py", line 159, in makedirs mkdir(name, mode) OSError: [Errno 13] Permission denied: '/opt/local/bin/locale'
I'm not sure what the locale file should contain (if anything) but if I just touch it, then I still get permissions errors:
$ sudo touch /opt/local/bin/locale $ bittorrent.py --version Traceback (most recent call last): File "/opt/local/bin/bittorrent.py", line 90, in ? inject_main_logfile() File "/opt/local/lib/python2.4/site-packages/BitTorrent/__init__.py", line 125, in inject_main_logfile mode='a', maxBytes=2**20, backupCount=1) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/logging/handlers.py", line 109, in __init__ BaseRotatingHandler.__init__(self, filename, mode, encoding) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/logging/handlers.py", line 61, in __init__ logging.FileHandler.__init__(self, filename, mode, encoding) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/logging/__init__.py", line 757, in __init__ stream = open(filename, mode) IOError: [Errno 13] Permission denied: '/Users/ed/.bittorrent/bittorrent.log'
$ uname -a Darwin QuickSilver.local 9.2.2 Darwin Kernel Version 9.2.2: Tue Mar 4 21:23:43 PST 2008; root:xnu-1228.4.31~1/RELEASE_PPC Power Macintosh
Change History (6)
comment:1 Changed 17 years ago by jmroot (Joshua Root)
comment:2 Changed 17 years ago by em@…
Thanks for your help. Doesn't seem like wxWidgets26 will ever build on Leopard (depreciated calls). I removed the older version of bittorrent, reverted my local portfile back to plain wxWidgets and everything built OK. Only issue is still have to chown ~/Library/Application\ Support/BitTorrent/ after install. I didn't see any complaint about missing wx.
bittorrent @5.2.0_0 (active) py-wxpython @2.8.7.1_0 (active) wxWidgets @2.8.7_0 (active)
comment:3 Changed 17 years ago by jmroot (Joshua Root)
Summary: | bittorrent port broken - permission errors → bittorrent port broken on Leopard - py-wxpython version issues |
---|
comment:5 Changed 14 years ago by jmroot (Joshua Root)
Keywords: | bittorrent removed |
---|---|
Port: | bittorrent added |
comment:6 Changed 14 years ago by jmroot (Joshua Root)
Resolution: | → fixed |
---|---|
Status: | new → closed |
Guess we'll called this fixed as per comment:2.
Note: See
TracTickets for help on using
tickets.
A version bump takes care of the locale thing, and you can work around the .bittorrent permissions issue with
sudo chown -R $USER ~/.bittorrent
. After that, it complains that there is no wx module, which seems to be because it requires wx 2.6 rather than the current 2.8.I bumped the version and changed the dependency to py-wxpython26 in r35364, but I can't test any further because wxWidgets26 won't build for me.