I really like your tutorials and admire your work.
While working at setting up to do this tutorial this happened
After this command:
sudo pip install flask-socketio
I received this message:
Collecting bidict>=0.21.0 (from python-socketio>=5.0.2->flask-socketio)
Could not find a version that satisfies the requirement bidict>=0.21.0 (from python-socketio>=5.0.2->flask-socketio) (from versions: 0.1.5, 0.2.1, 0.3.0, 0.3.1, 0.9.0rc0, 0.9.0.post1, 0.10.0, 0.10.0.post1, 0.11.0, 0.12.0.post1, 0.13.0, 0.13.1, 0.14.0, 0.14.1, 0.14.2, 0.15.0.dev0, 0.15.0.dev1, 0.15.0rc1, 0.15.0, 0.16.0, 0.17.0, 0.17.1, 0.17.2, 0.17.3, 0.17.4, 0.17.5, 0.18.0, 0.18.1, 0.18.2, 0.18.3, 0.18.4)
No matching distribution found for bidict>=0.21.0 (from python-socketio>=5.0.2->flask-socketio)
I just perform sudo apt-get upgrade and sudo apt install for my debian buster io
Thanks,
Dave
I’m not a python guy but I believe this is a versioning error. flask-socketio 5.0+ does not support python 2.x any more.
Try
sudo pip install flask-socketio==4.6.0
I didn’t realize I stuck in python 2.7 mode thanks for the tip! I will not have to see what else is looking in the wrong direction.
Thanks again
I was able to get the web-server to run, by installing pip3 on my rpi 4, for some reason it was pointing at python 2,7. I I think that the syntax differences between Python V 2, and V 3, were causing some problems with getting the code to run. I got that worked out but, I am now not getting any output from my ESP 8266 board and the On – Off controls from the web-server don’t work. I am not positive that I am using the right board in my Arduino IDE, and I have had problems with quality control on cheap ESP boards. i.e. one out of three purchased are dead. I am going to try a another board, I will run some simple blink sketch to make sure it works.
TTFN