SITL on Windows

Hey, I did all the instructions according to this page http://ardupilot.org/dev/docs/sitl-native-on-windows.html
and I don’t know why but the Cygwin Terminal output this error (I installed the python future and lxml packages.
I have been stuck on this for 2 days so far. tnx!

$ sim_vehicle.py -j4 --map --console
SIM_VEHICLE: Start
SIM_VEHICLE: Killing tasks
SIM_VEHICLE: Starting up at -35.363261,149.165230,584,353 (CMAC)
SIM_VEHICLE: WAF build
SIM_VEHICLE: Configure waf
SIM_VEHICLE: “/home/גיל/ardupilot/modules/waf/waf-light” “configure” “–board” "sitl"
Setting top to : Traceback (most recent call last):
File “/home/גיל/ardupilot/modules/waf/waflib/Logs.py”, line 173, in emit
self.emit_override(record)
File “/home/גיל/ardupilot/modules/waf/waflib/Logs.py”, line 188, in emit_override
msg = self.formatter.format(record)
File “/home/גיל/ardupilot/modules/waf/waflib/Logs.py”, line 241, in format
return msg % rec.args
UnicodeDecodeError: ‘ascii’ codec can’t decode byte 0xd7 in position 6: ordinal not in range(128)
Logged from file Logs.py, line 292
Setting out to : Traceback (most recent call last):
File “/home/גיל/ardupilot/modules/waf/waflib/Logs.py”, line 173, in emit
self.emit_override(record)
File “/home/גיל/ardupilot/modules/waf/waflib/Logs.py”, line 188, in emit_override
msg = self.formatter.format(record)
File “/home/גיל/ardupilot/modules/waf/waflib/Logs.py”, line 241, in format
return msg % rec.args
UnicodeDecodeError: ‘ascii’ codec can’t decode byte 0xd7 in position 6: ordinal not in range(128)
Logged from file Logs.py, line 292
Autoconfiguration : enabled
Setting board to : sitl
Checking for ‘g++’ (C++ compiler) : /usr/bin/g++
Checking for ‘gcc’ (C compiler) : /usr/bin/gcc
Checking for need to link with librt : not necessary
Checking for HAVE_CMATH_ISFINITE : yes
Checking for HAVE_CMATH_ISINF : yes
Checking for HAVE_CMATH_ISNAN : yes
Checking for NEED_CMATH_ISFINITE_STD_NAMESPACE : yes
Checking for NEED_CMATH_ISINF_STD_NAMESPACE : yes
Checking for NEED_CMATH_ISNAN_STD_NAMESPACE : yes
Checking for header endian.h : yes
Checking for header byteswap.h : yes
Checking for program ‘python’ : /usr/bin/python
Checking for python version >= 2.7.0 : 2.7.13
Checking for program ‘python’ : /usr/bin/python
Checking for python version >= 2.7.0 : 2.7.13
Source is git repository : yes
Update submodules : yes
Checking for program ‘git’ : /usr/bin/git
Checking for program ‘size’ : /usr/bin/size
Benchmarks : disabled
Unit tests : enabled
Checking for program ‘rsync’ : /usr/bin/rsync
’configure’ finished successfully (3.671s)
SIM_VEHICLE: Building
SIM_VEHICLE: “/home/גיל/ardupilot/modules/waf/waf-light” “build” “–target” “bin/arducopter” “-j” "4"
Traceback (most recent call last):
File “/home/גיל/ardupilot/modules/waf/waflib/Logs.py”, line 173, in emit
self.emit_override(record)
File “/home/גיל/ardupilot/modules/waf/waflib/Logs.py”, line 188, in emit_override
msg = self.formatter.format(record)
File “/home/גיל/ardupilot/modules/waf/waflib/Logs.py”, line 241, in format
return msg % rec.args
UnicodeDecodeError: ‘ascii’ codec can’t decode byte 0xd7 in position 6: ordinal not in range(128)
Logged from file Logs.py, line 292
[4/4] Processing modules/mavlink/message_definitions/v1.0/ardupilotmega.xml
Validating /home/גיל/ardupilot/modules/mavlink/message_definitions/v1.0/ardupilotmega.xml
Parsing /home/גיל/ardupilot/modules/mavlink/message_definitions/v1.0/ardupilotmega.xml
Note: message DATA64 is longer than 64 bytes long (74 bytes), which can cause fragmentation since many radio modems use 64 bytes as maximum air transfer unit.
Note: message DATA96 is longer than 64 bytes long (106 bytes), which can cause fragmentation since many radio modems use 64 bytes as maximum air transfer unit.
Note: message REMOTE_LOG_DATA_BLOCK is longer than 64 bytes long (214 bytes), which can cause fragmentation since many radio modems use 64 bytes as maximum air transfer unit.
Note: message DEVICE_OP_READ_REPLY is longer than 64 bytes long (143 bytes), which can cause fragmentation since many radio modems use 64 bytes as maximum air transfer unit.
Note: message DEVICE_OP_WRITE is longer than 64 bytes long (187 bytes), which can cause fragmentation since many radio modems use 64 bytes as maximum air transfer unit.

Traceback (most recent call last):
File “/home/גיל/ardupilot/modules/mavlink/pymavlink/tools/mavgen.py”, line 30, in
mavgen.mavgen(args, args.definitions)
File “/home/גיל/ardupilot/modules/mavlink/pymavlink/generator/mavgen.py”, line 91, in mavgen
fname = os.path.join(os.path.dirname(x.filename), i)
File “/usr/lib/python2.7/posixpath.py”, line 73, in join
path += ‘/’ + b
UnicodeDecodeError: ‘ascii’ codec can’t decode byte 0xd7 in position 6: ordinal not in range(128)

mavgen returned 1 error code
Traceback (most recent call last):
File “/home/גיל/ardupilot/modules/waf/waflib/Logs.py”, line 173, in emit
self.emit_override(record)
File “/home/גיל/ardupilot/modules/waf/waflib/Logs.py”, line 188, in emit_override
msg = self.formatter.format(record)
File “/home/גיל/ardupilot/modules/waf/waflib/Logs.py”, line 241, in format
return msg % rec.args
UnicodeDecodeError: ‘ascii’ codec can’t decode byte 0xd7 in position 6: ordinal not in range(128)
Logged from file Logs.py, line 292
Build failed
-> task in ‘mavlink’ failed (exit status 1):
{task 7696566521680: mavgen ardupilotmega.xml -> }
’'
SIM_VEHICLE: Build failed
SIM_VEHICLE: Killing tasks

Hi Gil

looks like it is because your home directory is in Hebrew, /home/גיל/… change to it to English or move the code base…

or if you prefer Hebrew:
זה נראה שהבעיה היא שחלק מהנתיב שלך בעברית זה גורם לבעיות שים לב שתקיית הבית שלך היא
/home/גיל/…

נסה לשנות את השם לאנגלית או להזיז את הקוד לנתיב אחר שכולו אנגלית

בהצלחה
good luck.

hey everyone,
Im getting the same error while using the command " make sitl -j4" , i followed up the steps which are mentioned in the http://ardupilot.org/dev/docs/sitl-native-on-windows.html but i get the following error. i will appreciate if you advise me about the possible solutions.
thanks in advance
Traceback (most recent call last):
File “/home/Adminà/ardupilot/modules/uavcan/libuavcan/dsdl_compiler/libuavcan_dsdlc”, line 16, in
LOCAL_PYUAVCAN_DIR = os.path.join(SCRIPT_DIR, ‘pyuavcan’)
File “/usr/lib/python2.7/posixpath.py”, line 73, in join
path += ‘/’ + b
UnicodeDecodeError: ‘ascii’ codec can’t decode byte 0xc3 in position 11: ordinal not in range(128)
make: *** [C:/cygwin64/home/Adminà/ardupilot/mk/uavcangen.mk:17: /home/Adminà/ardupilot/ modules/uavcan/libuavcan/include/dsdlc_generated//uavcan/Timestamp.hpp] Error 1
make: *** Waiting for unfinished jobs…
Validating /home/Adminà/ardupilot/modules/mavlink/message_definitions/v1.0/ardupilotmega .xml
Parsing /home/Adminà/ardupilot/modules/mavlink/message_definitions/v1.0/ardupilotmega.xm l
Note: message DATA64 is longer than 64 bytes long (74 bytes), which can cause fragmentat ion since many radio modems use 64 bytes as maximum air transfer unit.
Note: message DATA96 is longer than 64 bytes long (106 bytes), which can cause fragmenta tion since many radio modems use 64 bytes as maximum air transfer unit.
Note: message REMOTE_LOG_DATA_BLOCK is longer than 64 bytes long (214 bytes), which can cause fragmentation since many radio modems use 64 bytes as maximum air transfer unit.
Note: message DEVICE_OP_READ_REPLY is longer than 64 bytes long (143 bytes), which can c ause fragmentation since many radio modems use 64 bytes as maximum air transfer unit.
Note: message DEVICE_OP_WRITE is longer than 64 bytes long (187 bytes), which can cause fragmentation since many radio modems use 64 bytes as maximum air transfer unit.
Traceback (most recent call last):
File “/home/Adminà/ardupilot/modules/mavlink//pymavlink/tools/mavgen.py”, line 30, in
mavgen.mavgen(args, args.definitions)
File “/home/Adminà/ardupilot/modules/mavlink/pymavlink/generator/mavgen.py”, line 91, in mavgen
fname = os.path.join(os.path.dirname(x.filename), i)

It is possible that the “accented-a” character in your username is causing a problem. (The à in Adminà) Can you try changing your username to remove that character?

1 Like

yes it worked
thank you very much huntOr

1 Like