You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 31, 2022. It is now read-only.
Then, the package is ready to use in the vitual environment
Current Behavior
$ pip install -U requirements-dev.txt
It looks like you meant to type`pip install -r requirements-dev.txt`, but you left out the `-r` by accident. Aborting installation.
$ pip install -r requirements-dev.txt
Exception:
Traceback (most recent call last):
File "/data/bigdisk/users/bregnery/venvs/inflectionEnv/lib/python2.7/site-packages/pip/basecommand.py", line 134, in main
status = self.run(options, args)
File "/data/bigdisk/users/bregnery/venvs/inflectionEnv/lib/python2.7/site-packages/pip/commands/install.py", line 220, in run
forreqin parse_requirements(filename, finder=finder, options=options):
File "/data/bigdisk/users/bregnery/venvs/inflectionEnv/lib/python2.7/site-packages/pip/req.py", line 1477, in parse_requirements
req = InstallRequirement.from_line(line, comes_from, prereleases=getattr(options, "pre", None))
File "/data/bigdisk/users/bregnery/venvs/inflectionEnv/lib/python2.7/site-packages/pip/req.py", line 129, in from_line
return cls(req, comes_from, url=url, prereleases=prereleases)
File "/data/bigdisk/users/bregnery/venvs/inflectionEnv/lib/python2.7/site-packages/pip/req.py", line 44, in __init__
req = pkg_resources.Requirement.parse(req)
File "/data/bigdisk/users/bregnery/venvs/inflectionEnv/lib/python2.7/site-packages/pkg_resources.py", line 2914, in parse
reqs = list(parse_requirements(s))
File "/data/bigdisk/users/bregnery/venvs/inflectionEnv/lib/python2.7/site-packages/pkg_resources.py", line 2839, in parse_requirements
line, p, specs = scan_list(VERSION,LINE_END,line,p,(1,2),"version spec")
File "/data/bigdisk/users/bregnery/venvs/inflectionEnv/lib/python2.7/site-packages/pkg_resources.py", line 2817, in scan_list
"Expected ',' or end-of-list in",line,"at",line[p:]
ValueError: ("Expected ',' or end-of-list in", "sphinx<1.5; python_version == '2.6',", 'at', "; python_version == '2.6',")
Steps to Reproduce (for bugs)
Follow commands in current behavior
Possible Solution (for bugs)
Update requirements-dev.txt to be used with the commands contained in .ci/test_on_docker.sh
Here pip should look at the package, see what it requires, attempt to automatically install the requirements and then install the package. There might be an issue in the requirements txt file but I expect installing the package itself would work.
pip install -U -r requirements-dev.txt should be used in the developing environment (these packages are required for running the build process)
pip install -U -r requirements.txt should be run in the testing environment
These two steps are what the .ci/test_on_docker.sh script is basically doing
These environments can be the same
The second issue is that requirements-dev.txt seems broken currently, but should double check with the correct syntax (using -U for upgrade, in addition to -r to specify the requirements file)
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Getting pip to install the correct packages in the virtual environment results in conflicts.
Types of issue
Expected Behavior
Then, the package is ready to use in the vitual environment
Current Behavior
Steps to Reproduce (for bugs)
Follow commands in current behavior
Possible Solution (for bugs)
Update
requirements-dev.txt
to be used with the commands contained in.ci/test_on_docker.sh
$ pip install -U "pip<10" importlib $ pip install -U setuptools $ pip install -U codecov $ pip install -U -r requirements.txt $ pip install -U root_numpy $ pip install rpm/gempython_gemplotting-1.3.1-dev1.dev45.zip
This correctly installs the package in the virtual environment
Context (for feature requests)
Trying to install package in virtual environment
Your Environment
The text was updated successfully, but these errors were encountered: