Bug 1040741

Summary: IOError on `import curses`
Product: [Fedora] Fedora Reporter: T.C. Hollingsworth <tchollingsworth>
Component: pypyAssignee: Matej Stuchlik <mstuchli>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: jberan, mstuchli, tomspur
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: pypy-2.2.1-2.fc20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-26 11:55:33 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description T.C. Hollingsworth 2013-12-12 03:20:27 UTC
% rpm -q pypy
pypy-2.2.0-1.fc20.x86_64
% pypy
Python 2.7.3 (6c8420e89b80b4c90720115e31c2793ba7fff08d, Nov 19 2013, 13:04:31)
[PyPy 2.2.0 with GCC 4.8.2 20131017 (Red Hat 4.8.2-1)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>> import curses
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib64/pypy-2.2.0/lib-python/2.7/curses/__init__.py", line 15, in <module>
    from _curses import *
  File "/usr/lib64/pypy-2.2.0/lib_pypy/_curses.py", line 322, in <module>
    """, libraries=['ncurses', 'panel'])
  File "/usr/lib64/pypy-2.2.0/lib_pypy/cffi/api.py", line 339, in verify
    lib = self.verifier.load_library()
  File "/usr/lib64/pypy-2.2.0/lib_pypy/cffi/verifier.py", line 73, in load_library
    self._write_source()
  File "/usr/lib64/pypy-2.2.0/lib_pypy/cffi/verifier.py", line 125, in _write_source
    file = open(self.sourcefilename, 'w')
IOError: [Errno 2] No such file or directory: '/usr/lib64/pypy-2.2.0/lib_pypy/__pycache__/_cffi__g45f34413x310af836.c'

Comment 1 Fedora Update System 2014-01-20 10:40:38 UTC
pypy-2.2.1-2.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/pypy-2.2.1-2.fc20

Comment 2 Matej Stuchlik 2014-01-20 10:46:39 UTC
This should be fixed in the above build, thank you for reporting! :)

Comment 3 Fedora Update System 2014-01-21 05:56:24 UTC
Package pypy-2.2.1-2.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing pypy-2.2.1-2.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-1221/pypy-2.2.1-2.fc20
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2014-01-26 11:55:33 UTC
pypy-2.2.1-2.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.