Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR: Could not find a version that satisfies the requirement pyquery>=1.2.17 (from gerapy) #59

Open
milahu opened this issue Apr 18, 2022 · 0 comments

Comments

@milahu
Copy link

milahu commented Apr 18, 2022

looks like pyproject.toml and setup.cfg are not supported
workaround: use mach-nix

im trying to install gerapy

cd $(mktemp -d)
pynixify gerapy
nix-shell ./pynixify/shell.nix

on nix-shell i get ERROR: Could not find a version that satisfies the requirement pyquery>=1.2.17 (from gerapy)

similar to #36 and #44

pynixify: ok, but some "Error parsing requirements"
$ pynixify gerapy
Resolving gerapy
Resolving apscheduler<=3.7.0,>=3.5.1 (from PyPIPackage(attr=gerapy, version=0.9.10))
Resolving cryptography>=2.8 (from PyPIPackage(attr=gerapy, version=0.9.10))
Resolving django<=2.2.25,>=2.2 (from PyPIPackage(attr=gerapy, version=0.9.10))
Resolving django-cors-headers<=3.7.0,>=3.2.0 (from PyPIPackage(attr=gerapy, version=0.9.10))
Resolving django-apscheduler<=0.6.0,>=0.3.0 (from PyPIPackage(attr=gerapy, version=0.9.10))
Resolving furl>=2.1.0 (from PyPIPackage(attr=gerapy, version=0.9.10))
Resolving jinja2>=2.11.3 (from PyPIPackage(attr=gerapy, version=0.9.10))
Resolving scrapy>=2.0.0 (from PyPIPackage(attr=gerapy, version=0.9.10))
Resolving scrapy-redis>=0.6.8 (from PyPIPackage(attr=gerapy, version=0.9.10))
Resolving scrapy-splash>=0.7.2 (from PyPIPackage(attr=gerapy, version=0.9.10))
Resolving python-scrapyd-api>=2.1.2 (from PyPIPackage(attr=gerapy, version=0.9.10))
Resolving redis>=2.10.5 (from PyPIPackage(attr=gerapy, version=0.9.10))
Resolving requests>=2.20.0 (from PyPIPackage(attr=gerapy, version=0.9.10))
Resolving pymongo>=3.9.0 (from PyPIPackage(attr=gerapy, version=0.9.10))
Resolving pymysql>=0.7.10 (from PyPIPackage(attr=gerapy, version=0.9.10))
Resolving pyquery>=1.2.17 (from PyPIPackage(attr=gerapy, version=0.9.10))
Resolving beautifulsoup4>=4.7.0 (from PyPIPackage(attr=gerapy, version=0.9.10))
Resolving djangorestframework>=3.11.2 (from PyPIPackage(attr=gerapy, version=0.9.10))
Resolving websocket>=0.2.1 (from PyPIPackage(attr=gerapy, version=0.9.10))
Resolving pyppeteer>=0.0.25 (from PyPIPackage(attr=gerapy, version=0.9.10))
Resolving six>=1.8.0 (from NixPackage(attr=furl, version=2.1.3))
Resolving orderedmultidict>=1.0.1 (from NixPackage(attr=furl, version=2.1.3))
Resolving Django>=2.2 (from NixPackage(attr=django-cors-headers, version=3.7.0))
Error parsing requirements of /nix/store/xhyd567yhh87cjgf1hlrf7zrg62imdny-cryptography-36.0.0.tar.gz. Assuming it has no dependencies.
Resolving MarkupSafe>=2.0 (from NixPackage(attr=jinja2, version=3.0.3))
Resolving soupsieve>1.2 (from NixPackage(attr=beautifulsoup4, version=4.10.0))
Resolving lxml>=2.1 (from NixPackage(attr=pyquery, version=1.4.3))
Resolving cssselect (from NixPackage(attr=pyquery, version=1.4.3))
Resolving setuptools>=0.7 (from PyPIPackage(attr=apscheduler, version=3.7.0))
Resolving six>=1.4.0 (from PyPIPackage(attr=apscheduler, version=3.7.0))
Resolving pytz (from PyPIPackage(attr=apscheduler, version=3.7.0))
Resolving tzlocal~=2.0 (from PyPIPackage(attr=apscheduler, version=3.7.0))
Resolving setuptools_scm (from PyPIPackage(attr=apscheduler, version=3.7.0))
Resolving django>=2.2 (from PyPIPackage(attr=django-apscheduler, version=0.6.0))
Resolving apscheduler<4.0,>=3.2 (from PyPIPackage(attr=django-apscheduler, version=0.6.0))
Resolving requests (from PyPIPackage(attr=python-scrapyd-api, version=2.1.2))
Resolving setuptools>=38.6.0 (from PyPIPackage(attr=python-scrapyd-api, version=2.1.2))
Resolving pytz (from PyPIPackage(attr=django, version=2.2.25))
Resolving sqlparse>=0.2.2 (from PyPIPackage(attr=django, version=2.2.25))
Resolving Twisted[http2]>=17.9.0 (from NixPackage(attr=scrapy, version=2.5.1))
Resolving cryptography>=2.0 (from NixPackage(attr=scrapy, version=2.5.1))
Resolving cssselect>=0.9.1 (from NixPackage(attr=scrapy, version=2.5.1))
Resolving itemloaders>=1.0.1 (from NixPackage(attr=scrapy, version=2.5.1))
Resolving parsel>=1.5.0 (from NixPackage(attr=scrapy, version=2.5.1))
Resolving pyOpenSSL>=16.2.0 (from NixPackage(attr=scrapy, version=2.5.1))
Resolving queuelib>=1.4.2 (from NixPackage(attr=scrapy, version=2.5.1))
Resolving service_identity>=16.0.0 (from NixPackage(attr=scrapy, version=2.5.1))
Resolving w3lib>=1.17.0 (from NixPackage(attr=scrapy, version=2.5.1))
Resolving zope.interface>=4.1.3 (from NixPackage(attr=scrapy, version=2.5.1))
Resolving protego>=0.1.15 (from NixPackage(attr=scrapy, version=2.5.1))
Resolving itemadapter>=0.1.0 (from NixPackage(attr=scrapy, version=2.5.1))
warning: ignoring requirement h2<4.0,>=3.0 from NixPackage(attr=scrapy, version=2.5.1) because there is no matching version in nixpkgs packages
Resolving lxml>=3.5.0; platform_python_implementation == "CPython" (from NixPackage(attr=scrapy, version=2.5.1))
Resolving PyDispatcher>=2.0.5; platform_python_implementation == "CPython" (from NixPackage(attr=scrapy, version=2.5.1))
Resolving deprecated>=1.2.3 (from NixPackage(attr=redis, version=4.1.0))
Resolving packaging>=21.3 (from NixPackage(attr=redis, version=4.1.0))
Resolving charset_normalizer~=2.0.0; python_version >= "3" (from NixPackage(attr=requests, version=2.27.1))
Resolving idna<4,>=2.5; python_version >= "3" (from NixPackage(attr=requests, version=2.27.1))
Resolving urllib3<1.27,>=1.21.1 (from NixPackage(attr=requests, version=2.27.1))
Resolving certifi>=2017.4.17 (from NixPackage(attr=requests, version=2.27.1))
Resolving gevent (from PyPIPackage(attr=websocket, version=0.2.1))
Resolving greenlet (from PyPIPackage(attr=websocket, version=0.2.1))
Resolving Scrapy>=1.0 (from PyPIPackage(attr=scrapy-redis, version=0.7.2))
Resolving redis>=3.0 (from PyPIPackage(attr=scrapy-redis, version=0.7.2))
Resolving six>=1.5.2 (from PyPIPackage(attr=scrapy-redis, version=0.7.2))
Error parsing requirements of /nix/store/zrkpw288zdd4jfqxrp439y31m1cgdz6z-source. Assuming it has no dependencies.
Error parsing requirements of /nix/store/yac01mfsch2s853yfnd8kpnn64fc5mwq-setuptools-57.2.0-sdist.tar.gz. Assuming it has no dependencies.
Resolving packaging>=20.0 (from NixPackage(attr=setuptools-scm, version=6.4.2))
Resolving setuptools (from NixPackage(attr=setuptools-scm, version=6.4.2))
Resolving tomli>=1.0.0 (from NixPackage(attr=setuptools-scm, version=6.4.2))
Resolving zope.interface>=4.4.2 (from NixPackage(attr=twisted, version=21.7.0))
Resolving constantly>=15.1 (from NixPackage(attr=twisted, version=21.7.0))
Resolving incremental>=21.3.0 (from NixPackage(attr=twisted, version=21.7.0))
Resolving Automat>=0.8.0 (from NixPackage(attr=twisted, version=21.7.0))
Resolving hyperlink>=17.1.1 (from NixPackage(attr=twisted, version=21.7.0))
Resolving attrs>=19.2.0 (from NixPackage(attr=twisted, version=21.7.0))
Resolving typing_extensions>=3.6.5 (from NixPackage(attr=twisted, version=21.7.0))
Resolving django>=2.2 (from NixPackage(attr=djangorestframework, version=3.12.4))
Resolving w3lib>=1.19.0 (from NixPackage(attr=parsel, version=1.6.0))
Resolving lxml (from NixPackage(attr=parsel, version=1.6.0))
Resolving six>=1.6.0 (from NixPackage(attr=parsel, version=1.6.0))
Resolving cssselect>=0.9 (from NixPackage(attr=parsel, version=1.6.0))
Resolving pytest-runner (from NixPackage(attr=parsel, version=1.6.0))
Resolving setuptools (from NixPackage(attr=zope_interface, version=5.4.0))
Resolving six (from NixPackage(attr=protego, version=0.2.1))
Resolving pyparsing!=3.0.5,>=2.0.2 (from NixPackage(attr=packaging, version=21.3))
Error parsing requirements of /nix/store/19d05ds928hqwli2ilb3c8i6drnks2w9-source. Assuming it has no dependencies.
Resolving greenlet<2.0,>=1.1.0; platform_python_implementation == "CPython" (from NixPackage(attr=gevent, version=21.12.0))
Resolving zope.event (from NixPackage(attr=gevent, version=21.12.0))
Resolving zope.interface (from NixPackage(attr=gevent, version=21.12.0))
Resolving setuptools (from NixPackage(attr=gevent, version=21.12.0))
Resolving six>=1.8.0 (from NixPackage(attr=orderedmultidict, version=1.0.1))
Resolving w3lib>=1.17.0 (from NixPackage(attr=itemloaders, version=1.0.4))
Resolving parsel>=1.5.0 (from NixPackage(attr=itemloaders, version=1.0.4))
Resolving jmespath>=0.9.5 (from NixPackage(attr=itemloaders, version=1.0.4))
Resolving itemadapter>=0.1.0 (from NixPackage(attr=itemloaders, version=1.0.4))
Resolving cryptography>=3.3 (from NixPackage(attr=pyopenssl, version=21.0.0))
Resolving six>=1.5.2 (from NixPackage(attr=pyopenssl, version=21.0.0))
Resolving attrs>=19.2.0 (from NixPackage(attr=automat, version=20.2.0))
Resolving six (from NixPackage(attr=automat, version=20.2.0))
Resolving setuptools-scm (from NixPackage(attr=automat, version=20.2.0))
Resolving m2r (from NixPackage(attr=automat, version=20.2.0))
Resolving idna>=2.5 (from NixPackage(attr=hyperlink, version=21.0.0))
Error parsing requirements of /nix/store/9j9yv6726566814n7kbky57k99p761z3-typing_extensions-4.0.1.tar.gz. Assuming it has no dependencies.
Resolving setuptools (from NixPackage(attr=zope_event, version=4.5.0))
Resolving six>=1.4.1 (from NixPackage(attr=w3lib, version=1.22.0))
Resolving attrs>=19.1.0 (from NixPackage(attr=service-identity, version=21.1.0))
Resolving pyasn1-modules (from NixPackage(attr=service-identity, version=21.1.0))
Resolving pyasn1 (from NixPackage(attr=service-identity, version=21.1.0))
Resolving cryptography (from NixPackage(attr=service-identity, version=21.1.0))
Resolving six (from NixPackage(attr=service-identity, version=21.1.0))
Resolving wrapt<2,>=1.10 (from NixPackage(attr=deprecated, version=1.2.13))
Resolving mistune (from NixPackage(attr=m2r, version=0.2.1))
Resolving docutils (from NixPackage(attr=m2r, version=0.2.1))
Resolving setuptools_scm>=1.15.0 (from NixPackage(attr=pytest-runner, version=5.3.1))
Resolving pytz (from PyPIPackage(attr=tzlocal, version=2.1))
Resolving pyasn1<0.5.0,>=0.4.6 (from NixPackage(attr=pyasn1-modules, version=0.2.8))
Resolving setuptools>=38.3.0 (from NixPackage(attr=wrapt, version=1.13.3))
Error parsing requirements of /nix/store/6f0n85xwcwh6f59yc0h9y681prz7l821-mistune-2.0.2.tar.gz. Assuming it has no dependencies.
Error parsing requirements of /nix/store/18x00x3kijmkyzbiq6mkmhwfvfapsir4-source. Assuming it has no dependencies.
Error parsing requirements
Error parsing requirements of /nix/store/xhyd567yhh87cjgf1hlrf7zrg62imdny-cryptography-36.0.0.tar.gz. Assuming it has no dependencies.
-> setup.cfg and pyproject.toml

