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

Fails to install Inquirer (no requirements.txt found). #456

Closed
charmoniumQ opened this issue Jun 22, 2020 · 1 comment
Closed

Fails to install Inquirer (no requirements.txt found). #456

charmoniumQ opened this issue Jun 22, 2020 · 1 comment

Comments

@charmoniumQ
Copy link

charmoniumQ commented Jun 22, 2020

% pypi2nix -e inquirer==2.7.0 -V python38

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/b1mdfi16dw23kmzlsfbf4p23gbnazaxk-python3-3.8.3-env/bin/python3.8 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/tmpx44759c_/pip-download-ow1zoqv0/inquirer/setup.py'"'"'; __file__='"'"'/tmp/tmpx44759c_/pip-download-ow1zoqv0/inquirer/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/tmpx44759c_/pip-download-ow1zoqv0/inquirer/pip-egg-info
         cwd: /tmp/tmpx44759c_/pip-download-ow1zoqv0/inquirer/
    Complete output (8 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/tmpx44759c_/pip-download-ow1zoqv0/inquirer/setup.py", line 80, in <module>
        install_requires=read_requirements().splitlines(),
      File "/tmp/tmpx44759c_/pip-download-ow1zoqv0/inquirer/setup.py", line 20, in read_requirements
        with open('requirements.txt', encoding='utf8') as fd:
    FileNotFoundError: [Errno 2] No such file or directory: 'requirements.txt'
    An error was found, but returning just with the version: No module named 'blessed'
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Collecting inquirer==2.7.0

I suspect this is a problem with Inquirer (not including requirements.txt in their egg), but I'm new to Python packaging, and I would like to be able to reproduce the error by hand before I file an issue in their project.

@seppeljordan
Copy link
Contributor

It is exactly as you suggested. requirements.txt was not included in their source distribution.

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

2 participants