instruction for solving issue with this error : " AttributeError: module 'em' has no attribute 'BUFFERED_OPT' when building firmware for esp32 on udp transfering
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Tài liệu
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- python
- Lĩnh vực
- build-system, embedded-iot
Hướng nghiên cứu
Bắt đầu với lỗi được báo cáo khi chạy ros2 run micro_ros_setup build_firmware.sh và môi trường Python của ESP32 tại firmware/toolchain/espressif/python_env/idf4.1_py3.8_env. Xác minh lỗi em.BUFFERED_OPT và các bước cài đặt Empy được liệt kê, sau đó xác định nơi nên ghi lại workaround này; công việc được xem là hoàn tất khi hướng dẫn build firmware nêu rõ lỗi và cách khôi phục.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Issue template
- Hardware description: esp32
- RTOS: freeRtos
- Installation type: micro_ros_setup
- Version or commit hash: version of micro-ROS used: galactic for Ubuntu 20.04
Steps to reproduce the issue
Assuming you have already setup the firmware using ros2 run micro_ros_setup create_firmware_ws.sh freertos esp32 and after proper wifi configuration, when you try to build the firmware for udp transferring using ros2 run micro_ros_setup build_firmware.sh you will most likely get an error which related to the Python environment and the em (Empy) module. The specific error is:
AttributeError: module 'em' has no attribute 'BUFFERED_OPT'
To resolve this issue, follow these steps:
- First, deactivate any active Python virtual environments:
deactivate
To install empy in the specific Python environment used by the build process, you should use the pip associated with that Python installation. Here's the command to install empy version 3.3.4 in that environment:
~/microros_ws/firmware/toolchain/espressif/python_env/idf4.1_py3.8_env/bin/pip3 install empy==3.3.4
- After that, verify the installation:
~/microros_ws/firmware/toolchain/espressif/python_env/idf4.1_py3.8_env/bin/python3 -c "import em; print(em.__file__)"
- Update setuptools and wheel:
~/microros_ws/firmware/toolchain/espressif/python_env/idf4.1_py3.8_env/bin/pip3 install --upgrade setuptools wheel
- Clean your micro-ROS workspace:
cd ~/microros_ws
rm -rf build install log
- Rebuild the workspace:
colcon build --symlink-install
- Source the setup file:
source install/local_setup.bash
- Try building the firmware again:
ros2 run micro_ros_setup build_firmware.sh
- Ngôn ngữ chính
- C++
- Star
- 201
- Fork
- 111
- Merge trung bình
- 1 ngày 6 giờ
- Pull request đã merge (30 ngày)
- 10
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của micro-ROS/micro-ROS-Agent
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 68/100
micro-ROS/micro-ROS-Agent#270 ·
-
micro-ROS Agent on macOS Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
micro-ROS/micro-ROS-Agent#269 ·
-
Release to apt Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
micro-ROS/micro-ROS-Agent#267 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 42/100
micro-ROS/micro-ROS-Agent#266 · 1 bình luận ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
micro-ROS/micro-ROS-Agent#265 · 1 bình luận ·
Tất cả issue của micro-ROS/micro-ROS-Agent
Issue tương tự
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
AXERA-TECH/ax-llm#77 ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
games-on-whales/wolf#509 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
-
bug-unconfirmed
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
NVIDIA/cuda-samples#453 ·