Unable to install pymavlink on Jetson Nano

Hi im unable to install pymavlink on my jetson nano 2gb with jetpack 4.6
I’m getting error:-

ERROR: Failed building wheel for pymavlink
Running setup.py clean for pymavlink
Failed to build pymavlink
Installing collected packages: pymavlink
Running setup.py install for pymavlink … error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -u -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/tmp/pip-install-8xnz4zi7/pymavlink_dff49ee600b148aaab83e0b39a624d86/setup.py’"’"’; file=’"’"’/tmp/pip-install-8xnz4zi7/pymavlink_dff49ee600b148aaab83e0b39a624d86/setup.py’"’"’;f = getattr(tokenize, ‘"’"‘open’"’"’, open)(file) if os.path.exists(file) else io.StringIO(’"’"‘from setuptools import setup; setup()’"’"’);code = f.read().replace(’"’"’\r\n’"’"’, ‘"’"’\n’"’"’);f.close();exec(compile(code, file, ‘"’"‘exec’"’"’))’ install --record /tmp/pip-record-ohf9t1s_/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/enord/.local/include/python3.6m/pymavlink
cwd: /tmp/pip-install-8xnz4zi7/pymavlink_dff49ee600b148aaab83e0b39a624d86/
Complete output (142 lines):
running install
running build
running build_py
Using message definitions from /tmp/pip-install-8xnz4zi7/pymavlink_dff49ee600b148aaab83e0b39a624d86/message_definitions
Building /tmp/pip-install-8xnz4zi7/pymavlink_dff49ee600b148aaab83e0b39a624d86/message_definitions/v1.0/ASLUAV.xml for protocol 1.0
Building /tmp/pip-install-8xnz4zi7/pymavlink_dff49ee600b148aaab83e0b39a624d86/message_definitions/v1.0/matrixpilot.xml for protocol 1.0
Building /tmp/pip-install-8xnz4zi7/pymavlink_dff49ee600b148aaab83e0b39a624d86/message_definitions/v1.0/uAvionix.xml for protocol 1.0
Building /tmp/pip-install-8xnz4zi7/pymavlink_dff49ee600b148aaab83e0b39a624d86/message_definitions/v1.0/python_array_test.xml for protocol 1.0
Building /tmp/pip-install-8xnz4zi7/pymavlink_dff49ee600b148aaab83e0b39a624d86/message_definitions/v1.0/test.xml for protocol 1.0
Building /tmp/pip-install-8xnz4zi7/pymavlink_dff49ee600b148aaab83e0b39a624d86/message_definitions/v1.0/storm32.xml for protocol 1.0
Building /tmp/pip-install-8xnz4zi7/pymavlink_dff49ee600b148aaab83e0b39a624d86/message_definitions/v1.0/AVSSUAS.xml for protocol 1.0
Building /tmp/pip-install-8xnz4zi7/pymavlink_dff49ee600b148aaab83e0b39a624d86/message_definitions/v1.0/common.xml for protocol 1.0
Building /tmp/pip-install-8xnz4zi7/pymavlink_dff49ee600b148aaab83e0b39a624d86/message_definitions/v1.0/paparazzi.xml for protocol 1.0
Building /tmp/pip-install-8xnz4zi7/pymavlink_dff49ee600b148aaab83e0b39a624d86/message_definitions/v1.0/standard.xml for protocol 1.0
Building /tmp/pip-install-8xnz4zi7/pymavlink_dff49ee600b148aaab83e0b39a624d86/message_definitions/v1.0/ualberta.xml for protocol 1.0
Building /tmp/pip-install-8xnz4zi7/pymavlink_dff49ee600b148aaab83e0b39a624d86/message_definitions/v1.0/development.xml for protocol 1.0
Building /tmp/pip-install-8xnz4zi7/pymavlink_dff49ee600b148aaab83e0b39a624d86/message_definitions/v1.0/icarous.xml for protocol 1.0
Building /tmp/pip-install-8xnz4zi7/pymavlink_dff49ee600b148aaab83e0b39a624d86/message_definitions/v1.0/ardupilotmega.xml for protocol 1.0
Building /tmp/pip-install-8xnz4zi7/pymavlink_dff49ee600b148aaab83e0b39a624d86/message_definitions/v1.0/minimal.xml for protocol 1.0
Building /tmp/pip-install-8xnz4zi7/pymavlink_dff49ee600b148aaab83e0b39a624d86/message_definitions/v1.0/all.xml for protocol 1.0
Building /tmp/pip-install-8xnz4zi7/pymavlink_dff49ee600b148aaab83e0b39a624d86/message_definitions/v1.0/ASLUAV.xml for protocol 2.0
Building /tmp/pip-install-8xnz4zi7/pymavlink_dff49ee600b148aaab83e0b39a624d86/message_definitions/v1.0/matrixpilot.xml for protocol 2.0
Building /tmp/pip-install-8xnz4zi7/pymavlink_dff49ee600b148aaab83e0b39a624d86/message_definitions/v1.0/uAvionix.xml for protocol 2.0
Building /tmp/pip-install-8xnz4zi7/pymavlink_dff49ee600b148aaab83e0b39a624d86/message_definitions/v1.0/python_array_test.xml for protocol 2.0
Building /tmp/pip-install-8xnz4zi7/pymavlink_dff49ee600b148aaab83e0b39a624d86/message_definitions/v1.0/test.xml for protocol 2.0
Building /tmp/pip-install-8xnz4zi7/pymavlink_dff49ee600b148aaab83e0b39a624d86/message_definitions/v1.0/storm32.xml for protocol 2.0
Building /tmp/pip-install-8xnz4zi7/pymavlink_dff49ee600b148aaab83e0b39a624d86/message_definitions/v1.0/AVSSUAS.xml for protocol 2.0
Building /tmp/pip-install-8xnz4zi7/pymavlink_dff49ee600b148aaab83e0b39a624d86/message_definitions/v1.0/common.xml for protocol 2.0
Building /tmp/pip-install-8xnz4zi7/pymavlink_dff49ee600b148aaab83e0b39a624d86/message_definitions/v1.0/paparazzi.xml for protocol 2.0
Building /tmp/pip-install-8xnz4zi7/pymavlink_dff49ee600b148aaab83e0b39a624d86/message_definitions/v1.0/standard.xml for protocol 2.0
Building /tmp/pip-install-8xnz4zi7/pymavlink_dff49ee600b148aaab83e0b39a624d86/message_definitions/v1.0/ualberta.xml for protocol 2.0
Building /tmp/pip-install-8xnz4zi7/pymavlink_dff49ee600b148aaab83e0b39a624d86/message_definitions/v1.0/development.xml for protocol 2.0
Building /tmp/pip-install-8xnz4zi7/pymavlink_dff49ee600b148aaab83e0b39a624d86/message_definitions/v1.0/icarous.xml for protocol 2.0
Building /tmp/pip-install-8xnz4zi7/pymavlink_dff49ee600b148aaab83e0b39a624d86/message_definitions/v1.0/ardupilotmega.xml for protocol 2.0
Building /tmp/pip-install-8xnz4zi7/pymavlink_dff49ee600b148aaab83e0b39a624d86/message_definitions/v1.0/minimal.xml for protocol 2.0
Building /tmp/pip-install-8xnz4zi7/pymavlink_dff49ee600b148aaab83e0b39a624d86/message_definitions/v1.0/all.xml for protocol 2.0
creating build
creating build/lib.linux-aarch64-3.6
creating build/lib.linux-aarch64-3.6/pymavlink
copying ./DFReader.py → build/lib.linux-aarch64-3.6/pymavlink
copying ./mavexpression.py → build/lib.linux-aarch64-3.6/pymavlink
copying ./quaternion.py → build/lib.linux-aarch64-3.6/pymavlink
copying ./rotmat.py → build/lib.linux-aarch64-3.6/pymavlink
copying ./mavutil.py → build/lib.linux-aarch64-3.6/pymavlink
copying ./CSVReader.py → build/lib.linux-aarch64-3.6/pymavlink
copying ./mavparm.py → build/lib.linux-aarch64-3.6/pymavlink
copying ./init.py → build/lib.linux-aarch64-3.6/pymavlink
copying ./fgFDM.py → build/lib.linux-aarch64-3.6/pymavlink
copying ./mavtestgen.py → build/lib.linux-aarch64-3.6/pymavlink
copying ./mavwp.py → build/lib.linux-aarch64-3.6/pymavlink
copying ./mavextra.py → build/lib.linux-aarch64-3.6/pymavlink
creating build/lib.linux-aarch64-3.6/pymavlink/generator
copying ./generator/mavgen_javascript_stable.py → build/lib.linux-aarch64-3.6/pymavlink/generator
copying ./generator/mavgen_cs.py → build/lib.linux-aarch64-3.6/pymavlink/generator
copying ./generator/mavgen_python.py → build/lib.linux-aarch64-3.6/pymavlink/generator
copying ./generator/mavparse.py → build/lib.linux-aarch64-3.6/pymavlink/generator
copying ./generator/mavtemplate.py → build/lib.linux-aarch64-3.6/pymavlink/generator
copying ./generator/mavcrc.py → build/lib.linux-aarch64-3.6/pymavlink/generator
copying ./generator/mavgen_swift.py → build/lib.linux-aarch64-3.6/pymavlink/generator
copying ./generator/mavgen_java.py → build/lib.linux-aarch64-3.6/pymavlink/generator
copying ./generator/mavgen_cpp11.py → build/lib.linux-aarch64-3.6/pymavlink/generator
copying ./generator/mavgen_wlua.py → build/lib.linux-aarch64-3.6/pymavlink/generator
copying ./generator/mavgen_c.py → build/lib.linux-aarch64-3.6/pymavlink/generator
copying ./generator/mavgen.py → build/lib.linux-aarch64-3.6/pymavlink/generator
copying ./generator/mavgen_objc.py → build/lib.linux-aarch64-3.6/pymavlink/generator
copying ./generator/init.py → build/lib.linux-aarch64-3.6/pymavlink/generator
copying ./generator/mavgen_typescript.py → build/lib.linux-aarch64-3.6/pymavlink/generator
copying ./generator/mavgen_lua.py → build/lib.linux-aarch64-3.6/pymavlink/generator
copying ./generator/mavgen_javascript.py → build/lib.linux-aarch64-3.6/pymavlink/generator
creating build/lib.linux-aarch64-3.6/pymavlink/dialects
copying ./dialects/init.py → build/lib.linux-aarch64-3.6/pymavlink/dialects
creating build/lib.linux-aarch64-3.6/pymavlink/dialects/v10
copying ./dialects/v10/development.py → build/lib.linux-aarch64-3.6/pymavlink/dialects/v10
copying ./dialects/v10/test.py → build/lib.linux-aarch64-3.6/pymavlink/dialects/v10
copying ./dialects/v10/python_array_test.py → build/lib.linux-aarch64-3.6/pymavlink/dialects/v10
copying ./dialects/v10/ASLUAV.py → build/lib.linux-aarch64-3.6/pymavlink/dialects/v10
copying ./dialects/v10/matrixpilot.py → build/lib.linux-aarch64-3.6/pymavlink/dialects/v10
copying ./dialects/v10/standard.py → build/lib.linux-aarch64-3.6/pymavlink/dialects/v10
copying ./dialects/v10/all.py → build/lib.linux-aarch64-3.6/pymavlink/dialects/v10
copying ./dialects/v10/AVSSUAS.py → build/lib.linux-aarch64-3.6/pymavlink/dialects/v10
copying ./dialects/v10/uAvionix.py → build/lib.linux-aarch64-3.6/pymavlink/dialects/v10
copying ./dialects/v10/storm32.py → build/lib.linux-aarch64-3.6/pymavlink/dialects/v10
copying ./dialects/v10/minimal.py → build/lib.linux-aarch64-3.6/pymavlink/dialects/v10
copying ./dialects/v10/ardupilotmega.py → build/lib.linux-aarch64-3.6/pymavlink/dialects/v10
copying ./dialects/v10/ualberta.py → build/lib.linux-aarch64-3.6/pymavlink/dialects/v10
copying ./dialects/v10/init.py → build/lib.linux-aarch64-3.6/pymavlink/dialects/v10
copying ./dialects/v10/icarous.py → build/lib.linux-aarch64-3.6/pymavlink/dialects/v10
copying ./dialects/v10/paparazzi.py → build/lib.linux-aarch64-3.6/pymavlink/dialects/v10
copying ./dialects/v10/common.py → build/lib.linux-aarch64-3.6/pymavlink/dialects/v10
creating build/lib.linux-aarch64-3.6/pymavlink/dialects/v20
copying ./dialects/v20/development.py → build/lib.linux-aarch64-3.6/pymavlink/dialects/v20
copying ./dialects/v20/test.py → build/lib.linux-aarch64-3.6/pymavlink/dialects/v20
copying ./dialects/v20/python_array_test.py → build/lib.linux-aarch64-3.6/pymavlink/dialects/v20
copying ./dialects/v20/ASLUAV.py → build/lib.linux-aarch64-3.6/pymavlink/dialects/v20
copying ./dialects/v20/matrixpilot.py → build/lib.linux-aarch64-3.6/pymavlink/dialects/v20
copying ./dialects/v20/standard.py → build/lib.linux-aarch64-3.6/pymavlink/dialects/v20
copying ./dialects/v20/all.py → build/lib.linux-aarch64-3.6/pymavlink/dialects/v20
copying ./dialects/v20/AVSSUAS.py → build/lib.linux-aarch64-3.6/pymavlink/dialects/v20
copying ./dialects/v20/uAvionix.py → build/lib.linux-aarch64-3.6/pymavlink/dialects/v20
copying ./dialects/v20/storm32.py → build/lib.linux-aarch64-3.6/pymavlink/dialects/v20
copying ./dialects/v20/minimal.py → build/lib.linux-aarch64-3.6/pymavlink/dialects/v20
copying ./dialects/v20/ardupilotmega.py → build/lib.linux-aarch64-3.6/pymavlink/dialects/v20
copying ./dialects/v20/ualberta.py → build/lib.linux-aarch64-3.6/pymavlink/dialects/v20
copying ./dialects/v20/init.py → build/lib.linux-aarch64-3.6/pymavlink/dialects/v20
copying ./dialects/v20/icarous.py → build/lib.linux-aarch64-3.6/pymavlink/dialects/v20
copying ./dialects/v20/paparazzi.py → build/lib.linux-aarch64-3.6/pymavlink/dialects/v20
copying ./dialects/v20/common.py → build/lib.linux-aarch64-3.6/pymavlink/dialects/v20
creating build/lib.linux-aarch64-3.6/pymavlink/mavnative
copying ./mavnative/mavlink_defaults.h → build/lib.linux-aarch64-3.6/pymavlink/mavnative
Traceback (most recent call last):
File “”, line 1, in
File “/tmp/pip-install-8xnz4zi7/pymavlink_dff49ee600b148aaab83e0b39a624d86/setup.py”, line 181, in
ext_modules = extensions
File “/usr/local/lib/python3.6/dist-packages/setuptools/init.py”, line 163, in setup
return distutils.core.setup(**attrs)
File “/usr/lib/python3.6/distutils/core.py”, line 148, in setup
dist.run_commands()
File “/usr/lib/python3.6/distutils/dist.py”, line 955, in run_commands
self.run_command(cmd)
File “/usr/lib/python3.6/distutils/dist.py”, line 974, in run_command
cmd_obj.run()
File “/usr/local/lib/python3.6/dist-packages/setuptools/command/install.py”, line 61, in run
return orig.install.run(self)
File “/usr/lib/python3.6/distutils/command/install.py”, line 589, in run
self.run_command(‘build’)
File “/usr/lib/python3.6/distutils/cmd.py”, line 313, in run_command
self.distribution.run_command(command)
File “/usr/lib/python3.6/distutils/dist.py”, line 974, in run_command
cmd_obj.run()
File “/usr/lib/python3.6/distutils/command/build.py”, line 135, in run
self.run_command(cmd_name)
File “/usr/lib/python3.6/distutils/cmd.py”, line 313, in run_command
self.distribution.run_command(command)
File “/usr/lib/python3.6/distutils/dist.py”, line 974, in run_command
cmd_obj.run()
File “/tmp/pip-install-8xnz4zi7/pymavlink_dff49ee600b148aaab83e0b39a624d86/setup.py”, line 106, in run
build_py.run(self)
File “/usr/local/lib/python3.6/dist-packages/setuptools/command/build_py.py”, line 58, in run
self.build_package_data()
File “/usr/local/lib/python3.6/dist-packages/setuptools/command/build_py.py”, line 132, in build_package_data
srcfile in self.distribution.convert_2to3_doctests):
AttributeError: ‘Distribution’ object has no attribute ‘convert_2to3_doctests’
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/tmp/pip-install-8xnz4zi7/pymavlink_dff49ee600b148aaab83e0b39a624d86/setup.py’"’"’; file=’"’"’/tmp/pip-install-8xnz4zi7/pymavlink_dff49ee600b148aaab83e0b39a624d86/setup.py’"’"’;f = getattr(tokenize, ‘"’"‘open’"’"’, open)(file) if os.path.exists(file) else io.StringIO(’"’"‘from setuptools import setup; setup()’"’"’);code = f.read().replace(’"’"’\r\n’"’"’, ‘"’"’\n’"’"’);f.close();exec(compile(code, file, ‘"’"‘exec’"’"’))’ install --record /tmp/pip-record-ohf9t1s_/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/enord/.local/include/python3.6m/pymavlink Check the logs for full command output.

Please help regarding the issue!!

I don’t have answer for the pymavlink installation, may other developers help to share experiences. Thanks

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.