smicallef / spiderfoot

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

sfp_filemeta: No module named 'exceptions' #1848

Open mattmayer94 opened 8 months ago

mattmayer94 commented 8 months ago

I'm trying to start the server to launch the web UI, but I'm receiving an error

CRITICAL:spiderfoot.main:Failed to load module sfp_filemeta: No module named 'exceptions'

2024-03-02 08:34:35,727 [CRITICAL] sf : Failed to load module sfp_filemeta: No module named 'exceptions'

'exceptions' does not appear in sfp_filemeta so it must be from a dependency.

What am I missing?

SHL0MS-team commented 8 months ago

same error

darkb0ts commented 8 months ago

what is your python version cmd:python --version and paste your error

distinguishedVagrant commented 5 months ago

Same issue here, running python 3.11.2 on debian xfce disposable in qubes.os.

(myenv) user@disp9558:/snap/spiderfoot/current$ python3 sf.py -l 127.0.0.1 2024-06-06 19:35:35,307 [CRITICAL] sf : Failed to load modules: No module named 'exceptions' Traceback (most recent call last): File "/snap/spiderfoot/133/sf.py", line 144, in main sfModules = SpiderFootHelpers.loadModulesAsDict(mod_dir, ['sfp_template.py']) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/snap/spiderfoot/133/spiderfoot/helpers.py", line 161, in loadModulesAsDict mod = import('modules.' + modName, globals(), locals(), [modName]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/snap/spiderfoot/133/modules/sfp_filemeta.py", line 19, in import docx File "/home/user/myenv/lib/python3.11/site-packages/docx.py", line 30, in from exceptions import PendingDeprecationWarning ModuleNotFoundError: No module named 'exceptions'

fmendes-e commented 5 months ago

same error here.

fmendes-e commented 5 months ago

try this, in my case was cython, when i run pip3 install -r requirements return something related with, so i install this guy, uninstall pyyaml and install again.

groot@debian:~/spiderfoot-4.0$ pip3 install "cython<3.0.0" wheel --break-system-packages pip uninstall pyyaml --break-system-packages pip install "pyyaml==5.4.1" --no-build-isolation --break-system-packages pip3 install -r requirements.txt --break-system-packages

after all this is returning other error with cryptography not compatible to other modules, but now i can run spiderfoot xD

R4teL-M commented 2 weeks ago

same error ,After using the fmendes-e method, the startup was successful

试试这个,在我的情况下是 cython,当我运行 pip3 install -r requirements 返回与之相关的东西,所以我安装了这个家伙,卸载 pyyaml 并再次安装。

groot@debian:~/spiderfoot-4.0$ pip3 安装“cython<3.0.0” wheel --break-system-packages pip 卸载 pyyaml --break-system-packages pip 安装“pyyaml==5.4.1” --no-build-isolation --break-system-packages pip3 安装 -r requirements.txt --break-system-packages

毕竟这返回了其他错误,加密与其他模块不兼容,但现在我可以运行 spiderfoot xD