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 if -r used without target directory #99

Open
jayvdb opened this issue Dec 10, 2019 · 0 comments
Open

Error if -r used without target directory #99

jayvdb opened this issue Dec 10, 2019 · 0 comments

Comments

@jayvdb
Copy link

jayvdb commented Dec 10, 2019

$ pip2pi -r /path/to/requirements.txt
ERROR: Invalid requirement: '/path/to/requirements.txt'
It looks like a path. It does exist. The argument you provided (/path/to/requirements.txt) appears to be a requirements file. If that is the case, use the '-r' flag to install the packages specified within it.
Traceback (most recent call last):
  File "/usr/bin/pip2pi", line 11, in <module>
    load_entry_point('pip2pi==0.8.0', 'console_scripts', 'pip2pi')()
  File "/usr/lib/python3.7/site-packages/libpip2pi/commands.py", line 558, in pip2pi
    res = pip2tgz(subcmd_argv)
  File "/usr/lib/python3.7/site-packages/libpip2pi/commands.py", line 94, in maintain_cwd_helper
    return f(*args, **kwargs)
  File "/usr/lib/python3.7/site-packages/libpip2pi/commands.py", line 443, in pip2tgz
    pip_run_command(pip_download_command.split() + [outdir] + argv[2:])
  File "/usr/lib/python3.7/site-packages/libpip2pi/commands.py", line 191, in pip_run_command
    %(res, pip_args))
libpip2pi.commands.PipError: pip failed with status 1 while running: ['download', '--dest', '/path/to/cwd/-r', '/path/to/requirements.txt']
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