Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#17939 - [twisted] 9.0.0-1 Trial hits permissions denied error unable to update plugins cache

Attached to Project: Arch Linux
Opened by Oliver (MTsoul) - Thursday, 21 January 2010, 04:47 GMT
Last edited by Giovanni Scafora (giovanni) - Thursday, 21 January 2010, 11:20 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Giovanni Scafora (giovanni)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Running the trial binary on any set of tests throws an exception that it cannot open a system file for writing. It seems like something should have been updated during the installation.

It seems like Debian hit the same problem a while back (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=500942) but apparently it's fixed now due to the new release. Their fix seemed to be updating the plugins cache after install.

Steps to reproduce:

$ touch __init__.py
$ trial .
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/twisted/python/usage.py", line 241, in parseOptions
self.postOptions()
File "/usr/lib/python2.6/site-packages/twisted/scripts/trial.py", line 295, in postOptions
self['reporter'] = self._loadReporterByName(self['reporter'])
File "/usr/lib/python2.6/site-packages/twisted/scripts/trial.py", line 281, in _loadReporterByName
for p in plugin.getPlugins(itrial.IReporter):
File "/usr/lib/python2.6/site-packages/twisted/plugin.py", line 200, in getPlugins
allDropins = getCache(package)
--- <exception caught here> ---
File "/usr/lib/python2.6/site-packages/twisted/plugin.py", line 179, in getCache
dropinPath.setContent(pickle.dumps(dropinDotCache))
File "/usr/lib/python2.6/site-packages/twisted/python/filepath.py", line 644, in setContent
f = sib.open('w')
File "/usr/lib/python2.6/site-packages/twisted/python/filepath.py", line 454, in open
return open(self.path, mode+'b')
exceptions.IOError: [Errno 13] Permission denied: '/usr/lib/python2.6/site-packages/twisted/plugins/dropin.cache.new'
This task depends upon

Closed by  Giovanni Scafora (giovanni)
Thursday, 21 January 2010, 11:20 GMT
Reason for closing:  Fixed

Loading...