Closed Lekensteyn closed 5 years ago
Hi @Lekensteyn,
Nothing has changed really regarding setuptools in 1.0.2. I notice though that you are using pip 8.1.1
, which is quite old. Could you try to update your pip version?
I could try to upgrade pip, but not sure if it would help.
I have tried to upgrade pip, but it still complains about missing setuptools.
This is the delta between the above two installations:
@@ -1,13 +1,11 @@
-apipkg-1.5-py2.py3-none-any.whl
atomicwrites-1.3.0-py2.py3-none-any.whl
attrs-18.2.0-py2.py3-none-any.whl
-execnet-1.5.0-py2.py3-none-any.whl
more_itertools-6.0.0-py3-none-any.whl
pathlib2-2.3.3-py2.py3-none-any.whl
pluggy-0.8.1-py2.py3-none-any.whl
py-1.7.0-py2.py3-none-any.whl
pytest-4.2.1-py2.py3-none-any.whl
-pytest_forked-1.0.1-py2.py3-none-any.whl
+pytest-forked-1.0.2.tar.gz
pytest_xdist-1.26.1-py2.py3-none-any.whl
setuptools-40.8.0-py2.py3-none-any.whl
six-1.12.0-py2.py3-none-any.whl
My guess is that no wheel is available, so pip tries to install it from source (which fails due to missing build dependencies)? And sure enough, the whl file is missing here as well: https://pypi.org/project/pytest-forked/1.0.2/#files https://pypi.org/project/pytest-forked/1.0.1/#files (working, has wheel)
Oh thanks for noticing that. I will upload the wheels then.
wheels uploaded, thanks!
I can't reproduce your failure though, I was able to previously install pytest-forked using only the source distribution.
Please check if using wheels fixes the problem for you.
In our case, we had a much different symptom, but uploading the wheel fixed it.
OK, thanks for the follow up
Thanks, I can confirm that all builds are green again!
For us the added wheels actually broke pipenv with using the pure lock file because the recorded hashes where missing the wheel's hash.
Installing dependencies from Pipfile.lock (4bc183)…
Ignoring appnope: markers 'sys_platform == "darwin"' don't match your environment
An error occurred while installing pytest-forked==1.0.2 --hash=sha256:d352aaced2ebd54d42a65825722cb433004b4446ab5d2044851d9cc7a00c9e38! Will try again.
Installing initially failed dependencies…
[pipenv.exceptions.InstallError]: File "/usr/local/lib/python3.6/dist-packages/pipenv/core.py", line 1874, in do_install
[pipenv.exceptions.InstallError]: keep_outdated=keep_outdated
[pipenv.exceptions.InstallError]: File "/usr/local/lib/python3.6/dist-packages/pipenv/core.py", line 1253, in do_init
[pipenv.exceptions.InstallError]: pypi_mirror=pypi_mirror,
[pipenv.exceptions.InstallError]: File "/usr/local/lib/python3.6/dist-packages/pipenv/core.py", line 859, in do_install_dependencies
[pipenv.exceptions.InstallError]: retry_list, procs, failed_deps_queue, requirements_dir, **install_kwargs
[pipenv.exceptions.InstallError]: File "/usr/local/lib/python3.6/dist-packages/pipenv/core.py", line 763, in batch_install
[pipenv.exceptions.InstallError]: _cleanup_procs(procs, not blocking, failed_deps_queue, retry=retry)
[pipenv.exceptions.InstallError]: File "/usr/local/lib/python3.6/dist-packages/pipenv/core.py", line 681, in _cleanup_procs
[pipenv.exceptions.InstallError]: raise exceptions.InstallError(c.dep.name, extra=err_lines)
[pipenv.exceptions.InstallError]: ['Collecting pytest-forked==1.0.2 (from -r /tmp/pipenv-ic2vu1as-requirements/pipenv-sbxnd55b-requirement.txt (line 1))', ' Using cached https://files.pythonhosted.org/packages/3f/55/ef92c340e723495dbee91d749903d2b7950b49c501943296257246d7d880/pytest_forked-1.0.2-py2.py3-none-any.whl']
[pipenv.exceptions.InstallError]: ['THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE. If you have updated the package versions, please update the hashes. Otherwise, examine the package contents carefully; someone may have tampered with them.', ' pytest-forked==1.0.2 from https://files.pythonhosted.org/packages/3f/55/ef92c340e723495dbee91d749903d2b7950b49c501943296257246d7d880/pytest_forked-1.0.2-py2.py3-none-any.whl#sha256=5fe33fbd07d7b1302c95310803a5e5726a4ff7f19d5a542b7ce57c76fed8135f (from -r /tmp/pipenv-ic2vu1as-requirements/pipenv-sbxnd55b-requirement.txt (line 1)):', ' Expected sha256 d352aaced2ebd54d42a65825722cb433004b4446ab5d2044851d9cc7a00c9e38', ' Got 5fe33fbd07d7b1302c95310803a5e5726a4ff7f19d5a542b7ce57c76fed8135f']
ERROR: ERROR: Package installation failed...
No need to reopen, just logging it here in case someone else has the problem.
Simply do a pipenv update to fix it.
Since a recent pytest update,
pip3 install pytest pytest-xdist
fails in an Ubuntu 16.04 image on Travis (macOS and Windows images works fine).Example log:
Indeed, installing
python3-pip
via apt did recommendpython3-setuptools
, but it did not actually install it.The output for the last working version is: