• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

ESP8266 Publishing DHT22 Readings with MQTT to Raspberry Pi

Q&A Forum › Category: Raspberry Pi › ESP8266 Publishing DHT22 Readings with MQTT to Raspberry Pi
0 Vote Up Vote Down
David Brown asked 3 years ago

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
 
 

4 Answers
0 Vote Up Vote Down
Steve Mercer answered 3 years ago

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
0 Vote Up Vote Down
David Brown answered 3 years ago

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

0 Vote Up Vote Down
David Brown answered 3 years ago

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   

0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

Hi.
What board are you using and what example are you trying to run?

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.