[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Building gpsd on Debian 11 (Bullseye)

From: Gary E. Miller
Subject: Re: Building gpsd on Debian 11 (Bullseye)
Date: Wed, 6 Oct 2021 11:14:45 -0700

Yo Charles!

On Wed, 6 Oct 2021 11:25:44 -0600
Charles Curley <> wrote:

> On Tue, 5 Oct 2021 15:35:46 -0700
> "Gary E. Miller" <> wrote:
> > > Two python packages have gone away in the transition from Buster
> > > to Bullseye, python-gobject-2-dev and python-cairo-dev. Building
> > > (scons --config=force) seems to work without them.    
> > 
> > They are never required, just needed to run xgps.  So, optional.
> > 
> > My guess is that they got renamed, again.  gentoo avoid this mess by
> > using slotting.  
> They seem to have gone away entirely. Even searching on variants turns
> nothing up. Or I'm not imaginative enough in my variant searching.
> Anyway, once I got xgps working (see below) xgps and xgpsspeed were
> fine.

Ouch.  Those are pretty important packages to a lot of projects.  I can't
believe they just disappeared.  And, since you got xgps working they
must be there somehow.  UNless you have old orphaned packages or a 
pip install.

> > Pretty clear.  You are missing matplotlib.  Required to run gpsplot,
> > But not rewuired to install it.  So, optional.  
> Yeah. The package is now "python3-matplotlib". I will so note.

Someday they will figure out how to slot...

> > > xgps is not working correctly:
> > > 
> > > $ xgps: can't load Python gps libraries -- check PYTHONPATH.
> > > No module named 'gps'    
> > 
> > And did you check your PYTHONPATH?
> >   
> > > It looks like the gps python libraries are installed but:    
> > 
> > Installed where?  Installed in a place in your PYTHONPATH?  
> Installed like so:
> Install file: "gpsd-3.23.2~dev/gps/" as
> "/usr/local/lib/python3/dist-packages/gps/" Install file:
> "gpsd-3.23.2~dev/gps/" as
> "/usr/local/lib/python3/dist-packages/gps/" Install file:
> "gpsd-3.23.2~dev/gps/" as
> "/usr/local/lib/python3/dist-packages/gps/"

Weird.  That violates Python policy...

So your PYTHONPATH should include:

> root@iorich:~/versioned/gpsd# echo $PYTHONPATH

But it does not.

> root@iorich:~/versioned/gpsd# export [...]

You should put that somewhere so you do not have to do that on every login.

On gentoo you put in /etc/env.c/999local

> root@iorich:~/versioned/gpsd# gpsfake 
> gpsfake: requires at least one> logfile argument.

I suggest this instead:

$ gpsfake -V
gpsfake: Version 3.23.2~dev

> root@iorich:~/versioned/gpsd# xgps
> xgps: host localhost port 2947


$ xgps -V
xgps: Version 3.23.2~dev

> root@iorich:~/versioned/gpsd# 
> Which path I found after looking (again) at the output from the
> installation:

Exactly why it is there.

> Ensure your PYTHONPATH includes /usr/local/lib/python3/dist-packages/

> So apparently a package handles the path issue correctly, but
> building locally does not. I will make a note.

This is very standard Python behavior.  By default, a distro Python
ignores user installed packages.

> I will let my changes to build.adoc sit overnight, take another look,
> and ship it tomorrow.

Cool.  I used to think Debian was a stable distro...

Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703  Tel:+1 541 382 8588

            Veritas liberabit vos. -- Quid est veritas?
    "If you can't measure it, you can't improve it." - Lord Kelvin

Attachment: pgpYQgh8aKhQd.pgp
Description: OpenPGP digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]