question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

error in install_requires

See original GitHub issue

Clean git checkout, execute python setup.py bdist_rpm

python --version: Python 2.7.5

error in asana setup command: ‘install_requires’ must be a string or list of strings containing valid project/version requirement specifiers

I also receive this message when I try to pip install the package.

If I remove the parts after the first comma, the rpm builds:

diff --git a/setup.py b/setup.py
index 6adedd7..a1d2ce3 100755
--- a/setup.py
+++ b/setup.py
@@ -26,9 +26,9 @@ setup(
         'Programming Language :: Python :: 3.4'
     ],
     install_requires=[
-        'requests >=2.14.2, == 2.14.*',
-        'requests_oauthlib >= 0.6.1, == 0.6.*',
-        'six >= 1.10.0, == 1.10.*'
+        'requests >=2.14.2',
+        'requests_oauthlib >= 0.6.1',
+        'six >= 1.10.0'
     ],
     author='Asana, Inc',
     # author_email='',

┆Issue is synchronized with this Asana task

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
praecipulacommented, Aug 1, 2017

This is interesting because the current version specifier string was an attempt to keep our library compatible to older versions of setuptools that didn’t yet follow the compatible release version specifier of ~=. If you follow that link, you’ll see that the current strings are meant to be the “semantic meaning” that they suggest for an equivalent of ~=, but it’d be a shame if that doesn’t actually work.

This is tricky to test because we’d have to set up a machine / VM image with its configuration to be just right to test it out. In any case, newer versions of setuptools after version 8.0 (Dec 2014) should have no problem with either way of specifying a compatible release.

Could you attach the output of what your machine says when you run

pip show setuptools | grep Version

If it appears to be greater than 8.0, we’ll have to dig in deeper.

Otherwise, you should be able to get moving by running

pip install --upgrade setuptools

If that doesn’t work, be sure to let us know!

0reactions
theaeolianmachinecommented, Jan 17, 2018

We recently cut a new release of v0.6.7 - feel free to try it out using a version of setuptools greater than 8.0, and let us know if you run into any issues!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Installation error: 'install_requires' must be a string or list of ...
I'm trying to install pendulum on openSUSE 42.3 (Python 3.4.6). I have following error: pip install --user pendulum Collecting pendulum ...
Read more >
error in pipenv setup command: 'install_requires' must be a ...
1. Not enough information. · 1. I suspect something is broken in a recent release. · 1. I was able to install with...
Read more >
'install_requires' must be a string or list of ... - Misago Forums
'install_requires' must be a string or list of strings containing valid project/version requirement specifiers in Misago setup ... Error with install Misago.
Read more >
Python packaging edge cases - 921Kiyo
python setup_modified.py sdist bdist_wheel error in project setup command: 'install_requires' must be a string or list of strings containing ...
Read more >
Inspect install_requires from a python package - Super User
I have no idea how far this generalizes, but after getting more detailed logs of the error, I found that it was downloading...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found