1

catkin build失败是由于

Errors     << mavlink:make /home/eia-lab1/catkin_ws/logs/mavlink/build.make.005.log
Traceback (most recent call last):
  File "/home/eia-lab1/catkin_ws/src/mavlink/pymavlink/tools/mavgen.py", line 16, in <module>
    from pymavlink.generator import mavgen
  File "/home/eia-lab1/catkin_ws/src/mavlink/pymavlink/generator/mavgen.py", line 26, in <module>
    from future import standard_library
ImportError: No module named future
make[2]: *** [paparazzi-v2.0-cxx-stamp] Error 1
make[1]: *** [CMakeFiles/paparazzi.xml-v2.0.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
Traceback (most recent call last):
  File "/home/eia-lab1/catkin_ws/src/mavlink/pymavlink/tools/mavgen.py", line 16, in <module>
    from pymavlink.generator import mavgen
  File "/home/eia-lab1/catkin_ws/src/mavlink/pymavlink/generator/mavgen.py", line 26, in <module>
    from future import standard_library
ImportError: No module named future
make[2]: *** [matrixpilot-v2.0-cxx-stamp] Error 1
make[1]: *** [CMakeFiles/matrixpilot.xml-v2.0.dir/all] Error 2
make: *** [all] Error 2

尽管安装了未来。

$ pip list | grep fut
future                        0.18.2

我已经尝试过以下方法:

$ pip install -U future 
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: future in /home/eia-lab1/.local/lib/python3.6/site-packages (0.18.2)

$ sudo -H pip install future
Requirement already satisfied: future in /usr/lib/python3/dist-packages (0.15.2)

$ python3 -m pip install future
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: future in /home/eia-lab1/.local/lib/python3.6/site-packages (0.18.2)

$ pip install future
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: future in /home/eia-lab1/.local/lib/python3.6/site-packages (0.18.2)

$ pip3 install future
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: future in /home/eia-lab1/.local/lib/python3.6/site-packages (0.18.2)

资源:

我开始认为这可能是路径采购问题!?我正在使用 Ubuntu 18.04 LTS。

4

1 回答 1

0

我不能添加评论,所以我走了。

  1. 您可能使用了错误版本的 python,请尝试使用新的或旧的

  2. 模块可能在错误的文件中

这些是我看到的唯一两件事,因为您已经尝试了各种安装方法

于 2020-12-22T22:23:19.457 回答