gpsd-users
[Top][All Lists]
Advanced

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

Re: Can't get gpsfake/gpsd to work together


From: Steven Wawryk
Subject: Re: Can't get gpsfake/gpsd to work together
Date: Mon, 16 May 2022 07:25:58 +0000

Just in case it's a logfile format issue, the first few lines of output.nmea,
generated using https://www.nmeagen.org/, are:

$GPGGA,041356.792,3459.199,S,13841.881,E,1,12,1.0,0.0,M,0.0,M,,*7E
$GPGSA,A,3,01,02,03,04,05,06,07,08,09,10,11,12,1.0,1.0,1.0*30
$GPRMC,041356.792,A,3459.199,S,13841.881,E,114.3,341.4,100522,000.0,W*6B
$GPGGA,041357.792,3459.168,S,13841.871,E,1,12,1.0,0.0,M,0.0,M,,*7E
$GPGSA,A,3,01,02,03,04,05,06,07,08,09,10,11,12,1.0,1.0,1.0*30
$GPRMC,041357.792,A,3459.168,S,13841.871,E,085.9,330.6,100522,000.0,W*6C
$GPGGA,041358.792,3459.147,S,13841.858,E,1,12,1.0,0.0,M,0.0,M,,*77
$GPGSA,A,3,01,02,03,04,05,06,07,08,09,10,11,12,1.0,1.0,1.0*30
$GPRMC,041358.792,A,3459.147,S,13841.858,E,098.4,347.9,100522,000.0,W*6B

-- 
Steven Wawryk <steven.wawryk@acaciasystems.com.au>

On Mon, 2022-05-16 at 07:01 +0000, Steven Wawryk wrote:
> > "can't bind to local socket" is a permission error.  Maybe you have
> > AppArmour, or SELinux, or some "seceurity" thing going.  Be sure those
> > are OFF.  Also try as root.
> > 
> > Maybe also check that your /tmp is drwxrwxrwt
> 
> Thanks!  Looks like it's apparmor.  This has taken me down a bit of a rabbit 
> hole with apparmor.
> 
> The gpsd install also installed /etc/apparmor.d/usr.sbin.gpsd.  I don't yet 
> know enough to be able
> to edit this to allow access to gpsfake's socket.  So I've disabled it with:
> 
> $ sudo ln -s /etc/apparmor.d/usr.sbin.gpsd 
> /etc/apparmor.d/disable/usr.sbin.gpsd
> $ sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.gpsd
> 
> This gets me over the permission problem, but into the next one, but at least 
> it's finally getting
> somewhere:
> 
> $ gpsfake -v -l -P 2948 -c 1 output.nmea
> Processing output.nmea
> gpsfake: log cycle of output.nmea begins.
> Traceback (most recent call last):
>   File "/usr/bin/gpsfake", line 319, in <module>
>     test.run()
>   File "/usr/lib/python3/dist-packages/gps/fake.py", line 755, in run
>     if not chosen.go_predicate(chosen.index, chosen):
>   File "/usr/bin/gpsfake", line 120, in fakehook
>     announce = fakegps.testload.legend \
> TypeError: can only concatenate str (not "bytes") to str
> 
> Does this error mean anything to you?
> 

reply via email to

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