PX4 / PX4-windows-toolchain

Repo containing all scripts to install and use the PX4 Toolchain for Windows.
BSD 3-Clause "New" or "Revised" License
31 stars 100 forks source link

need to install pyymal manually using MSI installer, please regenerate the msi installer file #6

Closed cycle95 closed 5 years ago

cycle95 commented 5 years ago

update 23/12/2018

it turns out that the install-cygwin-python-packages.bat file in the msi installer only runpip2 install toml && pip2 install pyserial && pip2 install pyulog && pip2 install empy, and didn't install "pyyaml、cerberus" !!!!!!!

seems to me that the source code used to generate the MSI installer version0.5 was not the same code that you uploaded, please regenerate the MSI file. examples supporting my point are as follows:

install-cygwin-python-packages.bat file in MSI installer:

REM install needed paython packages under cygwin
CALL bash -c "pip2 install toml && pip2 install pyserial && pip2 install pyulog && pip2 install empy"

install-cygwin-python-packages.bat file in the github source code::

REM install needed paython packages under cygwin
CALL bash -c "pip2 -q install toml"
CALL bash -c "pip2 -q install pyserial"
CALL bash -c "pip2 -q install pyulog"
CALL bash -c "pip2 -q install empy"
CALL bash -c "pip2 -q install pyyaml"
CALL bash -c "pip2 -q install cerberus"

original issue 22/12/2018

following the Installation Instructions of Windows Cygwin Toolchain, when building the code using " make px4_sitl jmavsim" for the first time, it returns a error says failed to import yaml and I have to install pyyaml mannually to make it work.

OS: Windows 10 Pro Error log: [19/698] Generating serial_params.c FAILED: generated_params/serial_params.c cd /cygdrive/d/PX4_ToolChain/home/Firmware/build/px4_sitl_default/src/lib/parameters && /usr/bin/cmake.exe -E make_directory /cygdrive/d/PX4_ToolChain/home/Firmware/build/px4_sitl_default/generated_params && /usr/bin/python /cygdrive/d/PX4_ToolChain/home/Firmware/Tools/serial/generate_config.py --params-file /cygdrive/d/PX4_ToolChain/home/Firmware/build/px4_sitl_default/generated_params/serial_params.c --serial-ports --config-files /cygdrive/d/PX4_ToolChain/home/Firmware/src/drivers/distance_sensor/sf0x/module.yaml /cygdrive/d/PX4_ToolChain/home/Firmware/src/drivers/distance_sensor/tfmini/module.yaml /cygdrive/d/PX4_ToolChain/home/Firmware/src/drivers/distance_sensor/ulanding/module.yaml /cygdrive/d/PX4_ToolChain/home/Firmware/src/drivers/distance_sensor/leddar_one/module.yaml /cygdrive/d/PX4_ToolChain/home/Firmware/src/drivers/gps/module.yaml /cygdrive/d/PX4_ToolChain/home/Firmware/src/modules/mavlink/module.yaml Failed to import yaml. You may need to install it with 'sudo pip install pyyaml' Traceback (most recent call last): File "/cygdrive/d/PX4_ToolChain/home/Firmware/Tools/serial/generate_config.py", line 13, in import yaml ImportError: No module named yaml [24/698] Generating git version header ninja: build stopped: subcommand failed. make: *** [Makefile:182:px4_sitl] ERROR 1

cycle95 commented 5 years ago

Sorry, just figured it out that it might be my network connecting issue

bys1123 commented 5 years ago

Thanks you open a issue when you translate this doc on crowdin. I think it's not a network connecting issue, msi file contains all packages. Let's find this real problem together.

bys1123 commented 5 years ago

Looks like you are using 0.3 version, use latest v0.5 msi will fix.