-
-
Notifications
You must be signed in to change notification settings - Fork 318
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeError: 'str' object has no attribute '__root__' #197
Comments
I'm experiencing the same issue. It crops up when I attempt unit tests. The issue seems to stem from environ.py line 709 in the Path class,
The method raises an AttributeError because
and this resolved the issue for me. Not sure if this is a safe solution or not. |
This reverts commit 2b0d2ce.
Also got bit by this - fix was updating settings: to
|
This looks like a dup or at least is heavily related to #86 |
Fixed in |
Hi,
I just got an error that I do not understand.
Here is what I did:
In order for django-debug-toolbar (dtb) to work I wanted to add 127.0.0.1 to INTERNAL_IPS. Because I was only trying to check if this causes dtb to work, I did not set this setting via environment variables or the env file.
For some reason this throws an exception which has its root in
environ/environ.py", line 730, in __eq__
, because dtb callsnormpath(path)
fromposixpath.py in line 333
(see Traceback below).I do not understand why django-environ is involved in this at all. Can you give me an explanation?
A nother very strange thing is that any other entry in INTERNAL_IPS does not cause this error.
Why is this specific IP causing this error?
I apreciate any kind of hint as to how to solve this or how to further debug this or any explanation why this is happening.
The text was updated successfully, but these errors were encountered: