Skip to content
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

ImportError: cannot import name 'ForbiddenResource' from 'twisted.web.error' #8

Open
brandon-biggs opened this issue Mar 30, 2022 · 1 comment

Comments

@brandon-biggs
Copy link

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 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.

@sorenwacker
Copy link

Thanks that was helpful.

I now can run Tensorboard in OOD, but I am actually getting this:

Forbidden Resource
Sorry, resource is forbidden.

Seems I am still missing some configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants