gpsd-users
[Top][All Lists]
Advanced

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

Re: xgps not returning data


From: Gary E. Miller
Subject: Re: xgps not returning data
Date: Tue, 19 Jan 2021 13:16:55 -0800

Yo G2!

TL;DR: Sudon't!

On Tue, 19 Jan 2021 13:07:41 -0800
G2 <g2subspstlc@gmail.com> wrote:

> my typo, it is:

OK.  3.22 is current gpsd version.

> > Then how you are running xgps.  
> 
>  command line 'xgps'

And yet, later you say otherwise below.

> >Are you running xgps as the same user as gpsd?  
> 
>  yes (root)

Sort of.  See below.

> >Does xgps give any messages on the command line?  
> 
> 
> sudo xgps

Running a program under "sudo" is not the same as running it as
root!

Read this:

https://gpsd.io/ubxtool-examples.html#_sudo_sudont

You can replace "ubxtool examples" with "xgps" here:

    ubxtool never needs root access, but will run fine as root.

    sudo is not the same as running as root. Using sudo with some
    of these examples will break them.


> xgps: host localhost port 2947
> Traceback (most recent call last):
>   File "/usr/lib/python3/dist-packages/gi/overrides/GLib.py", line
> 671, in <lambda> func_fdtransform = lambda _, cond, *data:
> callback(channel, cond, *data) File "/usr/bin/xgps", line 1457, in
> handle_response if self.daemon.read() == -1:
>   File "/usr/lib/python3/dist-packages/gps/gps.py", line 326, in read
>     self.unpack(self.response)
>   File "/usr/lib/python3/dist-packages/gps/client.py", line 200, in
> unpack self.data = dictwrapper(json.loads(buf.strip(),
> encoding="ascii")) File "/usr/lib/python3.9/json/__init__.py", line
> 359, in loads return cls(**kw).decode(s)
> TypeError: __init__() got an unexpected keyword argument 'encoding'
> 
> (xgps:378473): GLib-GIO-CRITICAL **: 12:53:08.053: g_dbus_proxy_new:
> assertion 'G_IS_DBUS_CONNECTION (connection)' failed

You realize that sudo breaks dbus?

Have you tried to run xgps as a normal user?  Or as root (not using sudo)?

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
        gem@rellim.com  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: pgpgBZ4slwvWk.pgp
Description: OpenPGP digital signature


reply via email to

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