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

pip install circleci-helpers not working #1

Closed
andrewrothstein opened this issue Nov 19, 2016 · 6 comments
Closed

pip install circleci-helpers not working #1

andrewrothstein opened this issue Nov 19, 2016 · 6 comments

Comments

@andrewrothstein
Copy link
Contributor

(foo)drew ~ > pip install circleci-helpers
Downloading/unpacking circleci-helpers
Downloading circleci-helpers-0.1.1.tar.gz
Running setup.py (path:/Users/drew/foo/build/circleci-helpers/setup.py) egg_info for package circleci-helpers
Traceback (most recent call last):
File "", line 17, in
File "/Users/drew/foo/build/circleci-helpers/setup.py", line 11, in
install_reqs, dep_links = fetch_requirements(REQUIREMENTS_FILE)
File "dist_utils.py", line 34, in fetch_requirements
if req.link:
AttributeError: 'InstallRequirement' object has no attribute 'link'
Complete output from command python setup.py egg_info:
Traceback (most recent call last):

File "", line 17, in

File "/Users/drew/foo/build/circleci-helpers/setup.py", line 11, in

install_reqs, dep_links = fetch_requirements(REQUIREMENTS_FILE)

File "dist_utils.py", line 34, in fetch_requirements

if req.link:

AttributeError: 'InstallRequirement' object has no attribute 'link'


Cleaning up...
Command python setup.py egg_info failed with error code 1 in /Users/drew/foo/build/circleci-helpers
Storing debug log for failure in /Users/drew/.pip/pip.log
(foo)drew ~ >

@dennybaa
Copy link
Owner

@andrewrothstein Hey, Andrew. I think you are using outdated pip.

Here how it works with pip 8.1.2

Python 2.7.12 (default, Jul  1 2016, 15:12:24) 
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pip.req
>>> r1 = pip.req.InstallRequirement.from_line('git+https://host/pkg6@branch#egg=pkg6-1.6')
>>> r1.link
<Link git+https://host/pkg6@branch#egg=pkg6-1.6>
>>> r2 = pip.req.InstallRequirement.from_line('docopt')
>>> r2.link
>>> 

andrewrothstein added a commit to andrewrothstein/ansible-java-oracle-jdk that referenced this issue Nov 21, 2016
@andrewrothstein
Copy link
Contributor Author

worked! thanks! do you want me to raise a pull request against the docs? the baseline recommendation doesn't include a 'sudo -H pip install --upgrade pip' before the 'sudo -H pip install circlci-helpers'.

@dennybaa
Copy link
Owner

@andrewrothstein 👍

@dennybaa
Copy link
Owner

@andrewrothstein Yeah, why not, you can just mention that version should be definitely >= 6.0.0, which actually was released on Dec 22, 2014 !

@andrewrothstein
Copy link
Contributor Author

andrewrothstein commented Nov 27, 2016

@dennybaa #2

@doomroep5
Copy link

(foo)drew ~ > pip install circleci-helpers Downloading/unpacking circleci-helpers Downloading circleci-helpers-0.1.1.tar.gz Running setup.py (path:/Users/drew/foo/build/circleci-helpers/setup.py) egg_info for package circleci-helpers Traceback (most recent call last): File "", line 17, in File "/Users/drew/foo/build/circleci-helpers/setup.py", line 11, in install_reqs, dep_links = fetch_requirements(REQUIREMENTS_FILE) File "dist_utils.py", line 34, in fetch_requirements if req.link: AttributeError: 'InstallRequirement' object has no attribute 'link' Complete output from command python setup.py egg_info: Traceback (most recent call last):

File "", line 17, in

File "/Users/drew/foo/build/circleci-helpers/setup.py", line 11, in

install_reqs, dep_links = fetch_requirements(REQUIREMENTS_FILE)

File "dist_utils.py", line 34, in fetch_requirements

if req.link:

AttributeError: 'InstallRequirement' object has no attribute 'link'

Cleaning up... Command python setup.py egg_info failed with error code 1 in /Users/drew/foo/build/circleci-helpers Storing debug log for failure in /Users/drew/.pip/pip.log (foo)drew ~ >

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

3 participants