orangutangas
orangutangas

Reputation: 411

weakref module has no attribute 'weakvaluedictionary'

There came up strange error from python today. Whatever i want to launch or do, i can't getting error : 'module' has no attribute 'weakvaluedictionary'.
Even tried to launch pip install/uninstall and got same error.
Nothing has been changed from last day, and yesterday everything was working perfectly.
I checked init.py and did not see anything strange with weakref: there is import weakref and _handlers = weakref.WeakValueDictionary() #map of handler names to handlers lines.
Please help!!

Upvotes: 0

Views: 1090

Answers (1)

kindbit
kindbit

Reputation: 11

I was having same issue than you. The problem was that I was naming the file I was trying to run/edit as weakref.py Then, only change the name. I changed name to "weakref_example.py"

Upvotes: 1

Related Questions