Is it possible you create your virtual environments
with global site-packages?
>From what I'm seeing this is caused primarily by
version mismatches of the six library and using
OS site-packages with virtualenv would certainly
do it as setuptools and pip both use six.
The difference with 1.10/1.11
Hi Melvyn,
Renaming MIDDELWARE_CLASSES doesn't help either.
These are the requirements I have:
django==1.10.5
djangorestframework
markdown
django-filter
django-jinja
pytest
factory_boy
fabric3
pytest-django
feedparser==5.2.1
pytz
PyYAML
lxml
requests
django-extensions
Werkzeug
django-cors-he
Rename MIDDLEWARE_CLASSES to
MIDDLEWARE in settings to see if that changes anything.
If not, remove one by one (except static). There are some changes to
the static files middleware [1], but I can't really relate that to
your error.
Is there anything in your project requirements that also uses six
If I turn off debug mode, it gives me 500 error and showing the same stack
trace in the console.
I also tried 1.11.4, still the same error.
On Mon, Sep 4, 2017 at 2:33 AM, Raffaele Salmaso
wrote:
> On Sun, Sep 3, 2017 at 4:26 PM, Derek Zeng wrote:
>>
>> When I use django==1.10.7, this does not
On Sun, Sep 3, 2017 at 4:26 PM, Derek Zeng wrote:
>
> When I use django==1.10.7, this does not happen.
> When I use django==1.11a1 this happens.
>
Why 1.11a1? Current is 1.11.4
--
| Raffaele Salmaso
| https://salmaso.org
| https://bitbucket.org/rsalmaso
| https://github.com/rsalmaso
--
You rec
ptured when i
> was just debugging it in 3.5.
>
> On Sun, Sep 3, 2017 at 2:55 PM, James Schneider
> wrote:
>>
>>
>>
>> File
>> "/Users/coderek/Documents/projects/py3.5/lib/python3.5/site-packages/django/contrib/staticfiles/storage.py",
>> line
torage.py",
> line 21, in
> from django.utils.six.moves import range
> ImportError: cannot import name 'range'
>
>
> Are you sure you're using 3.6.2? Do you have another virtualenv with 3.5
> and no Django installed?
>
> -James
>
> --
> Y
File
"/Users/coderek/Documents/projects/py3.5/lib/python3.5/site-packages/django/contrib/staticfiles/storage.py",
line 21, in
from django.utils.six.moves import range
ImportError: cannot import name 'range'
Are you sure you're using 3.6.2? Do you have another v
l = self.url(context)
File
"/Users/coderek/Documents/projects/py3.5/lib/python3.5/site-packages/django/templatetags/static.py",
line 102, in url
return self.handle_simple(path)
File
"/Users/coderek/Documents/projects/py3.5/lib/python3.5/site-packages/django/templatetags/static.py",
x.moves import range, ImportError: cannot import name
> 'range'
Really not sure why it has this weird error. I'm using python 3.6.2
Any help is appreciated!
Is the referenced error coming from code that you wrote?
There's a comma at the end of the import line, which
Hi,
Today I tried to install my django project on a new mac computer. I used
virutalenv to setup the packages.
After I start the app by running './mange.py runserver' and access the home
page I got the error
from django.utils.six.moves import range, ImportError: cannot import name
11 matches
Mail list logo