Re: from django.utils.six.moves import range, ImportError: cannot import name 'range'

2017-09-04 Thread Melvyn Sopacua
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

Re: from django.utils.six.moves import range, ImportError: cannot import name 'range'

2017-09-04 Thread Derek Zeng
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

Re: from django.utils.six.moves import range, ImportError: cannot import name 'range'

2017-09-04 Thread Melvyn Sopacua
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

Re: from django.utils.six.moves import range, ImportError: cannot import name 'range'

2017-09-04 Thread Derek Zeng
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

Re: from django.utils.six.moves import range, ImportError: cannot import name 'range'

2017-09-03 Thread Raffaele Salmaso
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

Re: from django.utils.six.moves import range, ImportError: cannot import name 'range'

2017-09-03 Thread Melvyn Sopacua
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

Re: from django.utils.six.moves import range, ImportError: cannot import name 'range'

2017-09-03 Thread Derek Zeng
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

Re: from django.utils.six.moves import range, ImportError: cannot import name 'range'

2017-09-03 Thread James Schneider
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

Re: from django.utils.six.moves import range, ImportError: cannot import name 'range'

2017-09-03 Thread Derek Zeng
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",

Re: from django.utils.six.moves import range, ImportError: cannot import name 'range'

2017-09-02 Thread James Schneider
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

from django.utils.six.moves import range, ImportError: cannot import name 'range'

2017-09-02 Thread Derek Zeng
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