OpenMarine
No module named pypilot - Printable Version

+- OpenMarine (https://forum.openmarine.net)
+-- Forum: Pypilot (https://forum.openmarine.net/forumdisplay.php?fid=17)
+--- Forum: General discussion (https://forum.openmarine.net/forumdisplay.php?fid=18)
+--- Thread: No module named pypilot (/showthread.php?tid=6881)

Pages: 1 2 3 4


No module named pypilot - Rkumitsch - 2026-04-28

I installed the headless openplotter version, did a full sudo update, installed pypilot version 4.0.11 through the open cpn installer and when I try to go activate it under the services tab it continues to stay disabled and under the pypilot version says “no module named pypilot”. In the terminal when I type in pypilot I get “pypilot command not found”. Also when running the check system I get 

Checking Pypilot… access to signal k server validated, pypilot not running, pypilot_web not running, pypilot_hat not running

Any help would be greatly appreciated.


RE: No module named pypilot - sealgair - 2026-04-29

I am having the same problem.

RPi4, MacArthur HAT with Hi with ICM-20948

Followed install process for Pypilot and IMU recognised but Pypilot does not allow 'Enable IMU only' option.

Shows 4.0.11-beta as installed

Dialog contains
pypilot version: No module named 'pypilot'

and

All services disabled


RE: No module named pypilot - Tom60 - 2026-05-01

I am also having the same problem.

RPi5  OP4  Arduino ICM-20948

Three weeks ago the Pypilot was recognised and working.  However 12C sensors (BME280) wasn't recognised and the Dashboard in OpenCPN was frozen in the middle of the screen.

A week ago I used a 2nd micro SD card and did a fresh install of OP4.  This resolved the i2C and Dashboard issue but Pypilot is now disabled and shows No module named pypilot against the pypilot version

Screen dumps below


RE: No module named pypilot - Tom60 - 2026-05-08

My knowledge of linux and Openplotter is very limited bit it seemed to me Pypilot wasn't installed (or fully installed) using Openplotter 4.  

I appear to have stumbled on a solution to the above problem.

Upon reading the Pypilot User Manual I read the installation instruction here.   

From the Terminal within OP4 I pasted the line from the manual 
Code:
git clone --depth 1 github.com/pypilot/pypilot

This was rejected.   I then discovered I needed to modify the line to read


Code:
git clone --depth 1 https://github.com/pypilot/pypilot

Then
 
Code:
cd /pypilot
    to enter the directory
Then
Code:
sudo python3 setup.py install

Which appeared to install pypilot

Next I opened Pypilot in OP4 and I see pypilot version: 0.70

Version 0.70 isn't the latest but my autopilot is now working.

However I have noticed there is no image of the boat in the Calibration setting.

I need to work out how to upgrade Version 0.70 to the latest version

 


RE: No module named pypilot - ReinierD - 2026-05-09

raspb 5, ssd, nano 
Got the same problem. Followed the instruction for openplotter 4. On sdcart  further update, upgrade the OS, only a hidden .pypilot. On the ssd i got bolder then the install pypilot 4.0etc instructions and follows your experience, there i get an dir pypilot. But the pypilot start in the menu didn't show anything.
in the readme.md there are instruction i will try this evening: I let you know if success. 
# PyPilot - Open Source Marine Autopilot

## Installation

Clone the repository by running the following command:

```
git clone https://github.com/pypilot/pypilot
```

### Dependencies (on raspberry pi)

```
sudo apt install gettext libgpiod-dev
```

### Build and Install
```
sudo pip install .[optimze,ui,hat,web] --break-system-packages
```

### Configuration

You may want to run pypilot as a service, see the scripts/debian directory

## Usage

Most of the scripts can be run individually as standalone
or test programs, some function as clients, other as servers

### servers (only one executes at a time)

These server scripts can be run as tests:
* execute this script directly

`pypilot -- autopilot`

instead of running the complete autopilot these scripts provide a server with specific functionallity.

`pypilot_boatimu`    -- imu specific to boat motions
                      includes automatic 2d/3d calibration and alignment of magnetic sensors
                      * useful for testing the imu (gyros) or even just reading gyros
                     
`pypilot_sensors`    -- test sensor inputs only
                      reads nmea0183 from serial ports or from tcp connections, and multiplexes
                      the output to both nmea0183.
                      listed on tcp port 20220 by default
                      * convert and multiplex nmea0183 data

`pypilot_servo`  --  use to test or verify a working motor controller is detected,
                      can be used to control and calibrate the servo

### clients (run as many of these to connect to a server):

`pypilot_control` -- simple interface to command autopilot

`pypilot_calibration` -- interactive gui for all autopilot calibrations

`pypilot_kivy` -- work in progress kivy control app

`pypilot_client_wx` -- graphical client (wx widgets)

`pypilot_scope` -- plot client with wx widgets (for checked listbox)

`pypilot_client` -- console client

`pypilot_hat` -- autopilot control interface using GPIO pins, with web configuration on port 33333

`pypilot_web` -- python flask application for browser autopilot control


RE: No module named pypilot - sealgair - 2026-05-09

For me the issue seems to be Cloudsmith.

According to Cloudsmith website they are retiring their cloudsmith.io application and have a new one running on cloudsmith.com.

It was supposed to be retired in Dec 2025, but the announcement says they intended to keep it open until the 'second half' of 2026.

However my opencpn installer/updater hangs/fails to resolve dl.cloudsmith.io/public/openplotter/.....

I tried the git route however it fell over when the installer couldn't find the 'swig' package


RE: No module named pypilot - seandepagnier - 2026-05-10

Sorry for all the trouble.  Some contributions updated the packaging of pypilot to use pip instead of the older setuptools.

There is an openplotter-pypilot package which makes a simple gui installer for pypilot and to enable/disable services.  It is technically optional.

Despite this I have updated it to hopefully work.  Really, it must be fixed to pull a tagged branch to avoid this breakage, and that is my fault, I will do this in the future.

For now you can try this:
Code:
git clone https://github.com/pypilot/openplotter-pypilot
cd openplotter-pypilot/openplotterPypilot
sudo python pypilotPostInstall.py


This should install everything and you can enable pypilot either with "sudo systemctl start pypilot"  or via the gui:

Code:
python openplotterPypilot.py

If this should fail you can try without the openplotter-pypilot helper scripts (should work on any linux system) eg:
Code:
git clone https://github.com/pypilot/pypilot --depth 1
cd pypilot
sudo python3 -m pip install .[optimize,ui,hat,web] --break-system-packages
sudo cp -rv scripts/debian/etc/systemd /etc
sudo systemctl daemon-reload
git clone --depth 1 https://github.com/pypilot/pypilot_data
cd pypilot_data
python3 -m pip install . --break-system-packages


Of course in the rpi config you must enable i2c (for the imu)  spi (if using pypilot hat) and enable the hardware serial port..  in the openplotter serial config click the UART0 button or edit /boot/firmware/config.txt and ensure the line "dtoverlay=disable-bt"

Please let me know if this doesn't work and/or ideas to make this all easier because I don't really like the manual steps and complications.  I am thinking mostly the openplotter-pypilot must be pinned to a tag of pypilot, and it should probably do a better just of enabling i2c spi and the uart all automatically or with very few clicks.


RE: No module named pypilot - Tom60 - 2026-05-10

Sean,
Thank you for the quick reply.
I have followed the steps in your first option. Before starting I uninstalled pypilot. I didn't know if that was necessary but did it anyway.
Then I followed your first two sections of commands
Then I reinstalled pypilot. I also had to reinstall the arduino connections.
The pypilot version was empty so I rebooted the RPi5
On reboot I have pypilot version: 0.70 shown
In the Calibration Tab I now have the yacht image in alignment and it moves. The accel and compass tabs are black screens with one or two red dots. If I move the imu more red dots appear in both screens. I don't see the spheres.
In the Autopilot Control screen I can activate the AP from Red to Green and move the linear actuator using the Tack button (my RPi is on my desk).

The improvement over what I had achieved in Post 4 (above) is I now have the yacht image in Calibration. I'm still missing the two spheres.

I copied and saved the output from the Terminal after following your instructions. I can attach it if you think the information may be useful.

Thanks again

Tom


RE: No module named pypilot - ReinierD - 2026-05-11

       
Didn't work for me. Still no working pypilot. By menu openplotter-pypilot nor in the terminal. Just the hourglass for a few minutes and nothing starts.
The last option ' works for any linux os' I did for this conversation in the op4. So a fresh start on nvme ssd to usb with op4 d.d. 24-06-19  all working accept pypilot. The in the terminal as Sean suggested. Still no working pypilot. 
The time I compiled linux kernel are long gone thanks to ubuntu and distro mint. So I think I will not succeed in revolving pip conflicting with the system packing manager. So I am depending on a solution of experts.
 I have a backup of 2022 working on rp4b, I will try if it works on the rp5 otherway I have to wait.


RE: No module named pypilot - Tom60 - 2026-05-12

(2026-05-11, 12:09 PM)ReinierD Wrote: Didn't work for me. Still no working pypilot. By menu openplotter-pypilot nor in the terminal. Just the hourglass for a few minutes and nothing starts.
The last option ' works for any linux os' I did for this conversation in the op4. So a fresh start on nvme ssd to usb with op4 d.d. 24-06-19  all working accept pypilot. The in the terminal as Sean suggested. Still no working pypilot. 
The time I compiled linux kernel are long gone thanks to ubuntu and distro mint. So I think I will not succeed in revolving pip conflicting with the system packing manager. So I am depending on a solution of experts.
 I have a backup of 2022 working on rp4b, I will try if it works on the rp5 otherway I have to wait.

Reinier,
I am a novice with linux and just followed the OP4 installation instructions here.   I have a RPi5 with nvme base.   I have lost count of the number of times I have done a fresh install of OP4 attempting to get Pypilot working.  However I now have Pypilot working (apart from the missing spheres in Calibration.

When you go to Openplotter - Settings is Pypilot shown as installed?  If it is; can you load it and confirm the imu is recognised?  If you cannot load Pypilot can you go to Openplotter - i2C - i2C Addresses and confirm 68 is shown (this is the imu address).  

Tom