5👍
Check if there’s no your own version of io.py
using following command.
C:\> python -c "import io; print io.__file__"
c:\python27\lib\io.pyc
You should see similar output.
If there’s your own version, it shadows builtin version of io
package. Rename your own module with a name that does not collide with standard module. (Don’t forget pyc
files.)
- All the values of the many to many field : Django
- Limit the queryset of autocomplete fields in Django
-1👍
in my case.
import io
from googleapiclient.http import MediaIoBaseDownload
- Install pil on virtualenv with libjpeg
- Setup.py exclude some python files from bdist
- How to solve the circular import error in django?
- Django 1.6: How to access static files in view
- Secure static media access in a Django site
Source:stackexchange.com