[Top][All Lists]

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

Re: [gpsd-dev] ubxtool and remote gpsd

From: Gary E. Miller
Subject: Re: [gpsd-dev] ubxtool and remote gpsd
Date: Wed, 3 Jul 2019 12:56:34 -0700

Yo Ken!

On Wed, 3 Jul 2019 08:14:43 -0600
Ken McGuire <address@hidden> wrote:

> > >/> Missing $PYTHONPATH!/  
> >
> > No comment?  Serious problem.  
> Well, I'm probably not qualified to comment on that, first time I've
> run into $PYTHONPATH.

Because you have not installed a lot of packages from source.

> I run many different linux distros:

> x86:
Sort of, they are all Ubuntu derived, thus very similar.

> Arm:

And those are all Debian derived, thus very similar.

> All of them install Python2 and Python3 by default, and none set 

Yes, $PYTHONPATH is for customer installed softare that is not
from upstream packages.  Which, if you compile our sources, is the 
present case.

> I'm not a
> programmer so for something like $PYTHONPATH to escape my knowledge
> is very likely, especially if what I'm doing in Python works without
> it being set.

$PYTHONPATH is not for programmers, it is for users that install
3rd party source.

Think of $PYTHONPATH just like $PATH, except $PYTHONPATH is for
Python modules and $PATH is for scripts and executables.

To see your default built-in $PYTHONPATH:

 # python
Python 2.7.16 (default, Jul  1 2019, 17:28:45) 
[GCC 9.1.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> print(sys.path)
['', '/usr/local/lib64/python2.7/site-packages', '/usr/lib64/', 
'/usr/lib64/python2.7', '/usr/lib64/python2.7/plat-linux2', 
'/usr/lib64/python2.7/lib-tk', '/usr/lib64/python2.7/lib-old', 
'/usr/lib64/python2.7/lib-dynload', '/usr/lib64/python2.7/site-packages', 

Any module in each of those directories can be directly imported.
Modules installed elsewhere will not be found.

> I developed an application that is based on cgps but drives a 240x240 
> tft display with location, sig strength and skyview. I did a version
> for the desktop too using SDL2, if you have any interest is having
> this code for an example for gpsd I'd be glad to contribute it.

Yes, but it would need a bit of work to get done.  Like removing your
hard coded paths, ensuring Python 2/3 compatibility, documentation,

> Attached is a screenshot of what it looks like. (the 2 images were
> taken at different times and are not intended to show the same data)

Nice.  gpsd can use some sample graphical clients.

Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
        address@hidden  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: pgpLwcX_NpOlw.pgp
Description: OpenPGP digital signature

reply via email to

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