Python-Honeypot icon indicating copy to clipboard operation
Python-Honeypot copied to clipboard

Problem with requirements

Open kaboom2517 opened this issue 1 year ago • 3 comments

Hi, I've followed the installation steps and guide given in the wiki page, but I`ve got this error while starting via python ohp.py --start-api-server and the same error in docker compose: ImportError: cannot import name 'url_quote' from 'werkzeug.urls' I`ve googled it and I understood that version of werkzeug must be the same as flask version, so I`ve updated requrements.txt Than I`ve got this error: изображение


OS: Ubuntu

OS Version: 22.04

Python Version: 3.10.12

kaboom2517 avatar Apr 04 '24 11:04 kaboom2517

Hello. Dirty solution is replace "import" to "print" as example, in file /core/compatible.py, in function "check_for_requirements(start_api_server)". It should go like this: for module_name in external_modules: try: print( module_name.split('==')[0] if 'library_name=' not in module_name else module_name.split('library_name=')[1].split()[0] ) except Exception: exit_failure( "pip3 install -r requirements.txt ---> " + module_name + " not installed!" ) This will disable dependency checking and allow honeypot to run, so you can see the modules being checked in this function. However, this may cause other bugs, so you should find the right solution to the problem

GetchColumn avatar Jul 14 '24 15:07 GetchColumn