question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pypy failure on master

See original GitHub issue

Not sure what’s happening but the failure persists after I rerun the job. ping @rth maybe? See https://circleci.com/gh/scikit-learn/scikit-learn/43934

Installing collected packages: scikit-learn
  Running setup.py develop for scikit-learn
    Running command /root/project/pypy-env/bin/pypy3 -c "import setuptools, tokenize;__file__='/root/project/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" develop --no-deps
    Partial import of sklearn during the build process.
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/root/project/setup.py", line 243, in <module>
        setup_package()
      File "/root/project/setup.py", line 216, in setup_package
        numpy_status = get_numpy_status()
      File "/root/project/setup.py", line 149, in get_numpy_status
        import numpy
      File "/root/project/pypy-env/site-packages/numpy/__init__.py", line 142, in <module>
        from . import core
      File "/root/project/pypy-env/site-packages/numpy/core/__init__.py", line 16, in <module>
        from . import multiarray
      File "/root/project/pypy-env/site-packages/numpy/core/multiarray.py", line 44, in <module>
        arange.__module__ = 'numpy'
    AttributeError: readonly attribute '__module__'

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
qinhanmin2014commented, Jan 19, 2019

rerun the job but still fails, reopen

0reactions
rthcommented, Jan 22, 2019

Do we know why this happens now?

Yes, it turns out I was trying to build numpy 1.5 (from 2010) with PyPy… Instead of 1.15 – makes sense it didn’t work and was attempting to run 2to3 (presumably to get Python 3.1 compatible code) 😃

Should be fixed in https://github.com/scikit-learn/scikit-learn/pull/13018

Read more comments on GitHub >

github_iconTop Results From Across the Web

Tests are broken on master for pypy / pypy3 #1378 - GitHub
The core of the problem is that tox -e py27 might match a python2.7 that is pypy2 which fails the interpreter matching code...
Read more >
Cannot install opencv-python for PyPy2.7 - Stack Overflow
Now I want to install opencv-python, which results in the error ... /pbMoMa-master/my-pypy/site-packages/pip/_vendor/pep517/_in_process.py", ...
Read more >
Libraries like Pikepdf fail to build because of ... - Heptapod
Because of lines like the above, there is a problem while building these packages in pypy. The error is. In file included from...
Read more >
Packages installed from PyPI cannot depend on packages ...
Packages installed from PyPI cannot depend on packages which are not also hosted on PyPI. I'm getting this error when I try to...
Read more >
Blog - PyPy
They manifested as assert failures in the JIT compiler. The JIT concluded after 12 == int_mul(x, 12) that x == 1 , which...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found