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

pyrtlsdr dependency issue #72

Open
jamesmcguirepro opened this issue Nov 20, 2022 · 1 comment
Open

pyrtlsdr dependency issue #72

jamesmcguirepro opened this issue Nov 20, 2022 · 1 comment

Comments

@jamesmcguirepro
Copy link

If I install RTLSDR-Scanner on Windows, I get this error:

C:\Users\Owner>c:\Python27\python.exe -m rtlsdr_scanner
Traceback (most recent call last):
  File "c:\Python27\lib\runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "c:\Python27\lib\runpy.py", line 72, in _run_code
    exec code in run_globals
  File "c:\Python27\lib\site-packages\rtlsdr_scanner\__main__.py", line 36, in <module>
    import rtlsdr  # @UnusedImport
  File "c:\Python27\lib\site-packages\rtlsdr\__init__.py", line 56, in <module>
    from .librtlsdr import librtlsdr
  File "c:\Python27\lib\site-packages\rtlsdr\librtlsdr.py", line 188, in <module>
    f = librtlsdr.rtlsdr_set_bias_tee
  File "c:\Python27\lib\ctypes\__init__.py", line 379, in __getattr__
    func = self.__getitem__(name)
  File "c:\Python27\lib\ctypes\__init__.py", line 384, in __getitem__
    func = self._FuncPtr((name_or_ordinal, self))
AttributeError: function 'rtlsdr_set_bias_tee' not found

Running the dependency check reveals this error:

c:\Python27\Lib\site-packages\rtlsdr_scanner>c:\Python27\python.exe rtlsdr_scan_diag.py
rtlsdr_scan_diag

Tests for missing libraries

Testing for wxPython
Testing for Numpy
Testing for matplotlib
Testing for pySerial
Testing for pyrtlsdr
pyrtlsdr not found
        Download from 'https://github.com/roger-/pyrtlsdr'

Testing for Pillow

Problems found, please install the libraries for Python 2.7
Further instructions can be found at http://eartoearoak.com/software/rtlsdr-scanner/rtlsdr-scanner-installation

Press [Return]
@jamesmcguirepro
Copy link
Author

Manually installing pyrtlsdr v0.2.92 seems to solve the issue:

c:\Python27\python.exe -m pip install pyrtlsdr==0.2.91

I took at stab at locking down the dependency version the installer fetches: master...jamesmcguirepro:RTLSDR-Scanner:patch-1. Happy to open a PR if wanted.

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

1 participant