-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
'Secure' object has no attribute 'framework #1891
Comments
Ive had the same problem on Arch Linux. Try running the program thru venv. Here is a quick tutorial: https://docs.python.org/3/library/venv.html. In my case the actual commands where shown in terminal. |
hey i tried the venv solution, and i'm still having problems with this not working even through the virtual environment. i set up the venv then used pip3 to install everything. still doesn't work and throws the same error for me. running Linux Mint 22 and Python 3.12.3 on my machine. any help would be greatly appreciated. |
and update: a hunch i had about the libraries being updated and this project not doing so was correct. looked around for similar errors in other issues and found #1602. python library "secure" needs to be exactly 0.3, use @DariuszGulbicki @time2dine if y'all could test this and lemme know if that fixes it, maintainers can probably close this ticket. either way anyone off google will hopefully find this answer. |
"pip3 install --force-reinstall secure==0.3" solved it definitely for me! Thank you! |
I'm trying to run python3.13 on the web ui and keep getting this:
AttributeError: 'Secure' object has no attribute 'framework'
I've tried to install python-framework but that leads me down a rabbit hole that ends in[ ](error: metadata-generation-failed).
Here's more info on the original issue.
Traceback (most recent call last):
File "/Users/name/spiderfoot/./sf.py", line 634, in
main()
~~~~^^
File "/Users/name/spiderfoot/./sf.py", line 229, in main
start_web_server(sfWebUiConfig, sfConfig, loggingQueue)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/name/spiderfoot/./sf.py", line 586, in start_web_server
cherrypy.quickstart(SpiderFootWebUi(sfWebUiConfig, sfConfig, loggingQueue), script_name=web_root, config=conf)
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/name/spiderfoot/sfwebui.py", line 121, in init
"tools.response_headers.headers": secure_headers.framework.cherrypy()
^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'Secure' object has no attribute 'framework'
The text was updated successfully, but these errors were encountered: