FS#33005 - [scons] crash at start

Attached to Project: Arch Linux
Opened by Alexander F. Rødseth (xyproto) - Friday, 07 December 2012, 18:58 GMT
Last edited by Ray Rashif (schivmeister) - Saturday, 08 December 2012, 05:46 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Ray Rashif (schivmeister)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

When just running "scons" on the commandline (and when trying to install csound-git from AUR), I get this error:

% scons
Traceback (most recent call last):
File "/usr/bin/scons", line 95, in <module>
import pkg_resources
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2827, in <module>
add_activation_listener(lambda dist: dist.activate())
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 704, in subscribe
callback(dist)
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2827, in <lambda>
add_activation_listener(lambda dist: dist.activate())
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2259, in activate
self.insert_on(path)
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2366, in insert_on
self.check_version_conflict()
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2405, in check_version_conflict
for modname in self._get_metadata('top_level.txt'):
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2253, in _get_metadata
for line in self.get_metadata_lines(name):
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 1213, in get_metadata_lines
return yield_lines(self.get_metadata(name))
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 1205, in get_metadata
return self._get(self._fn(self.egg_info,name))
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 1320, in _get
stream = open(path, 'rb')
IOError: [Errno 13] Permission denied: '/usr/lib/python2.7/site-packages/futures-2.1.3-py2.7.egg-info/top_level.txt'


The AUR package pyevolve had a similar error, which could be fixed with this replacement (using distrotools instead of setuptools):
sed -i 's/setuptools import setup, find_packages/distutils.core import setup/' setup.py


Additional info:
* package version(s)
scons 2.2.0-1
python2 2.7.3-2
python2-distribute 0.6.30-1

Steps to reproduce:
* Run scons from the commandline
This task depends upon

Closed by  Ray Rashif (schivmeister)
Saturday, 08 December 2012, 05:46 GMT
Reason for closing:  Not a bug
Comment by Ray Rashif (schivmeister) - Friday, 07 December 2012, 21:41 GMT
Interesting, this must be a corner-case incompatibility/bug since I have been using scons with ardour just fine. Let me take a look.
Comment by Alexander F. Rødseth (xyproto) - Friday, 07 December 2012, 21:55 GMT
Hopefully there's nothing particularly weird with my system. I'll try on another Arch computer as well.
Comment by Alexander F. Rødseth (xyproto) - Friday, 07 December 2012, 23:31 GMT
The problem was caused by having "python2-futures" from AUR installed. My bad, closing this one.

Loading...