pypi2nix
pypi2nix copied to clipboard
Error when running pypi2nix command, for mayan-edms
I'm trying to generate a nix expression for mayan-edms. I get the output below.
Description
<detailed description of error # Traceback
% pypi2nix --version
% pypi2nix -e mayan-edms
Collecting mayan-edms
Downloading https://files.pythonhosted.org/packages/f6/5c/65799a63524ec069b70b3946790153891636afef4ae92c6ec9dfaa5e0b6d/mayan-edms-3.2.10.tar.gz (2.7MB)
Saved /tmp/tmps_9h5az5/download/mayan-edms-3.2.10.tar.gz
Collecting django==1.11.25
Downloading https://files.pythonhosted.org/packages/8d/6e/ca1eaf0a03e7921b020e9a8bd2e9ec441f6d958050be8571951e5556cf77/Django-1.11.25.tar.gz (7.8MB)
Saved /tmp/tmps_9h5az5/download/Django-1.11.25.tar.gz
Collecting Pillow==6.2.1
Downloading https://files.pythonhosted.org/packages/5b/bb/cdc8086db1f15d0664dd22a62c69613cdc00f1dd430b5b19df1bea83f2a3/Pillow-6.2.1.tar.gz (37.7MB)
Saved /tmp/tmps_9h5az5/download/Pillow-6.2.1.tar.gz
Collecting PyPDF2==1.26.0
Downloading https://files.pythonhosted.org/packages/b4/01/68fcc0d43daf4c6bdbc6b33cc3f77bda531c86b174cac56ef0ffdb96faab/PyPDF2-1.26.0.tar.gz (77kB)
Saved /tmp/tmps_9h5az5/download/PyPDF2-1.26.0.tar.gz
Collecting PyYAML==5.1.2
Downloading https://files.pythonhosted.org/packages/e3/e8/b3212641ee2718d556df0f23f78de8303f068fe29cdaa7a91018849582fe/PyYAML-5.1.2.tar.gz (265kB)
Saved /tmp/tmps_9h5az5/download/PyYAML-5.1.2.tar.gz
Collecting celery==3.1.26.post2
Downloading https://files.pythonhosted.org/packages/33/f3/c6f66e311dd0be1eedcf6d256e4138caca537d81c1b903d4ab3699ada889/celery-3.1.26.post2.tar.gz (1.3MB)
Saved /tmp/tmps_9h5az5/download/celery-3.1.26.post2.tar.gz
Collecting django-activity-stream==0.7.0
Downloading https://files.pythonhosted.org/packages/2c/0c/a6cce7dc4f26e3615ae684a419cf6e02434e1e4dbaaf50d9bd5b1340a840/django-activity-stream-0.7.0.tar.gz
Saved /tmp/tmps_9h5az5/download/django-activity-stream-0.7.0.tar.gz
Collecting django-celery==3.2.1
Downloading https://files.pythonhosted.org/packages/18/8a/0acc6ab53749005802587acee49b658504f9842e9f6230da73422ad90f47/django-celery-3.2.1.tar.gz (91kB)
Saved /tmp/tmps_9h5az5/download/django-celery-3.2.1.tar.gz
Collecting django-colorful==1.3
Downloading https://files.pythonhosted.org/packages/b7/9f/3e19b35b6d85ec5b6cffde8533b6a0fca5d435b278c6537428c32e1ab6b5/django-colorful-1.3.tar.gz
Saved /tmp/tmps_9h5az5/download/django-colorful-1.3.tar.gz
Right before I also get the following output (which was not included in the automatic bug report):
ERROR: Command errored out with exit status 1:
command: /nix/store/5bvmw38vphs377bswcyb7zkji523pf5l-python3-3.7.5-env/bin/python3.7 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/tmps_9h5az5/pip-download-zv7acihk/django-colorful/setup.py'"'"'; __file__='"'"'/tmp/tmps_9h5az5/pip-download-zv7acihk/django-colorful/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/tmps_9h5az5/pip-download-zv7acihk/django-colorful/pip-egg-info
cwd: /tmp/tmps_9h5az5/pip-download-zv7acihk/django-colorful/
Complete output (7 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/tmps_9h5az5/pip-download-zv7acihk/django-colorful/setup.py", line 4, in <module>
import colorful
File "/tmp/tmps_9h5az5/pip-download-zv7acihk/django-colorful/colorful/__init__.py", line 3, in <module>
from django.utils import version
ModuleNotFoundError: No module named 'django'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
To effectively assist you in solving the issue I need some more information from you:
- What OS are you using?
- Which version of
pypi2nix
are you using? - Did you install
pypi2nix
fromnixpkgs
or by installing it directly from github? - Run
pypi2nix
with the-v
flag and and post the output either here or to a pastebin.