[MacPorts] #14801: bittorrent port broken - permission errors
MacPorts
trac at macosforge.org
Tue Mar 25 13:36:48 PDT 2008
#14801: bittorrent port broken - permission errors
---------------------------+------------------------------------------------
Reporter: em at muljan.com | Owner: macports-tickets at lists.macosforge.org
Type: defect | Status: new
Priority: Normal | Milestone: Port Bugs
Component: ports | Version: 1.6.0
Keywords: bittorrent |
---------------------------+------------------------------------------------
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
}}}
--
Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/14801>
MacPorts </projects/macports>
Ports system for Mac OS
More information about the macports-tickets
mailing list