[Twisted-Python] More trial problems with 8.0.1

Brian Granger ellisonbg.net at gmail.com
Thu Apr 10 14:44:45 MDT 2008


Hi,

Earlier today I posted about a problem with trial.  I reinstalled
8.0.1 and the origianl problem has gone away.  Now I get the following
error.  It appears that trial is trying to write something to the
plugins directory.  But that doesn't (and shouldn't) have the correct
write permissions.  I can run trial with as sudo, but not as a regular
user.  Isn't it bad practice to rely on being able to write to
site-packages at runtime.  Shouldn't such things do into a .twisted
directory or something like that?

Brian

Here is what I get

vpn14:~ bgranger$ trial ipython1
Traceback (most recent call last):
  File "/Library/Python/2.5/site-packages/Twisted-8.0.1-py2.5-macosx-10.5-i386.egg/twisted/python/usage.py",
line 241, in parseOptions
    self.postOptions()
  File "/Library/Python/2.5/site-packages/Twisted-8.0.1-py2.5-macosx-10.5-i386.egg/twisted/scripts/trial.py",
line 293, in postOptions
    self['reporter'] = self._loadReporterByName(self['reporter'])
  File "/Library/Python/2.5/site-packages/Twisted-8.0.1-py2.5-macosx-10.5-i386.egg/twisted/scripts/trial.py",
line 279, in _loadReporterByName
    for p in plugin.getPlugins(itrial.IReporter):
  File "/Library/Python/2.5/site-packages/Twisted-8.0.1-py2.5-macosx-10.5-i386.egg/twisted/plugin.py",
line 200, in getPlugins
    allDropins = getCache(package)
--- <exception caught here> ---
  File "/Library/Python/2.5/site-packages/Twisted-8.0.1-py2.5-macosx-10.5-i386.egg/twisted/plugin.py",
line 179, in getCache
    dropinPath.setContent(pickle.dumps(dropinDotCache))
  File "/Library/Python/2.5/site-packages/Twisted-8.0.1-py2.5-macosx-10.5-i386.egg/twisted/python/filepath.py",
line 540, in setContent
    sib.open('w').write(content)
  File "/Library/Python/2.5/site-packages/Twisted-8.0.1-py2.5-macosx-10.5-i386.egg/twisted/python/filepath.py",
line 369, in open
    return open(self.path, mode+'b')
exceptions.IOError: [Errno 13] Permission denied:
'/Library/Python/2.5/site-packages/Twisted-8.0.1-py2.5-macosx-10.5-i386.egg/twisted/plugins/dropin.cache.new'




More information about the Twisted-Python mailing list