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

aminator - can't setup.py install (win x64) #156

Closed
calaba opened this issue Oct 19, 2013 · 3 comments
Closed

aminator - can't setup.py install (win x64) #156

calaba opened this issue Oct 19, 2013 · 3 comments

Comments

@calaba
Copy link

calaba commented Oct 19, 2013

OK - git clone https://github.com/Netflix/aminator.git
cd aminator

ERR - python setup.py install :

Importing new compiler from distutils.msvc9compiler

Installed c:\xxx\aminator\pbr-0.5.21-py2.7.egg
Importing new compiler from distutils.msvc9compiler
running install error: c:\Python\Anaconda\python.exe -m pip.init install 'boto>=2.7' 'bunch' 'decorator' 'envoy' 'logutils' 'pyyaml' 'requests' 'stevedore' 'simplejson' returned 2

Thought this might be related - #147 but after downgrading stevedore to 0.11 still same issue

Versions:

Windows x64, Python Anaconda: Python 2.7.5 :: Anaconda 1.7.0 (64-bit)

pip show boto bunch decorator envoy logutils pyyaml requests stevedore simplejson

Name: boto
Version: 2.15.0

Requires:

Name: bunch
Version: 1.0.1

Requires:

Name: decorator
Version: 3.4.0

Requires:

Name: envoy
Version: 0.0.2

Requires:

Name: logutils
Version: 0.3.3

Requires:

Name: PyYAML
Version: 3.10

Requires:

Name: requests
Version: 1.2.3

Requires:

Name: stevedore
Version: 0.11

Requires:

Name: simplejson
Version: 3.3.1

@calaba
Copy link
Author

calaba commented Oct 19, 2013

OK - found out the reason why it's not working - file requirements.txt and it's processing under Windows is not correct - it creates file: 2.7' as the >= is somehow interpreted as output redirection, the 2.7' file contains then error complaining that boto version was not specified (which is unfortunately mandatory ...):

Exception:
Traceback (most recent call last):
File "c:\OpenSource\Python\Anaconda\lib\site-packages\pip\basecommand.py", line 134, in main
status = self.run(options, args)
File "c:\OpenSource\Python\Anaconda\lib\site-packages\pip\commands\install.py", line 215, in run
InstallRequirement.from_line(name, None))
File "c:\OpenSource\Python\Anaconda\lib\site-packages\pip\req.py", line 129, in from_line
return cls(req, comes_from, url=url, prereleases=prereleases)
File "c:\OpenSource\Python\Anaconda\lib\site-packages\pip\req.py", line 44, in init
req = pkg_resources.Requirement.parse(req)
File "c:\OpenSource\Python\Anaconda\lib\site-packages\pkg_resources.py", line 2725, in parse
reqs = list(parse_requirements(s))
File "c:\OpenSource\Python\Anaconda\lib\site-packages\pkg_resources.py", line 2638, in parse_requirements
raise ValueError("Missing distribution spec", line)
ValueError: ('Missing distribution spec', "'boto")

Storing complete log in C:\Users....\pip\pip.log

The file requirements.txt contains:

boto>=2.7
bunch
decorator
envoy
logutils
pyyaml
requests
stevedore
simplejson

if I try to remove the >=2.7 after the boto -> getting an error:

c:\OpenSource\Netflix\aminator>python setup.py install
Importing new compiler from distutils.msvc9compiler
running install
Exception:
Traceback (most recent call last):
File "c:\OpenSource\Python\Anaconda\lib\site-packages\pip\basecommand.py", line 134, in main
status = self.run(options, args)
File "c:\OpenSource\Python\Anaconda\lib\site-packages\pip\commands\install.py", line 215, in run
InstallRequirement.from_line(name, None))
File "c:\OpenSource\Python\Anaconda\lib\site-packages\pip\req.py", line 129, in from_line
return cls(req, comes_from, url=url, prereleases=prereleases)
File "c:\OpenSource\Python\Anaconda\lib\site-packages\pip\req.py", line 44, in init
req = pkg_resources.Requirement.parse(req)
File "c:\OpenSource\Python\Anaconda\lib\site-packages\pkg_resources.py", line 2725, in parse
reqs = list(parse_requirements(s))
File "c:\OpenSource\Python\Anaconda\lib\site-packages\pkg_resources.py", line 2638, in parse_requirements
raise ValueError("Missing distribution spec", line)
ValueError: ('Missing distribution spec', "'boto'")

Storing complete log in C:\Users......\pip\pip.log
error: c:\OpenSource\Python\Anaconda\python.exe -m pip.init install 'boto' 'bunch' 'decorator' 'envoy' 'logutils' 'pyyaml' 'requests' 'stevedore' 'simplejson' returned 2

====> not sure whether the issues is caused by the aminator coding or my windows based pip (I used this way to get pip working under windows ... https://sites.google.com/site/pydatalog/python/pip-for-windows

====> Tried a WORKAROUND to specify exact boto version - in my case boto==2.15.0 ... however it still doesn't work

c:\OpenSource\Netflix\aminator>python setup.py install
Importing new compiler from distutils.msvc9compiler
running install
Exception:
Traceback (most recent call last):
File "c:\OpenSource\Python\Anaconda\lib\site-packages\pip\basecommand.py", line 134, in main
status = self.run(options, args)
File "c:\OpenSource\Python\Anaconda\lib\site-packages\pip\commands\install.py", line 215, in run
InstallRequirement.from_line(name, None))
File "c:\OpenSource\Python\Anaconda\lib\site-packages\pip\req.py", line 129, in from_line
return cls(req, comes_from, url=url, prereleases=prereleases)
File "c:\OpenSource\Python\Anaconda\lib\site-packages\pip\req.py", line 44, in init
req = pkg_resources.Requirement.parse(req)
File "c:\OpenSource\Python\Anaconda\lib\site-packages\pkg_resources.py", line 2725, in parse
reqs = list(parse_requirements(s))
File "c:\OpenSource\Python\Anaconda\lib\site-packages\pkg_resources.py", line 2638, in parse_requirements
raise ValueError("Missing distribution spec", line)
ValueError: ('Missing distribution spec', "'boto==2.15.0'")

Storing complete log in C:\Users.....\pip\pip.log
error: c:\OpenSource\Python\Anaconda\python.exe -m pip.init install 'boto==2.15.0' 'bunch' 'decorator' 'envoy' 'logutils' 'pyyaml' 'requests' 'stevedore'
'simplejson' returned 2

... tried aminator on Anacoda Python x64 linux distro (in Ubuntu) .. there it seems to work fine ....

@calaba
Copy link
Author

calaba commented Oct 23, 2013

Addition: Had talk with Netflix employee - seems actually none of the Netflix github open source projects exposed here are targeted to be "build-able" on Win platform ... even using python / java / groovy / etc ..

Thus I would suggest we can close this issue as "false positive".

I do have another issues to use aminator on Ubuntu Linux and I will open separate issue for that.

@mtripoli
Copy link
Contributor

Thanks for your interest in Aminator. I'll close this one.

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

2 participants