pypi2nix
pypi2nix copied to clipboard
Error when running pypi2nix command
trafficstars
Description
Can't compile requirements for https://github.com/WeblateOrg/weblate requirements. I'm running NixOS 20.03.
Traceback
% pypi2nix --version
2.0.4
% pypi2nix -r requirements.txt -E openssl
INFO: pypi2nix v2.0.4 running ...
INFO: Downloading wheels and creating wheelhouse ...
INFO: Downloading runtime requirements
ERROR: Command errored out with exit status 1:
command: /nix/store/v41mzl5zz4w772p6s52y0knqzlllanla-python3-3.7.6-env/bin/python3.7 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/tmp2f9fgzbl/pip-download-drlhyng0/borgbackup/setup.py'"'"'; __file__='"'"'/tmp/tmp2f9fgzbl/pip-download-drlhyng0/borgbackup/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/tmp2f9fgzbl/pip-download-drlhyng0/borgbackup/pip-egg-info
cwd: /tmp/tmp2f9fgzbl/pip-download-drlhyng0/borgbackup/
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/tmp2f9fgzbl/pip-download-drlhyng0/borgbackup/setup.py", line 187, in <module>
raise Exception('Unable to find OpenSSL >= 1.0 headers. (Looked here: {})'.format(', '.join(possible_openssl_prefixes)))
Exception: Unable to find OpenSSL >= 1.0 headers. (Looked here: /usr, /usr/local, /usr/local/opt/openssl, /usr/local/ssl, /usr/local/openssl, /usr/local/borg, /opt/local, /opt/pkg)
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
WARNING: You are using pip version 20.0.dev0; however, version 20.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
ERROR: Collecting bleach<3.2.0,>=3.1.1
ERROR: Downloading bleach-3.1.5.tar.gz (177 kB)
ERROR: Saved /tmp/tmp2f9fgzbl/download/bleach-3.1.5.tar.gz
ERROR: Collecting borgbackup<1.2.0,>=1.1.9
ERROR: Downloading borgbackup-1.1.13.tar.gz (3.8 MB)
ERROR: Saved /tmp/tmp2f9fgzbl/download/borgbackup-1.1.13.tar.gz
Commenting the borgbackup requirement produces another error:
❯ pypi2nix -r requirements.txt -E libxml2 -E libxslt -E openssl
INFO: pypi2nix v2.0.4 running ...
INFO: Downloading wheels and creating wheelhouse ...
INFO: Downloading runtime requirements
ERROR: Command errored out with exit status 1:
command: /nix/store/v41mzl5zz4w772p6s52y0knqzlllanla-python3-3.7.6-env/bin/python3.7 /nix/store/v41mzl5zz4w772p6s52y0knqzlllanla-python3-3.7.6-env/lib/python3.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/tmp2_ysd8og/pip-build-env-amru_6e5/overlay --no-warn-script-location --no-binary :all: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel pycairo
cwd: None
Complete output (36 lines):
Collecting setuptools
Using cached setuptools-49.2.0.zip (2.2 MB)
Collecting wheel
Using cached wheel-0.34.2.tar.gz (58 kB)
Collecting pycairo
Using cached pycairo-1.19.1.tar.gz (205 kB)
Skipping wheel build for setuptools, due to binaries being disabled for it.
Skipping wheel build for wheel, due to binaries being disabled for it.
Skipping wheel build for pycairo, due to binaries being disabled for it.
Installing collected packages: setuptools, wheel, pycairo
Running setup.py install for setuptools: started
Running setup.py install for setuptools: finished with status 'done'
Running setup.py install for wheel: started
Running setup.py install for wheel: finished with status 'done'
Running setup.py install for pycairo: started
Running setup.py install for pycairo: finished with status 'error'
ERROR: Command errored out with exit status 1:
command: /nix/store/v41mzl5zz4w772p6s52y0knqzlllanla-python3-3.7.6-env/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/tmp2_ysd8og/pip-install-wp20nkru/pycairo/setup.py'"'"'; __file__='"'"'/tmp/tmp2_ysd8og/pip-install-wp20nkru/pycairo/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/tmp2_ysd8og/pip-record-bos3irrk/install-record.txt --single-version-externally-managed --prefix /tmp/tmp2_ysd8og/pip-build-env-amru_6e5/overlay --compile --install-headers /nix/store/v41mzl5zz4w772p6s52y0knqzlllanla-python3-3.7.6-env/include/site/python3.7/pycairo
cwd: /tmp/tmp2_ysd8og/pip-install-wp20nkru/pycairo/
Complete output (12 lines):
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.7
creating build/lib.linux-x86_64-3.7/cairo
copying cairo/__init__.py -> build/lib.linux-x86_64-3.7/cairo
copying cairo/__init__.pyi -> build/lib.linux-x86_64-3.7/cairo
copying cairo/py.typed -> build/lib.linux-x86_64-3.7/cairo
running build_ext
'pkg-config' not found.
Command ['pkg-config', '--print-errors', '--exists', 'cairo >= 1.13.1']
----------------------------------------
ERROR: Command errored out with exit status 1: /nix/store/v41mzl5zz4w772p6s52y0knqzlllanla-python3-3.7.6-env/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/tmp2_ysd8og/pip-install-wp20nkru/pycairo/setup.py'"'"'; __file__='"'"'/tmp/tmp2_ysd8og/pip-install-wp20nkru/pycairo/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/tmp2_ysd8og/pip-record-bos3irrk/install-record.txt --single-version-externally-managed --prefix /tmp/tmp2_ysd8og/pip-build-env-amru_6e5/overlay --compile --install-headers /nix/store/v41mzl5zz4w772p6s52y0knqzlllanla-python3-3.7.6-env/include/site/python3.7/pycairo Check the logs for full command output.
WARNING: You are using pip version 20.0.dev0; however, version 20.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
----------------------------------------
ERROR: Command errored out with exit status 1: /nix/store/v41mzl5zz4w772p6s52y0knqzlllanla-python3-3.7.6-env/bin/python3.7 /nix/store/v41mzl5zz4w772p6s52y0knqzlllanla-python3-3.7.6-env/lib/python3.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/tmp2_ysd8og/pip-build-env-amru_6e5/overlay --no-warn-script-location --no-binary :all: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel pycairo Check the logs for full command output.
WARNING: You are using pip version 20.0.dev0; however, version 20.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
ERROR: Collecting bleach<3.2.0,>=3.1.1
ERROR: Downloading bleach-3.1.5.tar.gz (177 kB)
ERROR: Saved /tmp/tmp2_ysd8og/download/bleach-3.1.5.tar.gz
ERROR: Collecting celery[redis]<4.5,>=4.4.2
ERROR: Downloading celery-4.4.6.tar.gz (1.5 MB)
ERROR: Saved /tmp/tmp2_ysd8og/download/celery-4.4.6.tar.gz
ERROR: Installing build dependencies: started
ERROR: Installing build dependencies: finished with status 'done'
ERROR: Getting requirements to build wheel: started
ERROR: Getting requirements to build wheel: finished with status 'done'
ERROR: Preparing wheel metadata: started
ERROR: Preparing wheel metadata: finished with status 'done'
ERROR: Collecting Cython<0.30,>=0.29.14
ERROR: Downloading Cython-0.29.21.tar.gz (2.1 MB)
ERROR: Saved /tmp/tmp2_ysd8og/download/Cython-0.29.21.tar.gz
ERROR: Collecting diff-match-patch==20200713
ERROR: Downloading diff-match-patch-20200713.tar.gz (60 kB)
ERROR: Saved /tmp/tmp2_ysd8og/download/diff-match-patch-20200713.tar.gz
ERROR: Collecting Django<3.1,>=3.0.5
ERROR: Downloading Django-3.0.8.tar.gz (9.1 MB)
ERROR: Saved /tmp/tmp2_ysd8og/download/Django-3.0.8.tar.gz
ERROR: Collecting django-appconf<1.1,>=1.0.0
ERROR: Downloading django-appconf-1.0.4.tar.gz (18 kB)
ERROR: Saved /tmp/tmp2_ysd8og/download/django-appconf-1.0.4.tar.gz
ERROR: Collecting django-compressor<2.5,>=2.4
ERROR: Downloading django_compressor-2.4.tar.gz (111 kB)
ERROR: Saved /tmp/tmp2_ysd8og/download/django_compressor-2.4.tar.gz
ERROR: Collecting django-crispy-forms<1.10.0,>=1.9.0
ERROR: Downloading django-crispy-forms-1.9.2.tar.gz (62 kB)
ERROR: Saved /tmp/tmp2_ysd8og/download/django-crispy-forms-1.9.2.tar.gz
ERROR: Installing build dependencies: started
ERROR: Installing build dependencies: finished with status 'done'
ERROR: Getting requirements to build wheel: started
ERROR: Getting requirements to build wheel: finished with status 'done'
ERROR: Preparing wheel metadata: started
ERROR: Preparing wheel metadata: finished with status 'done'
ERROR: Collecting django-filter<2.4.0,>=2.2.0
ERROR: Downloading django-filter-2.3.0.tar.gz (146 kB)
ERROR: Saved /tmp/tmp2_ysd8og/download/django-filter-2.3.0.tar.gz
ERROR: Collecting django-redis<4.13.0,>=4.11.0
ERROR: Downloading django-redis-4.12.1.tar.gz (23 kB)
ERROR: Saved /tmp/tmp2_ysd8og/download/django-redis-4.12.1.tar.gz
ERROR: Collecting djangorestframework<3.12.0,>=3.11.0
ERROR: Downloading djangorestframework-3.11.0.tar.gz (791 kB)
ERROR: Saved /tmp/tmp2_ysd8og/download/djangorestframework-3.11.0.tar.gz
ERROR: Collecting filelock<3.1.0,>=3.0.0
ERROR: Downloading filelock-3.0.12.tar.gz (8.5 kB)
ERROR: Saved /tmp/tmp2_ysd8og/download/filelock-3.0.12.tar.gz
ERROR: Collecting future<0.19.0,>=0.18.0
ERROR: Downloading future-0.18.2.tar.gz (829 kB)
ERROR: Saved /tmp/tmp2_ysd8og/download/future-0.18.2.tar.gz
ERROR: Collecting GitPython<3.2.0,>=2.1.15
ERROR: Downloading GitPython-3.1.7.tar.gz (169 kB)
ERROR: Saved /tmp/tmp2_ysd8og/download/GitPython-3.1.7.tar.gz
ERROR: Collecting hiredis<1.2.0,>=1.0.1
ERROR: Downloading hiredis-1.1.0.tar.gz (54 kB)
ERROR: Saved /tmp/tmp2_ysd8og/download/hiredis-1.1.0.tar.gz
ERROR: Collecting html2text<2020.1.17,>=2019.8.11
ERROR: Downloading html2text-2020.1.16.tar.gz (49 kB)
ERROR: Saved /tmp/tmp2_ysd8og/download/html2text-2020.1.16.tar.gz
ERROR: Collecting jellyfish<0.9.0,>=0.7.2
ERROR: Downloading jellyfish-0.8.2.tar.gz (134 kB)
ERROR: Saved /tmp/tmp2_ysd8og/download/jellyfish-0.8.2.tar.gz
ERROR: Collecting jsonschema<3.3.0,>=3.0.0
ERROR: Downloading jsonschema-3.2.0.tar.gz (167 kB)
ERROR: Saved /tmp/tmp2_ysd8og/download/jsonschema-3.2.0.tar.gz
ERROR: Installing build dependencies: started
ERROR: Installing build dependencies: finished with status 'done'
ERROR: Getting requirements to build wheel: started
ERROR: Getting requirements to build wheel: finished with status 'done'
ERROR: Installing backend dependencies: started
ERROR: Installing backend dependencies: finished with status 'done'
ERROR: Preparing wheel metadata: started
ERROR: Preparing wheel metadata: finished with status 'done'
ERROR: Collecting lxml<4.6.0,>=4.4.0
ERROR: Downloading lxml-4.5.2.tar.gz (4.5 MB)
ERROR: Saved /tmp/tmp2_ysd8og/download/lxml-4.5.2.tar.gz
ERROR: Collecting methodtools<0.5,>=0.4.2
ERROR: Downloading methodtools-0.4.2.tar.gz (3.0 kB)
ERROR: Saved /tmp/tmp2_ysd8og/download/methodtools-0.4.2.tar.gz
ERROR: Collecting misaka<2.2.0,>=2.1.0
ERROR: Downloading misaka-2.1.1.tar.gz (125 kB)
ERROR: Saved /tmp/tmp2_ysd8og/download/misaka-2.1.1.tar.gz
ERROR: Collecting openpyxl!=3.0.2,<3.1,>=2.6.0
ERROR: Downloading openpyxl-3.0.4.tar.gz (173 kB)
ERROR: Saved /tmp/tmp2_ysd8og/download/openpyxl-3.0.4.tar.gz
ERROR: Collecting Pillow<7.3.0,>=6.0.0
ERROR: Downloading Pillow-7.2.0.tar.gz (39.1 MB)
ERROR: Saved /tmp/tmp2_ysd8og/download/Pillow-7.2.0.tar.gz
ERROR: Collecting pycairo>=1.15.3
ERROR: Downloading pycairo-1.19.1.tar.gz (205 kB)
ERROR: Saved /tmp/tmp2_ysd8og/download/pycairo-1.19.1.tar.gz
ERROR: Collecting pygobject>=3.27.0
ERROR: Downloading PyGObject-3.36.1.tar.gz (716 kB)
ERROR: Saved /tmp/tmp2_ysd8og/download/PyGObject-3.36.1.tar.gz
ERROR: Installing build dependencies: started
ERROR: Installing build dependencies: finished with status 'error'
requirements.txt
bleach>=3.1.1,<3.2.0
borgbackup>=1.1.9,<1.2.0
celery[redis]>=4.4.2,<4.5
Cython>=0.29.14,<0.30
diff-match-patch==20200713
Django>=3.0.5,<3.1
django-appconf>=1.0.0,<1.1
django-compressor>=2.4,<2.5
django-crispy-forms>=1.9.0,<1.10.0
django-filter>=2.2.0,<2.4.0
django-redis>=4.11.0,<4.13.0
djangorestframework>=3.11.0,<3.12.0
filelock>=3.0.0,<3.1.0
# Workaround for https://github.com/celery/celery/issues/6145
future>=0.18.0,<0.19.0
GitPython>=2.1.15,<3.2.0
hiredis>=1.0.1,<1.2.0
html2text>=2019.8.11,<2020.1.17
jellyfish>=0.7.2,<0.9.0
jsonschema>=3.0.0,<3.3.0
lxml>=4.4.0,<4.6.0
methodtools>=0.4.2,<0.5
misaka>=2.1.0,<2.2.0
openpyxl>=2.6.0,<3.1,!=3.0.2
Pillow>=6.0.0,<7.3.0
pycairo>=1.15.3
pygobject>=3.27.0
pyparsing>=2.4.0,<2.5.0
python-dateutil>=2.8.1
python-redis-lock>=3.4.0,<3.6.0
requests>=2.20.0,<2.25.0
sentry_sdk>=0.13.0,<0.17.0
setuptools>=36.0.1
siphashc>=1.2,<2.0
social-auth-app-django==4.0.0
social-auth-core==3.3.3
translate-toolkit>=3.0.0,<3.1.0
translation-finder==2.1
user-agents>=2.0,<2.2
weblate-schemas==0.3
Whoosh==2.7.4