jczic / MicroWebSrv2

The last Micro Web Server for IoTs (MicroPython) or large servers (CPython), that supports WebSockets, routes, template engine and with really optimized architecture (mem allocations, async I/Os). Ready for ESP32, STM32 on Pyboard, Pycom's chipsets (WiPy, LoPy, ...). Robust, efficient and documented!
https://github.com/jczic/MicroWebSrv2
MIT License
662 stars 97 forks source link

cannot import name allocate_lock #62

Open erkel1 opened 3 years ago

erkel1 commented 3 years ago

Hi,

I am getting the below error any ideas?

   ---------------------------
   - Python pkg MicroWebSrv2 -
   -      version 2.0.6      -
   -     by JC`zic & HC2     -
   ---------------------------

Traceback (most recent call last): File "main.py", line 3, in File "MicroWebSrv2/init.py", line 15, in File "MicroWebSrv2/libs/XAsyncSockets.py", line 7, in ImportError: cannot import name allocate_lock MicroPython ESP32_LoBo_v3.2.24 - 2018-09-06 on ESP32 board with ESP32

Quadrangle commented 3 years ago

I long since wrote my own code, but looking at this helped me.I think I wondered about the same thing.  It was due to print statements being in a module that gets imported, and by doing this, print statements were executed.

Sent from Yahoo Mail for iPad

On Monday, February 8, 2021, 9:09 PM, erkel1 notifications@github.com wrote:

Hi,

I am getting the below error any ideas?

Traceback (most recent call last): File "main.py", line 3, in File "MicroWebSrv2/init.py", line 15, in File "MicroWebSrv2/libs/XAsyncSockets.py", line 7, in ImportError: cannot import name allocate_lock MicroPython ESP32_LoBo_v3.2.24 - 2018-09-06 on ESP32 board with ESP32

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.