anselal / antminer-monitor

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

No such command "create_db" in Windows Subsystem for Linux (WSL) #143

Closed gaia closed 5 years ago

gaia commented 5 years ago
$ python --version
Python 2.7.15rc1

$ python manage.py create_db
Usage: manage.py [OPTIONS] COMMAND [ARGS]...
Try "manage.py --help" for help.

Error: No such command "create_db".

running the app works, and I can login (didn't run create_admin either, same error as above), but it obviously gets to a "table not found" error.

anselal commented 5 years ago

Be sure to have the latest version of AntminerMonitor installed.

If you typepython manage.py you should get a list with all available options. Can you check ?

gaia commented 5 years ago

I do get the list of options and it is the latest version.

anselal commented 5 years ago

Maybe a typo ?

gaia commented 5 years ago

tried many times, copy and paste included. I am on Windows Linux Subsystem (?)

anselal commented 5 years ago

You just mentioned that you are on WSL. Should be the first think you should have told.

Maybe it is a WSL related issue. It runs fine on Linux, Unix, Mac and Windows systems.

gaia commented 5 years ago

same error on windows: https://i.imgur.com/GlmwX6H.png

i also tried it on mac, same error, but i have no screenshot (it was done before I tried it on WSL)

pip via get-pip.py

anselal commented 5 years ago

According to your screenshot all the commands has been changed for some reason from an underscore (_) to a dash - so you have to run the following commands accordingly:

python manage.py create-db
python manage.py update-db
python manage.py create-admin
gaia commented 5 years ago

the underscore comes from your instructions: https://i.imgur.com/u6JnhpM.png thank you for your help!

anselal commented 5 years ago

Correct. It should be an underscore since it is defined so. Don't know why this is happening to you.

I am glad I helped. Donations are always welcome !!!