underyx / flask-redis

A Flask extension for using Redis
Other
436 stars 71 forks source link

ImportError: cannot import name FlaskRedis #22

Closed kirang89 closed 8 years ago

kirang89 commented 9 years ago

I am trying to import FlaskRedis into my flask application using from flask.ext.redis import FlaskRedis but it fails. Here is my pip freeze:

Flask-Redis==0.0.6
redis==2.10.3

Am I missing something obvious here ?

dhesson commented 8 years ago

I'm having the same issue. Also in PyPi and in the build server I see version 0.1.0 but it pulls 0.0.6 and 0.0.6 appears to be either broken or doesn't contain FlaskRedis.

underyx commented 8 years ago

The issue seems to be with pip install flask-redis downloading an old version, but I am not able to reproduce it. What are your Python, pip, and setuptools versions?

kirang89 commented 8 years ago

Python 2.7.10 and pip 1.4.1

underyx commented 8 years ago

Wow, that's amazingly old. You probably aren't able to install wheels then. I guess I'll have to upload a source distribution to PyPI in a bit.

underyx commented 8 years ago

I've uploaded a zip of the source to pypi, and pip 1.4.1 correctly installed it for me with pip install flask-redis. Can you guys try to install it again?

kirang89 commented 8 years ago

Damn, I noticed that I have pip 7.1.2 in my system but 1.4.1 in my virtualenv. It works on 1.4.1 now. Thanks for the fix and pointing out the obsolete version!

underyx commented 8 years ago

You got it :smile_cat:

dhesson commented 8 years ago

Yeah my virtualenv has pip 1.4.1 and python 2.7.10. Thanks for the fix.