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

OSX: can't python setup.py install due to python 3.5 constraint #1064

Closed
giampaolo opened this issue Mar 26, 2017 · 2 comments
Closed

OSX: can't python setup.py install due to python 3.5 constraint #1064

giampaolo opened this issue Mar 26, 2017 · 2 comments
Assignees
Labels
Milestone

Comments

@giampaolo
Copy link

I've just bumped into this weird error while trying to install glances from sources:

osx:glances root# python setup.py install
error in Glances setup command: Invalid environment marker: python_version<"3.5"

I can work around it by modifying setup.py like this:

diff --git a/setup.py b/setup.py
index 28fe927..a671496 100755
--- a/setup.py
+++ b/setup.py
@@ -86,7 +86,6 @@ setup(
         'docker': ['docker>=2.0.0'],
         'export': ['bernhard', 'cassandra-driver', 'couchdb', 'elasticsearch',
                    'influxdb>=1.0.0', 'pika', 'potsdb', 'pyzmq', 'statsd'],
-        'folders:python_version<"3.5"': ['scandir'],
         'gpu:python_version=="2.7"': ['nvidia-ml-py'],
         'ip': ['netifaces'],
         'raid': ['pymdstat'],

Python: 2.7.6
uname -a: Darwin osx 14.4.0 Darwin Kernel Version 14.4.0: Thu May 28 11:35:04 PDT 2015; root:xnu-2782.30.5~1/RELEASE_X86_64 x86_64

@staticfloat
Copy link

staticfloat commented Mar 31, 2017

I ran into this as well, upgrade your setuptools, via pip install --upgrade setuptools (or pip install --user --upgrade setuptools if you don't have sudo access); otherwise python doesn't know how to interpret these dependencies.

@nicolargo
Copy link
Owner

"Corrected" by @asergi in the commit 0adf139

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

4 participants