Skip to content
This repository has been archived by the owner on Oct 7, 2022. It is now read-only.

Error when running pypi2nix command #472

Open
vegaelle opened this issue Mar 21, 2021 · 1 comment
Open

Error when running pypi2nix command #472

vegaelle opened this issue Mar 21, 2021 · 1 comment

Comments

@vegaelle
Copy link

Description

Given the following requirements.txt file:

wheel
django-debug-toolbar
Django
wagtail
psycopg2-binary
django-bootstrap3
wagtail-markdown
django-wagtail-feeds

the call to pypi2nix fails

% pypi2nix --version
2.0.4
% pypi2nix -r requirements.txt -E pkgconfig zlib libjpeg openjpeg libtiff freetype lcms2 libwebp tcl
INFO: pypi2nix v2.0.4 running ...
INFO: Downloading wheels and creating wheelhouse ...
INFO: Downloading runtime requirements
these derivations will be built:
  /nix/store/03civgjjw21skj1wwjmh86hv6v9620y0-python3.8-wheel-0.34.2.drv
  /nix/store/4d7n3gcvq55xwxvzf144n1pymdb865xj-python3.8-pip-20.1.1.drv
  /nix/store/gxzqkqcs2l50cnwb6qlb6f3clivbknpn-python3-3.8.5-env.drv
building '/nix/store/4d7n3gcvq55xwxvzf144n1pymdb865xj-python3.8-pip-20.1.1.drv'...
building '/nix/store/03civgjjw21skj1wwjmh86hv6v9620y0-python3.8-wheel-0.34.2.drv'...
Sourcing python-recompile-bytecode-hook.sh
Sourcing python-remove-tests-dir-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing python-remove-bin-bytecode-hook.sh
Sourcing python-imports-check-hook.sh
Using pythonImportsCheckPhase
Sourcing python-namespaces-hook
Sourcing pip-install-hook
Using pipInstallPhase
Sourcing setuptools-build-hook
Using setuptoolsBuildPhase
Using setuptoolsShellHook
Sourcing python-recompile-bytecode-hook.sh
Sourcing python-remove-tests-dir-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing python-remove-bin-bytecode-hook.sh
Sourcing python-imports-check-hook.sh
Using pythonImportsCheckPhase
Sourcing python-namespaces-hook
Sourcing pip-install-hook
Using pipInstallPhase
Sourcing setuptools-build-hook
Using setuptoolsBuildPhase
Using setuptoolsShellHook
unpacking sources
unpacking source archive /nix/store/pham2w174fjmc99f6sg3w98wac2r484f-pip-b8c16a0
unpacking sources
unpacking source archive /nix/store/ps72n0awkcgf1jp2cpr7awrf5xvd007w-wheel-0.33.6.tar.gz
source root is wheel-0.33.6
setting SOURCE_DATE_EPOCH to timestamp 1566122927 of file wheel-0.33.6/setup.cfg
patching sources
configuring
no configure script, doing nothing
building
Executing setuptoolsBuildPhase
source root is pip-b8c16a0
setting SOURCE_DATE_EPOCH to timestamp 315619200 of file pip-b8c16a0/tox.ini
patching sources
applying patch /nix/store/iz5gi7nz4xdxfcb8372dmi4rkclpqd4m-reproducible.patch
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/src/pip/_internal/operations/install/wheel.py b/src/pip/_internal/operations/install/wheel.py
|index e7315ee4..4e36b03d 100644
|--- a/src/pip/_internal/operations/install/wheel.py
|+++ b/src/pip/_internal/operations/install/wheel.py
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
1 out of 1 hunk ignored
builder for '/nix/store/4d7n3gcvq55xwxvzf144n1pymdb865xj-python3.8-pip-20.1.1.drv' failed with exit code 1
cannot build derivation '/nix/store/gxzqkqcs2l50cnwb6qlb6f3clivbknpn-python3-3.8.5-env.drv': 1 dependencies couldn't be built
error: build of '/nix/store/gxzqkqcs2l50cnwb6qlb6f3clivbknpn-python3-3.8.5-env.drv' failed
Do you want to report above issue (a browser will open with prefilled details of issue)? [y/N]: y
Error: While trying to run the command something went wrong.
@vegaelle
Copy link
Author

Seems to be a duplicate of #460

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant