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

Failed to update camp: "error in camp setup command" #44

Open
danzone opened this issue Apr 18, 2019 · 3 comments
Open

Failed to update camp: "error in camp setup command" #44

danzone opened this issue Apr 18, 2019 · 3 comments
Labels

Comments

@danzone
Copy link
Contributor

danzone commented Apr 18, 2019

Characteristics

  • Issue Type: bug
  • Reproducibility: always
  • Severity: block
  • Tool/Service/Component: CAMP, 0.3.4
  • Execution Environment: vmi2.stamp-project.eu, Debian Jessie, amd64
  • Reporter: Daniele Gagliardi, [email protected]

Description

I tried to update CAMP installation within STAMP CI/CD server (vmi2.stamp-project.eu), using pip to update it, but I got following error:

    Complete output from command python setup.py egg_info:
    error in camp setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-req-build-zGl9AM/

The worst thing is that now camp is no longer working (and the Lutece Jenkins pipeline doesn't work anymore). If I type:
camp -h
I get following error:

Traceback (most recent call last):
  File "/usr/local/bin/camp", line 6, in <module>
    from camp.run import main
ImportError: No module named camp.run

Steps to reproduce

As root user:

  • After login, I went to camp project cloned a month ago:
    cd camp
  • Then I update camp repo:
    git pull
  • Then I performed installation as I did last time:
    pip install -e .

I tried also, after removing camp folder, to update it launching following command:
pip install -U git+https://github.com/STAMP-project/camp.git@master#egg=camp

The output is quite similar:

Collecting camp from git+https://github.com/STAMP-project/camp.git@master#egg=camp
  Cloning https://github.com/STAMP-project/camp.git (to revision master) to /tmp/pip-install-kG_3I6/camp
    Complete output from command python setup.py egg_info:
    error in camp setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-kG_3I6/camp/

Other files and URLs

Relationships

Help on issue template

Preview to follow the link or open file .github/ISSUE_DOC.md

@danzone danzone added the bug label Apr 18, 2019
@fchauvel
Copy link
Member

I have had issues with PIP versions earlier than 19.0.3, which seem to not support the "git+url" syntax.
Which version are you using?

@danzone
Copy link
Contributor Author

danzone commented May 3, 2019

Ops, I missed your comment: pip version was 19.0.3. Today I updated it and now it is at version 19.1. But the error remains the same. When I launch the command:
stamp@vmi2:~/stamp-assets/camp$ sudo pip install -e .
the output is:

DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Obtaining file:///home/stamp/stamp-assets/camp
    ERROR: Complete output from command python setup.py egg_info:
    ERROR: error in camp setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers
    ----------------------------------------
ERROR: Command "python setup.py egg_info" failed with error code 1 in /home/stamp/stamp-assets/camp/

@fchauvel
Copy link
Member

I haven't succeed to reproduce this error. Here is the commands I run:

$ virtualenv -p /usr/bin/python3.5 .py3.5
$ source .py3.5/bin/activate
$ git pull --branch=v0.3.4 https://github.com/STAMP-project/camp.git
$ cd camp
$ pip install -e .
$ git checkout tags/v0.4.0
$ pip install -e .

Do you see anything you'd have done differently? Do you remember which version you tried to upgrade to?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants