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

Weird error with "Flask" in setup_requires. #1106

Closed
Ayrx opened this issue Jul 6, 2014 · 5 comments
Closed

Weird error with "Flask" in setup_requires. #1106

Ayrx opened this issue Jul 6, 2014 · 5 comments

Comments

@Ayrx
Copy link

Ayrx commented Jul 6, 2014

I have noticed a rather weird error when installing a package that has Flask in install_requires. Here is the partial output of python setup.py install

Searching for Flask
Best match: Flask RESTful-0.2.12
Downloading https://pypi.python.org/packages/source/F/Flask-RESTful/Flask-RESTful-0.2.12.tar.gz#md5=53049771f4ccb3f40194696bb683db77
Processing Flask-RESTful-0.2.12.tar.gz
Writing /tmp/easy_install-ljhjqn/Flask-RESTful-0.2.12/setup.cfg
Running Flask-RESTful-0.2.12/setup.py -q bdist_egg --dist-dir /tmp/easy_install-ljhjqn/Flask-RESTful-0.2.12/egg-dist-tmp-4d1snj
Flask-RESTful 0.2.12 is already the active version in easy-install.pth

Installed /home/ayrx/.virtualenvs/test/lib/python3.3/site-packages/Flask_RESTful-0.2.12-py3.3.egg
error: Could not find required distribution Flask

Here is the relevant bit of setup.py

    install_requires=[
        "Flask",
        "Flask-RESTful",
        "cryptography"
    ]

Changing "Flask" to "flask" seems to fix things. Not a breaking bug but seems weird nonetheless especially since the packaging docs seem to indicate that "Flask" works fine.

@limeburst
Copy link
Contributor

@DasIch
Copy link
Contributor

DasIch commented Jul 26, 2014

Closing this because it's an issue in setuptools.

@DasIch DasIch closed this as completed Jul 26, 2014
@EmergentBehavior
Copy link

I know this issue is closed but, while it is still actually an issue with setuptools, you should be able to get around this by specifying the Flask version in your setup.py. For example, instead of "Flask" use "Flask>=0.10.1".

@untitaker
Copy link
Contributor

@EmergentBehavior This is useful to know, thanks!

@avbentem
Copy link

Just for future reference, as setuptools moved from Bitbucket to GitHub: pypa/setuptools#498

Also, rather than specifying a version number, changing the order of the dependencies may help too.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants