You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It appears that the twisted package may have changed a little bit since authrevproxy.py was written. When installing versions of Twisted at least >= 20.3.0, I was getting the error
File "authrevproxy.py", line 14, in <module>
from twisted.web.error import ForbiddenResource
ImportError: cannot import name 'ForbiddenResource' from 'twisted.web.error'
The solution to this seemed to be to update where ForbiddenResource was being imported from. It appears that it now needs to be imported from twisted.web.resource instead of twisted.web.error. Here is the file that led me to this solution - https://github.com/twisted/twisted/blob/trunk/src/twisted/web/resource.py
Hopefully this helps if someone else runs into a similar issue.
The text was updated successfully, but these errors were encountered:
Hi,
It appears that the twisted package may have changed a little bit since
authrevproxy.py
was written. When installing versions of Twisted at least >=20.3.0
, I was getting the errorThe solution to this seemed to be to update where
ForbiddenResource
was being imported from. It appears that it now needs to be imported fromtwisted.web.resource
instead oftwisted.web.error
. Here is the file that led me to this solution - https://github.com/twisted/twisted/blob/trunk/src/twisted/web/resource.pyHopefully this helps if someone else runs into a similar issue.
The text was updated successfully, but these errors were encountered: