Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in importing / Traceback (most recent calls last) #74

Closed
t-ctrl opened this issue Jul 7, 2020 · 3 comments
Closed

Error in importing / Traceback (most recent calls last) #74

t-ctrl opened this issue Jul 7, 2020 · 3 comments

Comments

@t-ctrl
Copy link

t-ctrl commented Jul 7, 2020

calling modeslive --help gives the following erors

modeslive --help

/usr/lib/python3/dist-packages/apport/report.py:13: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
import fnmatch, glob, traceback, errno, sys, atexit, locale, imp
Traceback (most recent call last):
File "/usr/local/bin/modeslive", line 12, in
from pyModeS.streamer.source import NetSource,RtlSdrSource
File "/usr/local/lib/python3.6/dist-packages/pyModeS/streamer/source.py", line 3, in
from pyModeS.extra.rtlreader import RtlReader
File "/usr/local/lib/python3.6/dist-packages/pyModeS/extra/rtlreader.py", line 4, in
from rtlsdr import RtlSdr
File "/usr/local/lib/python3.6/dist-packages/rtlsdr/init.py", line 56, in
from .librtlsdr import librtlsdr
File "/usr/local/lib/python3.6/dist-packages/rtlsdr/librtlsdr.py", line 61, in
f = librtlsdr.rtlsdr_get_device_count
File "/usr/lib/python3.6/ctypes/init.py", line 361, in getattr
func = self.getitem(name)
File "/usr/lib/python3.6/ctypes/init.py", line 366, in getitem
func = self._FuncPtr((name_or_ordinal, self))
AttributeError: /usr/bin/python3: undefined symbol: rtlsdr_get_device_count

@junzis
Copy link
Owner

junzis commented Jul 13, 2020

I suspect this has something to do with the rtl-sdr library on your computer.

Please try to reinstall librtlsdr-dev and librtlsdr0 to see if it solves the problem.

@kastork
Copy link

kastork commented Jul 27, 2020

not my ticket, but installing librtlsdr solved this sort of problem for me. (on a mac simply brew install librtlsdr)

I understand the need for this library for accessing the radio directly. Don't know if it is possible, but It would be nice if this dependency wasn't necessary when accessing a dump1090 network stream from another device.

@junzis
Copy link
Owner

junzis commented Aug 16, 2020

@kastork, good recommendation. This is considered now in the commit 7a4c465.

@junzis junzis closed this as completed Aug 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants