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 #462

Open
rolfschr opened this issue Aug 9, 2020 · 1 comment
Open

Error when running pypi2nix command #462

rolfschr opened this issue Aug 9, 2020 · 1 comment

Comments

@rolfschr
Copy link

rolfschr commented Aug 9, 2020

Hi,

I got the following errors. Happy to provide more details.

% nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 5.4.0-42-generic, Ubuntu, 20.04.1 LTS (Focal Fossa)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.4pre20200721_ff314f1`
 - channels(rolfschr): `"home-manager"`
 - channels(root): `"nixpkgs-20.09pre237079.d418434d127"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixpkgs`

% pypi2nix --version
2.0.4

% cat requirements.txt
aiohttp==3.6.2
asgiref==3.2.7
attrs==19.3.0
backcall==0.1.0
beautifulsoup4==4.7.1
cached-property==1.5.1
cffi==1.14.0
contextlib2==0.5.5
decorator==4.4.2
dephell-specifier==0.2.1
dj-database-url==0.4.2
Django==3.0.7
django-filter==2.2.0
djangorestframework==3.11.0
gunicorn==19.7.1
importlib-metadata==1.3.0
ipython==7.13.0
ipython-genutils==0.2.0
jedi==0.17.0
lxml==4.3.3
more-itertools==8.0.2
packageurl-python==0.9.0
packaging==19.2
parso==0.7.0
pexpect==4.8.0
pickleshare==0.7.5
pluggy==0.13.1
prompt-toolkit==3.0.5
psycopg2==2.8.4
ptyprocess==0.6.0
py==1.8.0
pycodestyle==2.5.0
pycparser==2.20
pygit2==1.2.0
Pygments==2.6.1
pyparsing==2.4.5
pytest==5.3.2
pytest-dependency==0.4.0
pytest-django==3.7.0
pytest-mock==1.13.0
python-dateutil==2.8.1
pytoml==0.1.21
pytz==2019.3
PyYAML==5.3.1
saneyaml==0.4
schema==0.7.1
six==1.13.0
soupsieve==1.9.5
sqlparse==0.3.0
tqdm==4.41.1
traitlets==4.3.3
wcwidth==0.1.7
whitenoise==5.0.1
zipp==0.6.0
requests==2.23.0

% pypi2nix -V python3 -r requirements.txt
INFO: pypi2nix v2.0.4 running ...
INFO: Downloading wheels and creating wheelhouse ...
INFO: Downloading runtime requirements
these 2 derivations will be built:
  /nix/store/flysrk7vgd4qrzvc25wyshwyg3ws321s-python3.8-pip-20.1.1.drv
  /nix/store/d1vw8f088xl856l1h5b0v0xazb60xnki-python3-3.8.3-env.drv
warning: unknown setting 'experimental-features'
building '/nix/store/flysrk7vgd4qrzvc25wyshwyg3ws321s-python3.8-pip-20.1.1.drv'...
Sourcing python-recompile-bytecode-hook.sh
Sourcing python-recompile-bytecode-hook.sh
Sourcing python-remove-tests-dir-hook
Sourcing python-remove-tests-dir-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing python-catch-conflicts-hook.sh
Sourcing python-remove-bin-bytecode-hook.sh
Sourcing python-remove-bin-bytecode-hook.sh
Sourcing python-imports-check-hook.sh
Sourcing python-imports-check-hook.sh
Using pythonImportsCheckPhase
Using pythonImportsCheckPhase
Sourcing python-namespaces-hook
Sourcing python-namespaces-hook
Sourcing pip-install-hook
Sourcing pip-install-hook
Using pipInstallPhase
Using pipInstallPhase
Sourcing setuptools-build-hook
Sourcing setuptools-build-hook
Using setuptoolsBuildPhase
Using setuptoolsBuildPhase
Using setuptoolsShellHook
Using setuptoolsShellHook
unpacking sources
unpacking sources
unpacking source archive /nix/store/pham2w174fjmc99f6sg3w98wac2r484f-pip-b8c16a0
unpacking source archive /nix/store/pham2w174fjmc99f6sg3w98wac2r484f-pip-b8c16a0
source root is pip-b8c16a0
source root is pip-b8c16a0
setting SOURCE_DATE_EPOCH to timestamp 315619200 of file pip-b8c16a0/tox.ini
setting SOURCE_DATE_EPOCH to timestamp 315619200 of file pip-b8c16a0/tox.ini
patching sources
patching sources
applying patch /nix/store/iz5gi7nz4xdxfcb8372dmi4rkclpqd4m-reproducible.patch
applying patch /nix/store/iz5gi7nz4xdxfcb8372dmi4rkclpqd4m-reproducible.patch
can't find file to patch at input line 5
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
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
|diff --git a/src/pip/_internal/operations/install/wheel.py b/src/pip/_internal/operations/install/wheel.py
|index e7315ee4..4e36b03d 100644
|index e7315ee4..4e36b03d 100644
|--- a/src/pip/_internal/operations/install/wheel.py
|--- a/src/pip/_internal/operations/install/wheel.py
|+++ b/src/pip/_internal/operations/install/wheel.py
|+++ b/src/pip/_internal/operations/install/wheel.py
--------------------------
--------------------------
File to patch:
File to patch:
Skip this patch? [y]
Skip this patch? [y]
Skipping patch.
Skipping patch.
1 out of 1 hunk ignored
1 out of 1 hunk ignored
builder for '/nix/store/flysrk7vgd4qrzvc25wyshwyg3ws321s-python3.8-pip-20.1.1.drv' failed with exit code 1
cannot build derivation '/nix/store/d1vw8f088xl856l1h5b0v0xazb60xnki-python3-3.8.3-env.drv': 1 dependencies couldn't be built
error: --- Error ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- nix-shell
build of '/nix/store/d1vw8f088xl856l1h5b0v0xazb60xnki-python3-3.8.3-env.drv' failed
Do you want to report above issue (a browser will open with prefilled details of issue)? [y/N]: y

(This is the second invocation of pypi2nix -r requirements.txt so some logs are missing)

@rolfschr
Copy link
Author

rolfschr commented Aug 9, 2020

Duplicate of #460 I guess.

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