Bug 1046847 - No writable cache directory for pypy
Summary: No writable cache directory for pypy
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: pypy
Version: 19
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Matej Stuchlik
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-27 06:36 UTC by Daniel Black
Modified: 2016-02-01 02:15 UTC (History)
3 users (show)

Fixed In Version: pypy-2.2.1-2.fc19
Clone Of:
Environment:
Last Closed: 2014-01-29 03:01:59 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Daniel Black 2013-12-27 06:36:50 UTC
Description of problem:

No writable cache directory for pypy (/usr/lib64/pypy-2.1.0/lib_pypy/__pycache__)

Version-Release number of selected component (if applicable):

pypy -v
Python 2.7.3 (352c78d2e80f4a812ae1d8cdbe8c01a7f2e6fbc0, Aug 19 2013, 10:43:46)
[PyPy 2.1.0 with GCC 4.8.1 20130603 (Red Hat 4.8.1-1)] on linux2
Version     : 2.1.0
Release     : 1.fc19

python-virtualenv
Version     : 1.10.1
Release     : 1.fc19
How reproducible:


Steps to Reproduce:
1. virtualenv -p /usr/bin/pypy /tmp/pypyenv
2. cd /tmp/pypyenv && source bin/activate
3. pip install ipython
4. ipython

Actual results:

from running ipython:

Traceback (most recent call last):
  File "app_main.py", line 72, in run_toplevel
  File "/tmp/pypyenv/bin/ipython", line 9, in <module>
    load_entry_point('ipython==1.1.0', 'console_scripts', 'ipython')()
  File "/tmp/pypyenv/site-packages/pkg_resources.py", line 378, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/tmp/pypyenv/site-packages/pkg_resources.py", line 2566, in load_entry_point
    return ep.load()
  File "/tmp/pypyenv/site-packages/pkg_resources.py", line 2260, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "/tmp/pypyenv/site-packages/IPython/__init__.py", line 47, in <module>
    from .terminal.embed import embed
  File "/tmp/pypyenv/site-packages/IPython/terminal/embed.py", line 39, in <module>
    from IPython.terminal.interactiveshell import TerminalInteractiveShell
  File "/tmp/pypyenv/site-packages/IPython/terminal/interactiveshell.py", line 32, in <module>
    from IPython.core.interactiveshell import InteractiveShell, InteractiveShellABC
  File "/tmp/pypyenv/site-packages/IPython/core/interactiveshell.py", line 52, in <module>
    from IPython.core.history import HistoryManager
  File "/tmp/pypyenv/site-packages/IPython/core/history.py", line 21, in <module>
    import sqlite3
  File "/usr/lib64/pypy-2.1.0/lib-python/2.7/sqlite3/__init__.py", line 24, in <module>
    from dbapi2 import *
  File "/usr/lib64/pypy-2.1.0/lib-python/2.7/sqlite3/dbapi2.py", line 27, in <module>
    from _sqlite3 import *
  File "/usr/lib64/pypy-2.1.0/lib_pypy/_sqlite3.py", line 273, in <module>
    """, libraries=['sqlite3']
  File "/usr/lib64/pypy-2.1.0/lib_pypy/cffi/api.py", line 311, in verify
    lib = self.verifier.load_library()
  File "/usr/lib64/pypy-2.1.0/lib_pypy/cffi/verifier.py", line 68, in load_library
    self.compile_module()
  File "/usr/lib64/pypy-2.1.0/lib_pypy/cffi/verifier.py", line 55, in compile_module
    self._write_source()
  File "/usr/lib64/pypy-2.1.0/lib_pypy/cffi/verifier.py", line 117, in _write_source
    file = open(self.sourcefilename, 'w')
IOError: [Errno 2] No such file or directory: '/usr/lib64/pypy-2.1.0/lib_pypy/__pycache__/_cffi__g24366574x62c16045.c'

Expected results:

ipython prompt like as follows:
(pypyenv)dan@spaceman pypyenv $ ipython
Python 2.7.3 (352c78d2e80f4a812ae1d8cdbe8c01a7f2e6fbc0, Aug 19 2013, 10:43:46)
Type "copyright", "credits" or "license" for more information.

IPython 1.1.0 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.
VIRTUAL_ENV -> /tmp/pypyenv/lib/python2.7/site-packages

In [1]:

Additional info:

$ ls -la /usr/lib64/pypy-2.1.0/lib_pypy/__pycache__
ls: cannot access /usr/lib64/pypy-2.1.0/lib_pypy/__pycache__: No such file or directory

After creating the directory with write permssions a normal user can run ipython under pypy

sudo mkdir /usr/lib64/pypy-2.1.0/lib_pypy/__pycache__ && sudo chmod a+wX /usr/lib64/pypy-2.1.0/lib_pypy/__pycache__

Comment 1 Matej Stuchlik 2014-01-04 13:31:51 UTC
This should be fixed in pypy-2.2.1-1.fc19 [0]. Let me know if there're any more problems. :)

[0] https://admin.fedoraproject.org/updates/FEDORA-2013-22933/pypy-2.2.1-1.fc19

Comment 2 Matej Stuchlik 2014-01-04 15:08:16 UTC
Okay, I did some more testing and this seems to be a different issue than I thought. Stand by!

Comment 3 Fedora Update System 2014-01-20 10:39:48 UTC
pypy-2.2.1-2.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/pypy-2.2.1-2.fc19

Comment 4 Matej Stuchlik 2014-01-20 10:46:01 UTC
This should be fixed in the above build, please test it if possible and thank you for reporting! :)

Comment 5 Fedora Update System 2014-01-21 05:58:50 UTC
Package pypy-2.2.1-2.fc19:
* should fix your issue,
* was pushed to the Fedora 19 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.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-1235/pypy-2.2.1-2.fc19
then log in and leave karma (feedback).

Comment 6 Daniel Black 2014-01-21 20:58:09 UTC
All good as per QA comment. Thanks for the prompt fix Matej.

Comment 7 Fedora Update System 2014-01-29 03:01:59 UTC
pypy-2.2.1-2.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.