espressif / esp-idf

Espressif IoT Development Framework. Official development framework for Espressif SoCs.
Apache License 2.0
12.56k stars 7.01k forks source link

我无法运行websocket echo server例程中的pytest_ws_server_example.py (IDFGH-12724) #13707

Open FlyyingPiggy2020 opened 2 weeks ago

FlyyingPiggy2020 commented 2 weeks ago

Answers checklist.

IDF version.

ESP-IDF v5.1.1-dirty

Operating System used.

Linux

How did you build your project?

Command line with idf.py

If you are using Windows, please specify command line type.

None

What is the expected behavior?

能够正常运行pytest_ws_server_example.py

What is the actual behavior?

ModuleNotFoundError: No module named 'common_test_methods'

image

Steps to reproduce.

1.python python pytest_ws_server_example.py

Build or installation Logs.

No response

More Information.

我已经按照Readme去下载了websocket-client

gabsuren commented 1 week ago

@FlyyingPiggy2020 sorry, but I am not sure what websocket echo server do you use. Please check the examples in esp-protocols https://github.com/espressif/esp-protocols/blob/master/components/esp_websocket_client/examples/target/pytest_websocket.py

And in order to setup ESP-IDF environment please check programming guide https://docs.espressif.com/projects/esp-idf/en/latest/esp32/get-started/linux-macos-setup.html