Hi,
I followed the documentation directions to install cygwin, mavproxy on a windows 10 desktop.
In a Cygwin terminal, when I try to un the instruction to launch SITIL+MavProxy : “…/Tools/autotest/sim_vehicle.py --map --console”, it returns the following error:
Hugues@DESKTOP-E4MV4JE /home/ardupilot
$ ./Tools/autotest/sim_vehicle.py --map --console
Traceback (most recent call last):
File “./Tools/autotest/sim_vehicle.py”, line 31, in
from pysim import util
File “/home/ardupilot/Tools/autotest/pysim/util.py”, line 16, in
import pexpect
ModuleNotFoundError: No module named ‘pexpect’
It is a fresh new install of SITIL/MavProxy , so I do not know what’s wrong. Are the instructions in the wiki outdated maybe ?
I installed SITIL a couple of years ago and I do not remember it to be so difficult and more than anything not working.
Why isn’t there a prebuild windows binary that you can just download and execute to install SITIL with all required dependencies on Windows ?
Ok, I’m trying the Ubuntu installation via command line instead of going though Microsoft store.
The correct command is the following apparently : wsl --install -d Ubuntu
Can this command be added in the Ardupilot/SITIL/Installation instructions for Windows ? and remove the installation instruction advising to go through the Microsoft store
I’ll continue to post here my SITIL/Mavproxy installation progress…to be continued
So before launching the Ubuntu installation in WSL (in a windows cmd window: wsl --install -d Ubuntu),
you need the following pre-requisites (they should be added in the Ardupilot wiki explaining how to install SITIL/MavProxy in Windows 10):
1-In the BIOS of your computer, you must first activate virtualization technology. It is usually found in your BIOS “advanced CPU” menu.
2-Then you reboot the machine and you must now activate the virtualization feature in Windows 10. To do this, the simplest is to right-click on the windows powershell icon/menu to start it with “run as administrator” rights. This will open a powershell with elevated admin rights.
Then copy this command to enabel virtualization in windows 10:
4-Launch the installation of Ubuntu , by choosing one of the two following commands, depending if you want a WSL1 or WSL2 underlaying linux virtualization. WSL2 is faster than WSL1.
FlightGear splash screen is displayed for a while and then I get a segmentation fault. The last lines of the log during FlightGear startup are these lines:
1.43 [INFO]:view Splash screen progress creating-subsystems
1.44 [INFO]:general Creating Subsystems
1.44 [INFO]:general ======== ==========
1.44 [INFO]:input Reading materials from /usr/share/games/flightgear/Materials/regions/materials.xml
1.83 [WARN]:general adding subsystem to group with name ‘terrainsampler’, but name() returns ‘TerrainSampler’
1.83 [WARN]:general adding subsystem to group with name ‘environment’, but name() returns ‘FGEnvironmentMgr’
1.83 [INFO]:systems Reading systems from Path “/usr/share/games/flightgear/Aircraft/Generic/generic-systems.xml”
1.83 [WARN]:general adding subsystem to group with name ‘systems’, but name() returns ‘FGSystemMgr’
1.83 [WARN]:general adding subsystem to group with name ‘instrumentation’, but name() returns ‘FGInstrumentMgr’
1.83 [INFO]:cockpit Initializing HUD Instrument
1.83 [WARN]:general adding subsystem to group with name ‘cockpit-displays’, but name() returns ‘CockpitDisplayManager’
1.83 [WARN]:general adding subsystem to group with name ‘xml-autopilot’, but name() returns ‘FGXMLAutopilotGroup’
1.83 [WARN]:general adding subsystem to group with name ‘xml-proprules’, but name() returns ‘FGXMLAutopilotGroup’
1.83 [WARN]:general adding subsystem to group with name ‘input’, but name() returns ‘FGInput’
1.83 [WARN]:general adding subsystem to group with name ‘events’, but name() returns ‘EventMgr’
1.83 [INFO]:sound Reading sound sound from Path “/usr/share/games/flightgear/Aircraft/Generic/generic-sound.xml”
1.83 [INFO]:general Creating subsystems took:404
1.83 [INFO]:view Splash screen progress binding-subsystems
2.12 [ALRT]:nasal Volcanic activity off.
4.42 [ALRT]:nasal setWeight() - not supported for external
Segmentation fault
Any idea if FlightGear works on Ubuntu in WSL ? Or does it only work on a native Ubuntu machine ?
Running MavProxy+SITIL, I get once in a while this error in the command window:
HugSITIL:STABILIZE>
(mavproxy.py:1678): dbind-WARNING **: 15:51:52.721: Couldn’t connect to accessibility bus: Failed to connect to socket /tmp/dbus-87EUTEIiat: Connection refused
Any idea what that this error mean in MAvProxy/Sitil?