Saleor: Error on initial migrate

Created on 26 Aug 2016  路  14Comments  路  Source: mirumee/saleor

Hi, can anyone help me solve this error I ran into when trying to run 'migrate.py' for the first time? I couldn't find any issues that already covered this and I only see 'userprofile.User' once, in 'settings.py'


SystemCheckError: System check identified some issues:

CRITICALS:

userprofile.User: (auth.C009) .is_anonymous must be an attribute or property rather than a method. Ignoring this is a security issue as anonymous users will be treated as authenticated!

userprofile.User: (auth.C010) .is_authenticated must be an attribute or property rather than a method. Ignoring this is a security issue as anonymous users will be treated as authenticated!

There doesn't seem to be a way to ignore the SystemCheckError and continue :(

Thank you!!

bug

All 14 comments

I am facing with the same issue.

Same here, is there a demo site one could try before working around this issue?

there is no demo site

Hey, I need to know more how to reproduce this error

  1. Could you give me more information about your configuration? OS, Python and Django versions?
  2. Did you used official installation guide? https://saleor.readthedocs.io/en/latest/installation.html
  3. Have you tried docker image? It was easiest way for me to test Saleor

I am also facing this issue.

  1. Could you give me more information about your configuration? OS, Python and Django versions?

Ubuntu 16.04, Python 3.5.2, Django 1.10 according to requirements.txt.

  1. Did you used official installation guide? https://saleor.readthedocs.io/en/latest/installation.html

Yes. Apart from having installed wheel locally in addition (see #552).

  1. Have you tried docker image? It was easiest way for me to test Saleor

Not tried, want to have a development environment without dealing with docker.

OSX El Capitan/Yes, I used the official installation guide/ Python 3.5.2/Django 1.10
(I'm getting the exact same error with python 2.7,too)
Thanks for helping us!

You can try deploying on heroku to reproduce this error.

You're right - there is problem with django version in requirements.txt. Thanks for reporting it! :)
Fast fix for testing - pip install -U django==1.9.

Thank you for reporting this. It seems Django has recently implemented a new system check that was not in place when we conducted initial testing. This is now fixed on master.

Fix confirmed.

@patrys - Just letting you know:
Django 1.10 also causes an error after clicking 'Place Order' during the checkout process.

Exception Type: TypeError at /checkout/summary/
Exception Value: 'shipping_required' is an invalid keyword argument for this function

Everything is working fine for me after downgrading to Django 1.9. Thanks for helping me get started with saleor

@myulz could you provide a complete stack trace? I've updated dependencies on master branch and "Place order" seems to work fine (Python 3.5, Django 1.10).

@patrys I updated my fork with master after your latest dependency update and I still get the same error on 1.10

stack trace: http://dpaste.com/08QYX1Q

@myulz Good catch, it turns out that under certain circumstances we tried to pass a non-existent field name to manager.create(). Not sure how and why it worked in Django 1.9 though.

Should be fixed now.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jujes picture jujes  路  4Comments

timuric picture timuric  路  3Comments

PiotrCzapla picture PiotrCzapla  路  3Comments

ghost picture ghost  路  4Comments

damianarechar picture damianarechar  路  3Comments