Hi, I am facing a problem when I try to download the udacidrone from git, and I am here to ask for a way to fix it. The error is as below.
Collecting git+https://github.com/udacity/udacidrone.git
Cloning https://github.com/udacity/udacidrone.git to c:\users\user\appdata\local\temp\pip-req-build-0w9cm6ap
Running command git clone -q https://github.com/udacity/udacidrone.git 'C:\Users\User\AppData\Local\Temp\pip-req-build-0w9cm6ap'
Resolved https://github.com/udacity/udacidrone.git to commit 9181661f99c8fba6a53a82c79dda6c672f1614fb
Requirement already satisfied: numpy>=1.12 in c:\users\user\appdata\local\programs\python\python39\lib\site-packages (from udacidrone==0.3.5) (1.20.2)
Collecting future==0.16.0
Using cached future-0.16.0-py3-none-any.whl
Collecting lxml==4.1.1
Using cached lxml-4.1.1.tar.gz (2.4 MB)
Collecting pymavlink==2.2.8
Using cached pymavlink-2.2.8.tar.gz (3.0 MB)
Collecting utm==0.4
Using cached utm-0.4.0-py3-none-any.whl
Collecting websockets==4.0.1
Using cached websockets-4.0.1-cp39-cp39-winamd64.whl
Collecting cflib>=0.1.6
Using cached cflib-0.1.16-py2.py3-none-any.whl (168 kB)
Requirement already satisfied: opencv-python-headless==4.5.1.48 in c:\users\user\appdata\local\programs\python\python39\lib\site-packages (from cflib>=0.1.6->udacidrone==0.3.5) (4.5.1.48)
Requirement already satisfied: pyusb>=1.0.0b2 in c:\users\user\appdata\local\programs\python\python39\lib\site-packages (from cflib>=0.1.6->udacidrone==0.3.5) (1.2.1)
Building wheels for collected packages: udacidrone, lxml, pymavlink
Building wheel for udacidrone (setup.py) ... done
Created wheel for udacidrone: filename=udacidrone-0.3.5-py3-none-any.whl size=35194 sha256=de8b65029d2d279a49eb96869271873d402dc41a4df09368fc855b3704614ebf
Stored in directory: C:\Users\User\AppData\Local\Temp\pip-ephem-wheel-cache-f3pcy4v\wheels\0b\97\5f\5b6a9d636f1f0099ea00fd1259e84e30bcd4a5477d3423b608
Building wheel for lxml (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\User\AppData\Local\Programs\Python\Python39\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\User\AppData\Local\Temp\pip-install-tjvr1_kx\lxml_26fa673e00974ed68090dba6648a9ac1\setup.py'"'"'; file='"'"'C:\Users\User\AppData\Local\Temp\pip-install-tjvr1_kx\lxml_26fa673e00974ed68090dba6648a9ac1\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'"'"'))' bdist_wheel -d 'C:\Users\User\AppData\Local\Temp\pip-wheel-5o3lzcq1'
cwd: C:\Users\User\AppData\Local\Temp\pip-install-tjvr1_kx\lxml_26fa673e00974ed68090dba6648a9ac1\
Complete output (97 lines):
Building lxml version 4.1.1.
Building without Cython.
ERROR: b"'xslt-config' is not recognized as an internal or external command,\r\noperable program or batch file.\r\n"
make sure the development packages of libxml2 and libxslt are installed
Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?
ERROR: Failed building wheel for lxml
Running setup.py clean for lxml
Building wheel for pymavlink (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\User\AppData\Local\Programs\Python\Python39\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\User\AppData\Local\Temp\pip-install-tjvr1_kx\pymavlink_95bd52e39a0445dfa80740dd343d5d32\setup.py'"'"'; file='"'"'C:\Users\User\AppData\Local\Temp\pip-install-tjvr1_kx\pymavlink_95bd52e39a0445dfa80740dd343d5d32\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'"'"'))' bdist_wheel -d 'C:\Users\User\AppData\Local\Temp\pip-wheel-my4a_i_2'
cwd: C:\Users\User\AppData\Local\Temp\pip-install-tjvr1_kx\pymavlink_95bd52e39a0445dfa80740dd343d5d32\
Complete output (45 lines):
Skipping mavnative due to Windows possibly missing a compiler...
running bdist_wheel
running build
running build_py
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\User\AppData\Local\Temp\pip-install-tjvr1_kx\pymavlink_95bd52e39a0445dfa80740dd343d5d32\setup.py", line 99, in
setup (name = 'pymavlink',
File "C:\Users\User\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools__init.py", line 165, in setup
return distutils.core.setup(**attrs)
File "C:\Users\User\AppData\Local\Programs\Python\Python39\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "C:\Users\User\AppData\Local\Programs\Python\Python39\lib\distutils\dist.py", line 966, in run_commands
self.run_command(cmd)
File "C:\Users\User\AppData\Local\Programs\Python\Python39\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\User\AppData\Local\Programs\Python\Python39\lib\site-packages\wheel\bdist_wheel.py", line 299, in run
self.run_command('build')
File "C:\Users\User\AppData\Local\Programs\Python\Python39\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Users\User\AppData\Local\Programs\Python\Python39\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\User\AppData\Local\Programs\Python\Python39\lib\distutils\command\build.py", line 135, in run
self.run_command(cmd_name)
File "C:\Users\User\AppData\Local\Programs\Python\Python39\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Users\User\AppData\Local\Programs\Python\Python39\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\User\AppData\Local\Temp\pip-install-tjvr1_kx\pymavlink_95bd52e39a0445dfa80740dd343d5d32\setup.py", line 93, in run
generate_content()
File "C:\Users\User\AppData\Local\Temp\pip-install-tjvr1_kx\pymavlink_95bd52e39a0445dfa80740dd343d5d32\setup.py", line 63, in generate_content
if not mavgen.mavgen_python_dialect(dialect, mavparse.PROTOCOL_1_0):
File "C:\Users\User\AppData\Local\Temp\pip-install-tjvr1_kx\pymavlink_95bd52e39a0445dfa80740dd343d5d32\generator\mavgen.py", line 201, in mavgen_python_dialect
if not mavgen(opts, [xml]):
File "C:\Users\User\AppData\Local\Temp\pip-install-tjvr1_kx\pymavlink_95bd52e39a0445dfa80740dd343d5d32\generator\mavgen.py", line 86, in mavgen
xml.append(mavparse.MAVXML(fname, opts.wire_protocol))
File "C:\Users\User\AppData\Local\Temp\pip-install-tjvr1_kx\pymavlink_95bd52e39a0445dfa80740dd343d5d32\generator\mavparse.py", line 363, in init__
m.crc_extra = message_checksum(m)
File "C:\Users\User\AppData\Local\Temp\pip-install-tjvr1_kx\pymavlink_95bd52e39a0445dfa80740dd343d5d32\generator\mavparse.py", line 390, in message_checksum
crc.accumulate_str(msg.name + ' ')
File "C:\Users\User\AppData\Local\Temp\pip-install-tjvr1_kx\pymavlink_95bd52e39a0445dfa80740dd343d5d32\generator\mavcrc.py", line 29, in accumulate_str
bytes.fromstring(buf)
AttributeError: 'array.array' object has no attribute 'fromstring'
Using message definitions from C:\Users\User\AppData\Local\Temp\pip-install-tjvr1_kx\pymavlink_95bd52e39a0445dfa80740dd343d5d32\message_definitions
Building C:\Users\User\AppData\Local\Temp\pip-install-tjvr1_kx\pymavlink_95bd52e39a0445dfa80740dd343d5d32\message_definitions\v1.0\ardupilotmega.xml for protocol 1.0
ERROR: Failed building wheel for pymavlink
Running setup.py clean for pymavlink
Successfully built udacidrone
Failed to build lxml pymavlink
Installing collected packages: lxml, future, websockets, utm, pymavlink, cflib, udacidrone
Attempting uninstall: lxml
Found existing installation: lxml 4.6.3
Uninstalling lxml-4.6.3:
Successfully uninstalled lxml-4.6.3
Running setup.py install for lxml ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\User\AppData\Local\Programs\Python\Python39\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\User\AppData\Local\Temp\pip-install-tjvr1_kx\lxml_26fa673e00974ed68090dba6648a9ac1\setup.py'"'"'; file='"'"'C:\Users\User\AppData\Local\Temp\pip-install-tjvr1_kx\lxml_26fa673e00974ed68090dba6648a9ac1\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 'C:\Users\User\AppData\Local\Temp\pip-record-wxv4fe9k\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\User\AppData\Local\Programs\Python\Python39\Include\lxml'
cwd: C:\Users\User\AppData\Local\Temp\pip-install-tjvr1_kx\lxml_26fa673e00974ed68090dba6648a9ac1\
Complete output (92 lines):
Building lxml version 4.1.1.
Building without Cython.
ERROR: b"'xslt-config' is not recognized as an internal or external command,\r\noperable program or batch file.\r\n"
make sure the development packages of libxml2 and libxslt are installed
Rolling back uninstall of lxml
Moving to c:\users\user\appdata\local\programs\python\python39\lib\site-packages\lxml-4.6.3.dist-info\
from C:\Users\User\AppData\Local\Programs\Python\Python39\Lib\site-packages\~xml-4.6.3.dist-info
Moving to c:\users\user\appdata\local\programs\python\python39\lib\site-packages\lxml\
from C:\Users\User\AppData\Local\Programs\Python\Python39\Lib\site-packages\~xml
ERROR: Command errored out with exit status 1: 'C:\Users\User\AppData\Local\Programs\Python\Python39\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\User\AppData\Local\Temp\pip-install-tjvr1_kx\lxml_26fa673e00974ed68090dba6648a9ac1\setup.py'"'"'; file='"'"'C:\Users\User\AppData\Local\Temp\pip-install-tjvr1_kx\lxml_26fa673e00974ed68090dba6648a9ac1\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 'C:\Users\User\AppData\Local\Temp\pip-record-wxv4fe9k\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\User\AppData\Local\Programs\Python\Python39\Include\lxml' Check the logs for full command output.
Hi, I am facing a problem when I try to download the udacidrone from git, and I am here to ask for a way to fix it. The error is as below.
Collecting git+https://github.com/udacity/udacidrone.git Cloning https://github.com/udacity/udacidrone.git to c:\users\user\appdata\local\temp\pip-req-build-0w9cm6ap Running command git clone -q https://github.com/udacity/udacidrone.git 'C:\Users\User\AppData\Local\Temp\pip-req-build-0w9cm6ap' Resolved https://github.com/udacity/udacidrone.git to commit 9181661f99c8fba6a53a82c79dda6c672f1614fb Requirement already satisfied: numpy>=1.12 in c:\users\user\appdata\local\programs\python\python39\lib\site-packages (from udacidrone==0.3.5) (1.20.2) Collecting future==0.16.0 Using cached future-0.16.0-py3-none-any.whl Collecting lxml==4.1.1 Using cached lxml-4.1.1.tar.gz (2.4 MB) Collecting pymavlink==2.2.8 Using cached pymavlink-2.2.8.tar.gz (3.0 MB) Collecting utm==0.4 Using cached utm-0.4.0-py3-none-any.whl Collecting websockets==4.0.1 Using cached websockets-4.0.1-cp39-cp39-winamd64.whl Collecting cflib>=0.1.6 Using cached cflib-0.1.16-py2.py3-none-any.whl (168 kB) Requirement already satisfied: opencv-python-headless==4.5.1.48 in c:\users\user\appdata\local\programs\python\python39\lib\site-packages (from cflib>=0.1.6->udacidrone==0.3.5) (4.5.1.48) Requirement already satisfied: pyusb>=1.0.0b2 in c:\users\user\appdata\local\programs\python\python39\lib\site-packages (from cflib>=0.1.6->udacidrone==0.3.5) (1.2.1) Building wheels for collected packages: udacidrone, lxml, pymavlink Building wheel for udacidrone (setup.py) ... done Created wheel for udacidrone: filename=udacidrone-0.3.5-py3-none-any.whl size=35194 sha256=de8b65029d2d279a49eb96869271873d402dc41a4df09368fc855b3704614ebf Stored in directory: C:\Users\User\AppData\Local\Temp\pip-ephem-wheel-cache-f3pcy4v\wheels\0b\97\5f\5b6a9d636f1f0099ea00fd1259e84e30bcd4a5477d3423b608 Building wheel for lxml (setup.py) ... error ERROR: Command errored out with exit status 1: command: 'C:\Users\User\AppData\Local\Programs\Python\Python39\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\User\AppData\Local\Temp\pip-install-tjvr1_kx\lxml_26fa673e00974ed68090dba6648a9ac1\setup.py'"'"'; file='"'"'C:\Users\User\AppData\Local\Temp\pip-install-tjvr1_kx\lxml_26fa673e00974ed68090dba6648a9ac1\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'"'"'))' bdist_wheel -d 'C:\Users\User\AppData\Local\Temp\pip-wheel-5o3lzcq1' cwd: C:\Users\User\AppData\Local\Temp\pip-install-tjvr1_kx\lxml_26fa673e00974ed68090dba6648a9ac1\ Complete output (97 lines): Building lxml version 4.1.1. Building without Cython. ERROR: b"'xslt-config' is not recognized as an internal or external command,\r\noperable program or batch file.\r\n" make sure the development packages of libxml2 and libxslt are installed
Using build configuration of libxslt running bdist_wheel running build running build_py creating build creating build\lib.win-amd64-3.9 creating build\lib.win-amd64-3.9\lxml copying src\lxml\builder.py -> build\lib.win-amd64-3.9\lxml copying src\lxml\cssselect.py -> build\lib.win-amd64-3.9\lxml copying src\lxml\doctestcompare.py -> build\lib.win-amd64-3.9\lxml copying src\lxml\ElementInclude.py -> build\lib.win-amd64-3.9\lxml copying src\lxml\pyclasslookup.py -> build\lib.win-amd64-3.9\lxml copying src\lxml\sax.py -> build\lib.win-amd64-3.9\lxml copying src\lxml\usedoctest.py -> build\lib.win-amd64-3.9\lxml copying src\lxml_elementpath.py -> build\lib.win-amd64-3.9\lxml copying src\lxml__init.py -> build\lib.win-amd64-3.9\lxml creating build\lib.win-amd64-3.9\lxml\includes copying src\lxml\includes__init__.py -> build\lib.win-amd64-3.9\lxml\includes creating build\lib.win-amd64-3.9\lxml\html copying src\lxml\html\builder.py -> build\lib.win-amd64-3.9\lxml\html copying src\lxml\html\clean.py -> build\lib.win-amd64-3.9\lxml\html copying src\lxml\html\defs.py -> build\lib.win-amd64-3.9\lxml\html copying src\lxml\html\diff.py -> build\lib.win-amd64-3.9\lxml\html copying src\lxml\html\ElementSoup.py -> build\lib.win-amd64-3.9\lxml\html copying src\lxml\html\formfill.py -> build\lib.win-amd64-3.9\lxml\html copying src\lxml\html\html5parser.py -> build\lib.win-amd64-3.9\lxml\html copying src\lxml\html\soupparser.py -> build\lib.win-amd64-3.9\lxml\html copying src\lxml\html\usedoctest.py -> build\lib.win-amd64-3.9\lxml\html copying src\lxml\html_diffcommand.py -> build\lib.win-amd64-3.9\lxml\html copying src\lxml\html_html5builder.py -> build\lib.win-amd64-3.9\lxml\html copying src\lxml\html_setmixin.py -> build\lib.win-amd64-3.9\lxml\html copying src\lxml\html\init.py -> build\lib.win-amd64-3.9\lxml\html creating build\lib.win-amd64-3.9\lxml\isoschematron copying src\lxml\isoschematron\init.py -> build\lib.win-amd64-3.9\lxml\isoschematron copying src\lxml\etree.h -> build\lib.win-amd64-3.9\lxml copying src\lxml\etree_api.h -> build\lib.win-amd64-3.9\lxml copying src\lxml\lxml.etree.h -> build\lib.win-amd64-3.9\lxml copying src\lxml\lxml.etree_api.h -> build\lib.win-amd64-3.9\lxml copying src\lxml\includes\c14n.pxd -> build\lib.win-amd64-3.9\lxml\includes copying src\lxml\includes\config.pxd -> build\lib.win-amd64-3.9\lxml\includes copying src\lxml\includes\dtdvalid.pxd -> build\lib.win-amd64-3.9\lxml\includes copying src\lxml\includes\etreepublic.pxd -> build\lib.win-amd64-3.9\lxml\includes copying src\lxml\includes\htmlparser.pxd -> build\lib.win-amd64-3.9\lxml\includes copying src\lxml\includes\relaxng.pxd -> build\lib.win-amd64-3.9\lxml\includes copying src\lxml\includes\schematron.pxd -> build\lib.win-amd64-3.9\lxml\includes copying src\lxml\includes\tree.pxd -> build\lib.win-amd64-3.9\lxml\includes copying src\lxml\includes\uri.pxd -> build\lib.win-amd64-3.9\lxml\includes copying src\lxml\includes\xinclude.pxd -> build\lib.win-amd64-3.9\lxml\includes copying src\lxml\includes\xmlerror.pxd -> build\lib.win-amd64-3.9\lxml\includes copying src\lxml\includes\xmlparser.pxd -> build\lib.win-amd64-3.9\lxml\includes copying src\lxml\includes\xmlschema.pxd -> build\lib.win-amd64-3.9\lxml\includes copying src\lxml\includes\xpath.pxd -> build\lib.win-amd64-3.9\lxml\includes copying src\lxml\includes\xslt.pxd -> build\lib.win-amd64-3.9\lxml\includes copying src\lxml\includes\init__.pxd -> build\lib.win-amd64-3.9\lxml\includes copying src\lxml\includes\etree_defs.h -> build\lib.win-amd64-3.9\lxml\includes copying src\lxml\includes\lxml-version.h -> build\lib.win-amd64-3.9\lxml\includes creating build\lib.win-amd64-3.9\lxml\isoschematron\resources creating build\lib.win-amd64-3.9\lxml\isoschematron\resources\rng copying src\lxml\isoschematron\resources\rng\iso-schematron.rng -> build\lib.win-amd64-3.9\lxml\isoschematron\resources\rng creating build\lib.win-amd64-3.9\lxml\isoschematron\resources\xsl copying src\lxml\isoschematron\resources\xsl\RNG2Schtrn.xsl -> build\lib.win-amd64-3.9\lxml\isoschematron\resources\xsl copying src\lxml\isoschematron\resources\xsl\XSD2Schtrn.xsl -> build\lib.win-amd64-3.9\lxml\isoschematron\resources\xsl creating build\lib.win-amd64-3.9\lxml\isoschematron\resources\xsl\iso-schematron-xslt1 copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_abstract_expand.xsl -> build\lib.win-amd64-3.9\lxml\isoschematron\resources\xsl\iso-schematron-xslt1 copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_dsdl_include.xsl -> build\lib.win-amd64-3.9\lxml\isoschematron\resources\xsl\iso-schematron-xslt1 copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_schematron_message.xsl -> build\lib.win-amd64-3.9\lxml\isoschematron\resources\xsl\iso-schematron-xslt1 copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_schematron_skeleton_for_xslt1.xsl -> build\lib.win-amd64-3.9\lxml\isoschematron\resources\xsl\iso-schematron-xslt1 copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_svrl_for_xslt1.xsl -> build\lib.win-amd64-3.9\lxml\isoschematron\resources\xsl\iso-schematron-xslt1 copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\readme.txt -> build\lib.win-amd64-3.9\lxml\isoschematron\resources\xsl\iso-schematron-xslt1 running build_ext building 'lxml.etree' extension creating build\temp.win-amd64-3.9 creating build\temp.win-amd64-3.9\Release creating build\temp.win-amd64-3.9\Release\src creating build\temp.win-amd64-3.9\Release\src\lxml C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DCYTHON_CLINE_IN_TRACEBACK=1 -Isrc -Isrc\lxml\includes -IC:\Users\User\AppData\Local\Programs\Python\Python39\include -IC:\Users\User\AppData\Local\Programs\Python\Python39\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\ATLMFC\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\include -IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt /Tcsrc\lxml\etree.c /Fobuild\temp.win-amd64-3.9\Release\src\lxml\etree.obj -w cl : Command line warning D9025 : overriding '/W3' with '/w' etree.c C:\Users\User\AppData\Local\Temp\pip-install-tjvr1_kx\lxml_26fa673e00974ed68090dba6648a9ac1\src\lxml\includes/etree_defs.h(14): fatal error C1083: Cannot open include file: 'libxml/xmlversion.h': No such file or directory Compile failed: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\bin\HostX86\x64\cl.exe' failed with exit code 2 creating Users creating Users\User creating Users\User\AppData creating Users\User\AppData\Local creating Users\User\AppData\Local\Temp C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -I/usr/include/libxml2 -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\ATLMFC\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\include -IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt /TcC:\Users\User\AppData\Local\Temp\xmlXPathInitcvzvrhwe.c /FoUsers\User\AppData\Local\Temp\xmlXPathInitcvzvrhwe.obj xmlXPathInitcvzvrhwe.c C:\Users\User\AppData\Local\Temp\xmlXPathInitcvzvrhwe.c(1): fatal error C1083: Cannot open include file: 'libxml/xpath.h': No such file or directory error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\bin\HostX86\x64\cl.exe' failed with exit code 2
Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?
ERROR: Failed building wheel for lxml Running setup.py clean for lxml Building wheel for pymavlink (setup.py) ... error ERROR: Command errored out with exit status 1: command: 'C:\Users\User\AppData\Local\Programs\Python\Python39\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\User\AppData\Local\Temp\pip-install-tjvr1_kx\pymavlink_95bd52e39a0445dfa80740dd343d5d32\setup.py'"'"'; file='"'"'C:\Users\User\AppData\Local\Temp\pip-install-tjvr1_kx\pymavlink_95bd52e39a0445dfa80740dd343d5d32\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'"'"'))' bdist_wheel -d 'C:\Users\User\AppData\Local\Temp\pip-wheel-my4a_i_2' cwd: C:\Users\User\AppData\Local\Temp\pip-install-tjvr1_kx\pymavlink_95bd52e39a0445dfa80740dd343d5d32\ Complete output (45 lines): Skipping mavnative due to Windows possibly missing a compiler... running bdist_wheel running build running build_py Traceback (most recent call last): File "", line 1, in
File "C:\Users\User\AppData\Local\Temp\pip-install-tjvr1_kx\pymavlink_95bd52e39a0445dfa80740dd343d5d32\setup.py", line 99, in
setup (name = 'pymavlink',
File "C:\Users\User\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools__init.py", line 165, in setup
return distutils.core.setup(**attrs)
File "C:\Users\User\AppData\Local\Programs\Python\Python39\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "C:\Users\User\AppData\Local\Programs\Python\Python39\lib\distutils\dist.py", line 966, in run_commands
self.run_command(cmd)
File "C:\Users\User\AppData\Local\Programs\Python\Python39\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\User\AppData\Local\Programs\Python\Python39\lib\site-packages\wheel\bdist_wheel.py", line 299, in run
self.run_command('build')
File "C:\Users\User\AppData\Local\Programs\Python\Python39\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Users\User\AppData\Local\Programs\Python\Python39\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\User\AppData\Local\Programs\Python\Python39\lib\distutils\command\build.py", line 135, in run
self.run_command(cmd_name)
File "C:\Users\User\AppData\Local\Programs\Python\Python39\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Users\User\AppData\Local\Programs\Python\Python39\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\User\AppData\Local\Temp\pip-install-tjvr1_kx\pymavlink_95bd52e39a0445dfa80740dd343d5d32\setup.py", line 93, in run
generate_content()
File "C:\Users\User\AppData\Local\Temp\pip-install-tjvr1_kx\pymavlink_95bd52e39a0445dfa80740dd343d5d32\setup.py", line 63, in generate_content
if not mavgen.mavgen_python_dialect(dialect, mavparse.PROTOCOL_1_0):
File "C:\Users\User\AppData\Local\Temp\pip-install-tjvr1_kx\pymavlink_95bd52e39a0445dfa80740dd343d5d32\generator\mavgen.py", line 201, in mavgen_python_dialect
if not mavgen(opts, [xml]):
File "C:\Users\User\AppData\Local\Temp\pip-install-tjvr1_kx\pymavlink_95bd52e39a0445dfa80740dd343d5d32\generator\mavgen.py", line 86, in mavgen
xml.append(mavparse.MAVXML(fname, opts.wire_protocol))
File "C:\Users\User\AppData\Local\Temp\pip-install-tjvr1_kx\pymavlink_95bd52e39a0445dfa80740dd343d5d32\generator\mavparse.py", line 363, in init__
m.crc_extra = message_checksum(m)
File "C:\Users\User\AppData\Local\Temp\pip-install-tjvr1_kx\pymavlink_95bd52e39a0445dfa80740dd343d5d32\generator\mavparse.py", line 390, in message_checksum
crc.accumulate_str(msg.name + ' ')
File "C:\Users\User\AppData\Local\Temp\pip-install-tjvr1_kx\pymavlink_95bd52e39a0445dfa80740dd343d5d32\generator\mavcrc.py", line 29, in accumulate_str
bytes.fromstring(buf)
AttributeError: 'array.array' object has no attribute 'fromstring'
Using message definitions from C:\Users\User\AppData\Local\Temp\pip-install-tjvr1_kx\pymavlink_95bd52e39a0445dfa80740dd343d5d32\message_definitions
Building C:\Users\User\AppData\Local\Temp\pip-install-tjvr1_kx\pymavlink_95bd52e39a0445dfa80740dd343d5d32\message_definitions\v1.0\ardupilotmega.xml for protocol 1.0
ERROR: Failed building wheel for pymavlink Running setup.py clean for pymavlink Successfully built udacidrone Failed to build lxml pymavlink Installing collected packages: lxml, future, websockets, utm, pymavlink, cflib, udacidrone Attempting uninstall: lxml Found existing installation: lxml 4.6.3 Uninstalling lxml-4.6.3: Successfully uninstalled lxml-4.6.3 Running setup.py install for lxml ... error ERROR: Command errored out with exit status 1: command: 'C:\Users\User\AppData\Local\Programs\Python\Python39\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\User\AppData\Local\Temp\pip-install-tjvr1_kx\lxml_26fa673e00974ed68090dba6648a9ac1\setup.py'"'"'; file='"'"'C:\Users\User\AppData\Local\Temp\pip-install-tjvr1_kx\lxml_26fa673e00974ed68090dba6648a9ac1\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 'C:\Users\User\AppData\Local\Temp\pip-record-wxv4fe9k\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\User\AppData\Local\Programs\Python\Python39\Include\lxml' cwd: C:\Users\User\AppData\Local\Temp\pip-install-tjvr1_kx\lxml_26fa673e00974ed68090dba6648a9ac1\ Complete output (92 lines): Building lxml version 4.1.1. Building without Cython. ERROR: b"'xslt-config' is not recognized as an internal or external command,\r\noperable program or batch file.\r\n" make sure the development packages of libxml2 and libxslt are installed
Rolling back uninstall of lxml Moving to c:\users\user\appdata\local\programs\python\python39\lib\site-packages\lxml-4.6.3.dist-info\ from C:\Users\User\AppData\Local\Programs\Python\Python39\Lib\site-packages\~xml-4.6.3.dist-info Moving to c:\users\user\appdata\local\programs\python\python39\lib\site-packages\lxml\ from C:\Users\User\AppData\Local\Programs\Python\Python39\Lib\site-packages\~xml ERROR: Command errored out with exit status 1: 'C:\Users\User\AppData\Local\Programs\Python\Python39\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\User\AppData\Local\Temp\pip-install-tjvr1_kx\lxml_26fa673e00974ed68090dba6648a9ac1\setup.py'"'"'; file='"'"'C:\Users\User\AppData\Local\Temp\pip-install-tjvr1_kx\lxml_26fa673e00974ed68090dba6648a9ac1\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 'C:\Users\User\AppData\Local\Temp\pip-record-wxv4fe9k\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\User\AppData\Local\Programs\Python\Python39\Include\lxml' Check the logs for full command output.