gpsd-dev
[Top][All Lists]
Advanced

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

Re: ✘"Can't find packet library")


From: James Browning
Subject: Re: ✘"Can't find packet library")
Date: Sun, 26 Jul 2020 17:19:29 -0700

On Sun, Jul 26, 2020, at 4:15 PM Gary E. Miller <gem@rellim.com> wrote:
>
> Yo All!
>
> So I just tried to use gpsfake outside of the build tree.  Which
> I rarely do, but will be common for most people.  And it fails.
>
> # gpsfake -1 -P 3000 4h-raw.ubx
> Traceback (most recent call last):
>   File "/usr/local/bin/gpsfake", line 31, in <module>
>     import gps.fake as gpsfake   # The "as" pacifies pychecker
>   File "/usr/local/lib/python3.9/site-packages/gps/fake.py", line 92, in 
> <module>
>     from . import packet as sniffer
>   File "/usr/local/lib/python3.9/site-packages/gps/packet.py", line 106, in 
> <module>
>     _packet = importado()
>   File "/usr/local/lib/python3.9/site-packages/gps/packet.py", line 102, in 
> importado
>     raise OSError("Can't find packet library")
> OSError: Can't find packet library
>
> libgpsdpacket.so.27.0.0 is properly installed here:
>
>     /usr/local/lib/libgpsdpacket.so.27.0.0
>
> And I thought we got rid of this:
>
>     # Look for Library in ancestors
>     cwd = os.path.abspath(__file__)
>
> Wandering through the file tree is un-good.
>
> Ideas?

I am too stupid to understand. I did not redact that particular code.
Instead, I mistakenly removed a possible workaround for Python
behaving inconveniently (ignoring /usr/local/lib).



reply via email to

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