Skip to content

PyPi install issue #726

@Guitaricet

Description

@Guitaricet

Executing pip install promptsource causes the following error for me

    ERROR: Command errored out with exit status 1:
     command: /home/vlialin/miniconda3/envs/cqg/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-higkq2vp/promptsource_d9e0de5b5f404523afa2d8789946c6a8/setup.py'"'"'; __file__='"'"'/tmp/pip-install-higkq2vp/promptsource_d9e0de5b5f404523afa2d8789946c6a8/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-qnu5er_g
         cwd: /tmp/pip-install-higkq2vp/promptsource_d9e0de5b5f404523afa2d8789946c6a8/
    Complete output (5 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-higkq2vp/promptsource_d9e0de5b5f404523afa2d8789946c6a8/setup.py", line 6, in <module>
        with open('requirements.txt') as requirements_file:
    FileNotFoundError: [Errno 2] No such file or directory: 'requirements.txt'
    ----------------------------------------

I was trying to understand what is a possible problem, but this one is confusing, because the previous line with open("README.md", "r", encoding="utf-8") as readme_file: also reads a local file and it does not fail.

I will make a PR that removes requirements.txt in favor of explicitly providing a list of dependencies to install_requires.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions