Servers by jDrones

Cygwin64 no module named Pymavlink

Hey guys! I exactly went through the Cygwin Download and SITL but I get the error no module named Pymavlink. I did Pip install pymavlink/ python3 -m pip install pymavlink/pipwin install pymavlink( I was desperate lol). Any advices

1 Like

At which stage you get that error message?
Send us the complete command window output (as text or screenshot).
Did you get any error when installing pymavlink?

2 Likes

Okay. Here is the cygwin terminal:
I get the error when: …/Tools/autotest/sim_vehicle.py --map --console
CygwinTerminal:

Do you get the same error message when you do the below commands, try them.

  1. python -m pip install pymavlink
  2. cd Tools/autotest
  3. python sim_vehicle.py --map --console

cd Tools/autotest: No Such File or directory

I assumed you are at the ardupilot directory.
cd ardupilot/Tools/autotest
Since you are out of the arducopter directory you might need to do
python sim_vehicle.py -v ArduCopter --map --console

Hello I am getting the same error. I am not since why since I can see the module named pymavlink. It is located under /modules/mavlink/. Any help would be appreciated!

Had exactly the same issue, decided to run SITL on a VM running Ubuntu instead, works perfectly.

on running this command i am gettting python: can’t open file ‘sim_vehicle.py’: [Errno 2] No such file or directory
this error help me out

Hi,
I am still getting the same error as:
Traceback (most recent call last):
File “…/Tools/autotest/sim_vehicle.py”, line 30, in
from pymavlink import mavextra
ModuleNotFoundError: No module named ‘pymavlink’

I tried to install pymavlink separately and I got this error:

ERROR: Command errored out with exit status 1:
command: /usr/bin/python -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/tmp/pip-install-v1wnz5ax/lxml_5990454f613d4e968eeaed9d73812175/setup.py’"’"’; file=’"’"’/tmp/pip-install-v1wnz5ax/lxml_5990454f613d4e968eeaed9d73812175/setup.py’"’"’;f=getattr(tokenize, ‘"’"‘open’"’"’, open)(file);code=f.read().replace(’"’"’\r\n’"’"’, ‘"’"’\n’"’"’);f.close();exec(compile(code, file, ‘"’"‘exec’"’"’))’ install --record /tmp/pip-record-gqvggv1h/install-record.txt --single-version-externally-managed --compile --install-headers /usr/include/python3.7m/lxml
cwd: /tmp/pip-install-v1wnz5ax/lxml_5990454f613d4e968eeaed9d73812175/
Complete output (86 lines):

thanks

These pymavlink issues are coming up with many people on the native windows build. Check
Unable to finish setting up SITL on windows - General - ArduPilot Discourse

Pip installation fails · Issue #222 · ArduPilot/pymavlink (github.com)

Always worth a shot installing pymavlink seperately. Link:
MAVProxy crashes after reinstallation, when adding new MAVLink message · Issue #623 · ArduPilot/MAVProxy (github.com)

Hello, have you solved this problem? I have exact the same issue

No I couldnt sorry :frowning:

Servers by jDrones