[Top][All Lists]

[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, are:


Steven Wawryk <>

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>
>   File "/usr/lib/python3/dist-packages/gps/", 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]