Error parsing requirements of /nix/store/zrkpw288zdd4jfqxrp439y31m1cgdz6z-source. Assuming it has no dependencies.
-> pyproject.toml and poetry.lock
-> name = "pyppeteer"
-> version = "0.2.6"

Error parsing requirements of /nix/store/yac01mfsch2s853yfnd8kpnn64fc5mwq-setuptools-57.2.0-sdist.tar.gz. Assuming it has no dependencies.
-> pyproject.toml and setup.cfg

Error parsing requirements of /nix/store/19d05ds928hqwli2ilb3c8i6drnks2w9-source. Assuming it has no dependencies.
-> requirements.txt -> Cython>=0.29.7
-> setup.py -> name = "lxml",

Error parsing requirements of /nix/store/9j9yv6726566814n7kbky57k99p761z3-typing_extensions-4.0.1.tar.gz. Assuming it has no dependencies.
-> pyproject.toml

Error parsing requirements of /nix/store/6f0n85xwcwh6f59yc0h9y681prz7l821-mistune-2.0.2.tar.gz. Assuming it has no dependencies.
-> pyproject.toml
-> setup.cfg

Error parsing requirements of /nix/store/18x00x3kijmkyzbiq6mkmhwfvfapsir4-source. Assuming it has no dependencies.
-> pyproject.toml
-> name = "tomli"
nix-shell: error
$ nix-shell ./pynixify/shell.nix 
these 2 derivations will be built:
  /nix/store/h339fp31ydiizkhaq8bqz5xqj7dsx6b2-python3.9-gerapy-0.9.10.drv
  /nix/store/v18mv93arykiirm14mcwaqfkx9wi4mk5-python3-3.9.10-env.drv
