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

Problem with requirements #376

Open
kaboom2517 opened this issue Apr 4, 2024 · 1 comment
Open

Problem with requirements #376

kaboom2517 opened this issue Apr 4, 2024 · 1 comment

Comments

@kaboom2517
Copy link

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

@GetchColumn
Copy link

GetchColumn commented Jul 14, 2024

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

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

2 participants