smicallef / spiderfoot

SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
http://www.spiderfoot.net
MIT License
12.94k stars 2.25k forks source link

'Secure' object has no attribute 'framework #1891

Open time2dine opened 1 week ago

time2dine commented 1 week ago

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 commented 1 week ago

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