python manage.py (anything) NOT WORKING ANYMORE

28 views
Skip to first unread message

Gerald Brown

unread,
Jun 4, 2018, 6:58:39 AM6/4/18
to Django users
I have been using ./manage.py shell for awhile and now all of a sudden it has stopped working with the error "AttributeError: 'property' object has no attribute '__dict__'".  I get the same error with anything I enter after the ./manage.py (i.e. runserver, dbshell, etc)

I think it might have to do with something I added to my requirements.txt file.

Does anyone know of a way other than committing out the requirements.txt one-by-one on how to solve this problem?

Thanks.

Gerald Brown

unread,
Jun 4, 2018, 7:01:42 AM6/4/18
to Django users
By the way it is running in a pyvenvwrapper virtual environment .

Thanks.

Anthony Flury

unread,
Jun 4, 2018, 7:41:42 AM6/4/18
to django...@googlegroups.com
if everything is running in your virtual enviornment, do a `pip freeze`
in both environments - and then do a diff between them - that at least
will tell you which packages you have in the non-working environment
which might be different from the working environment; there might be a
lot though.

Have you possibly upgraded your django installation in the non-working
environment - I can't image any 3rd Party non django installations
breaking the Django such that the manage.py now doesn't work.

the other possibility is that your default python is different between
the two environment.

> Thanks.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to django-users...@googlegroups.com
> <mailto:django-users...@googlegroups.com>.
> To post to this group, send email to django...@googlegroups.com
> <mailto:django...@googlegroups.com>.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/b0b8631b-990b-4123-bc14-e10cf9b1406a%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/b0b8631b-990b-4123-bc14-e10cf9b1406a%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.


--
--
Anthony Flury
email : *Anthon...@btinternet.com*
Twitter : *@TonyFlury <https://twitter.com/TonyFlury/>*

Andréas Kühne

unread,
Jun 4, 2018, 7:59:21 AM6/4/18
to django...@googlegroups.com
Hi,

I got really strange issues when I upgraded my ubuntu machine from 17.04 to 17.10 when they changed the python version that was shipped with ubuntu (only going from python3.5 to 3.6 I THINK). This made all of my python environments stop working and I had to recreate them from scratch. Have you tried reinitializing the virtual environment?

Regards,

Andréas

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.

Melvyn Sopacua

unread,
Jun 4, 2018, 8:05:43 AM6/4/18
to django...@googlegroups.com
On maandag 4 juni 2018 12:58:39 CEST Gerald Brown wrote:
> I have been using ./manage.py shell for awhile and now all of a sudden it
> has stopped working with the error "AttributeError: 'property' object has
> no attribute '__dict__'". I get the same error with anything I enter after
> the ./manage.py (i.e. runserver, dbshell, etc)

You most likely switched to Python 3. But a backtrace would help a lot to
understand the cause.

--
Melvyn Sopacua
Reply all
Reply to author
Forward
0 new messages