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

'Secure' object has no attribute 'framework #1891

Open
time2dine opened this issue Oct 11, 2024 · 4 comments
Open

'Secure' object has no attribute 'framework #1891

time2dine opened this issue Oct 11, 2024 · 4 comments

Comments

@time2dine
Copy link

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'

@DariuszGulbicki
Copy link

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.

image

@Nebula-0-System
Copy link

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.

@Nebula-0-System
Copy link

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 pip3 install --force-reinstall secure==0.3 to install the correct version. it immediately begins working after doing so

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

@palWorx
Copy link

palWorx commented Nov 2, 2024

"pip3 install --force-reinstall secure==0.3" solved it definitely for me! Thank you!

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

4 participants