anselal / antminer-monitor

Cryptocurrency ASIC mining hardware monitor using a simple web interface
GNU General Public License v3.0
227 stars 145 forks source link

Error creating DB (manage.py create-db) #200

Open pool2mine opened 1 year ago

pool2mine commented 1 year ago

it has been impossible for me to install this repo, i changed the requirements.txt and it worked, but when i try to create the db, a lot of error comes and if i try to fix one, i'll break another. for example...

ImportError: cannot import name 'safe_str_cmp' from 'werkzeug.security' (/usr/local/lib/python3.8/dist-packages/werkzeug/security.py)

looks like after Werkzeug released 2.1.0, they removed werkzeug.security.safe_str_cmp

but if i downgrade it will conflict with flask and jinja2

is there a fix for this?

imar4ik commented 3 months ago
# app requirements
Flask==3.0.3
Flask-Login==0.6.3
Flask-Migrate==2.5.2
Flask-WTF==1.2.1
python-dotenv==0.11.0
SQLAlchemy==1.4.52
WTForms==3.0.0
WTForms-Components==0.10.4
#Werkzeug>=2.2.2
# service
gunicorn
requests
# dev
isort==4.3.21
yapf==0.29.0

to requirements.txt