sys module can't be imported (ImportError: No module named _weakrefset)

Bug #800148 reported by Elan Ruusamäe
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
PLD Linux
Fix Released
Medium
Artur Frysiak

Bug Description

shouldn't the sys module moved to python-libs (or weakrefset to -libs) so that sys module can be imported:

$ rpm -qa python*
python-libs-2.7.1-1.x86_64
python-2.7.1-1.x86_64

$ python -c "import sys"
Traceback (most recent call last):
  File "/usr/share/python2.7/site.py", line 62, in <module>
  File "/usr/share/python2.7/os.py", line 398, in <module>
  File "/usr/share/python2.7/UserDict.py", line 83, in <module>
  File "/usr/share/python2.7/_abcoll.py", line 11, in <module>
  File "/usr/share/python2.7/abc.py", line 8, in <module>
ImportError: No module named _weakrefset

Revision history for this message
Elan Ruusamäe (glen666) wrote :

rpmbuild without the module is pointless too, do we really need to update all python packages now to load python-modules as BR?

$ rpm -qa python*
python-libs-2.7.1-1.x86_64
python-2.7.1-1.x86_64

$ rpm -E %py_sitedir
ERROR/lib64/pythonERROR/site-packages

$ python -c "import sys"
Traceback (most recent call last):
  File "/usr/share/python2.7/site.py", line 62, in <module>
  File "/usr/share/python2.7/os.py", line 398, in <module>
  File "/usr/share/python2.7/UserDict.py", line 83, in <module>
  File "/usr/share/python2.7/_abcoll.py", line 11, in <module>
  File "/usr/share/python2.7/abc.py", line 8, in <module>
ImportError: No module named _weakrefset

summary: - sys module can't be imported
+ sys module can't be imported (ImportError: No module named _weakrefset)
description: updated
Revision history for this message
Elan Ruusamäe (glen666) wrote :

#c1: rpm-pythonprov could be added R: python-modules as well (needed in python packages anyway for /usr/lib/rpm/pythondeps.sh)

but import sys is imho quite common in apps/libs...?

Revision history for this message
Artur Frysiak (wiget) wrote :

sys module is built-in, so is in -libs already.
_weakrefset is moved to -libs in revision 1.381 (2.7.1-2).
Fixed package send to builders.

Changed in pld-linux:
status: New → Fix Released
assignee: nobody → Artur Frysiak (wiget)
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.