building '/nix/store/h339fp31ydiizkhaq8bqz5xqj7dsx6b2-python3.9-gerapy-0.9.10.drv'...
Sourcing python-remove-tests-dir-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing python-remove-bin-bytecode-hook.sh
Sourcing setuptools-build-hook
Using setuptoolsBuildPhase
Using setuptoolsShellHook
Sourcing pip-install-hook
Using pipInstallPhase
Sourcing python-imports-check-hook.sh
Using pythonImportsCheckPhase
Sourcing python-namespaces-hook
unpacking sources
unpacking source archive /nix/store/1ir2aawrnqfaj9aim5wrq3bah44jl5ad-gerapy-0.9.10.tar.gz
source root is gerapy-0.9.10
setting SOURCE_DATE_EPOCH to timestamp 1640851412 of file gerapy-0.9.10/setup.cfg
patching sources
configuring
no configure script, doing nothing
building
Executing setuptoolsBuildPhase
running bdist_wheel
running build
running build_py
creating build
creating build/lib
creating build/lib/gerapy
copying gerapy/__init__.py -> build/lib/gerapy
...
installing to build/bdist.linux-x86_64/wheel
running install
running install_lib
...
creating build/bdist.linux-x86_64/wheel/gerapy-0.9.10.dist-info/WHEEL
creating 'dist/gerapy-0.9.10-py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it
adding 'gerapy/__init__.py'
...
adding 'gerapy-0.9.10.dist-info/RECORD'
removing build/bdist.linux-x86_64/wheel
Finished executing setuptoolsBuildPhase
installing
Executing pipInstallPhase
/build/gerapy-0.9.10/dist /build/gerapy-0.9.10
Processing ./gerapy-0.9.10-py3-none-any.whl
...
Requirement already satisfied: apscheduler<=3.7.0,>=3.5.1 in /nix/store/43pggqrmdmfgiy19bvq7hhdb0vw17n6g-python3.9-apscheduler-3.7.0/lib/python3.9/site-packages (from gerapy==0.9.10) (3.7.0)
Requirement already satisfied: scrapy-redis>=0.6.8 in /nix/store/0hkn09bhvd64762rg61g7h2xfgyxkcij-python3.9-scrapy-redis-0.7.2/lib/python3.9/site-packages (from gerapy==0.9.10) (0.7.2)

ERROR: Could not find a version that satisfies the requirement pyquery>=1.2.17 (from gerapy) (from versions: none)
ERROR: No matching distribution found for pyquery>=1.2.17

error: builder for '/nix/store/h339fp31ydiizkhaq8bqz5xqj7dsx6b2-python3.9-gerapy-0.9.10.drv' failed with exit code 1;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant