Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tox: pypy tests fail #80

Closed
heuer opened this issue Jul 31, 2020 · 3 comments
Closed

tox: pypy tests fail #80

heuer opened this issue Jul 31, 2020 · 3 comments

Comments

@heuer
Copy link
Owner

heuer commented Jul 31, 2020

Traceback (most recent call last):
  File ".tox/pypy/site-packages/pip/_internal/cli/base_command.py", line 216, in _main
    status = self.run(options, args)
  File ".tox/pypy/site-packages/pip/_internal/cli/req_command.py", line 182, in wrapper
    return func(self, options, args)
  File ".tox/pypy/site-packages/pip/_internal/commands/install.py", line 421, in run
    pycompile=options.compile,
  File ".tox/pypy/site-packages/pip/_internal/req/__init__.py", line 90, in install_given_reqs
    pycompile=pycompile,
  File ".tox/pypy/site-packages/pip/_internal/req/req_install.py", line 831, in install
    requested=self.user_supplied,
  File ".tox/pypy/site-packages/pip/_internal/operations/install/wheel.py", line 829, in install_wheel
    requested=requested,
  File ".tox/pypy/site-packages/pip/_internal/operations/install/wheel.py", line 703, in _install_wheel
    assert os.path.exists(pyc_path)
AssertionError

Maybe pip 20.2 is the cause of the problem?
Works for pypy3 and py2.7

@heuer
Copy link
Owner Author

heuer commented Jul 31, 2020

Seems to be a pip issue with pypy2

$ cd .tox/pypy
$ source ./bin/activate
$ pip --version
20.2
$ pip install segno 
$ # ---> Assertion error
$ pip uninstall pip
$ easy_install pip==19.3.1
$ pip install segno
$ # --> Success
$ pypy --version
Python 2.7.13 (7.0.0+dfsg-3, Mar 24 2019, 15:30:18)
[PyPy 7.0.0 with GCC 8.3.0]

Update: Works with pip==20.1, too

@heuer
Copy link
Owner Author

heuer commented Jul 31, 2020

See also pypa/pip#8653

@heuer
Copy link
Owner Author

heuer commented Feb 10, 2021

Switched to nox in 5addf2c and provided a workaround.
Since pypa closed the issue 8653 today no further developments are expected.

@heuer heuer closed this as completed Feb 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant