2021-06-27 install ROS noetic version. There was a problem during compilation. Now record it
1. Error one
-- Could NOT find PY_em (missing: PY_EM)
CMake Error at cmake/empy.cmake:30 (message):
Unable to find either executable 'empy' or Python module 'em'... try
installing the package 'python-empy'
You need to install Python empy to solve the above problems
pip install empy
2. Error two
Once the error is resolved, continue with catkin_ The following error occurred when making
ImportError: "from catkin_pkg.package import parse_package" failed: No module named 'catkin_pkg'
Make sure that you have installed "catkin_pkg", it is up to date and on the PYTHONPATH
Try to find catkin_ PKG and check pythonpath with the following command:
locate catkin_pkg
If you execute the above command and report an error that locate is not installed, use the following command to install it:
sudo apt install mlocate
After executing locate catkin_ After PKG, in the displayed results, the first behavior is as follows:
/usr/lib/python3/dist-packages/catkin_pkg
View the path of pythonpath
echo $PYTHONPATH
# After executing the above command, the following result is displayed
/opt/ros/noetic/lib/python3/dist-packages
Therefore, catkin_ Make is not in the pythonpath path. Next, you need to add catkin_ Make is added to the pythonpath path
Edit the ~/.bashrc file and add the following two lines to the end of the file.
export PYTHONPATH=$PYTHONPATH:/usr/lib/python3/dist-packages
Save the file and run the source to update.
source ~/.bashrc
Re-check PYTHONPATH:
echo $PYTHONPATH
/opt/ros/noetic/lib/python3/dist-packages:/usr/lib/python3/dist-packages
To solve the above two problems
Read More:
- Ubuntu18.04 Install ROS Error: rosdep update [How to Solve]
- [Solved] catkin_make Error: pkg_resources.DistributionNotFound: pyparsing
- [Solved] Jetson Nano catkin_make Error: internal compiler error
- [Solved] catkin_make error: CMake Error at CMakeLists.txt:1:
- The upgrade of Ubuntu results in an error in the compilation of Android Jack [Two Method to Solve]
- ros2 apt-get install error: E: Failed to fetch http://packages.ros.org…
- How to Solve Xmind Install Error in Ubuntu System
- How to Solve labelme Install Error in Ubuntu
- How to Solve Mujoco Install Error in Ubuntu (Pycharm Run Error)
- mysqlclient in Ubuntu: How to Solve mysqlclient Install Error
- An error occurred during the signature verification in the ROS function pack warehouse
- [Solved] Any Softwares Install Error in Ubuntu: /usr/bin/dpkg returned an error code
- How to Solve Rosep Problem in ROS Initialization (Sudo Rosep Init)
- When installing software in Ubuntu, it prompts: E: You don’t have enough free space in /var/cache/apt/archives/.
- [Solved] Ubuntu pip Install Error: which is not on PATH
- Ubuntu 20.04 Desktop Install sublime-text Error: “Certificate verification failed”
- Ubuntu Server: How to Install Chrome
- [Solved] Ubuntu 20.04 install MATLAB and toolbox permissions Error
- Ubuntu install and compile OpenCV3.4.0 fatal error: dynlink_nvcuvid.h: No such file or directory #include <dynlink_nv
- The solution of insufficient disk space of docker in Ubuntu