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 code -8 when reading 1200000 bytes #4

Closed
FFY00 opened this issue Apr 25, 2018 · 2 comments
Closed

Error code -8 when reading 1200000 bytes #4

FFY00 opened this issue Apr 25, 2018 · 2 comments

Comments

@FFY00
Copy link

FFY00 commented Apr 25, 2018

I'm getting this when trying to run predict_scan.py.

Traceback (most recent call last):
  File "predict_scan.py", line 54, in <module>
    iq_samples = read_samples(sdr, freq)
  File "predict_scan.py", line 13, in read_samples
    return sdr.read_samples(sample_rate * 0.25)
  File "/home/anubis/anaconda3/lib/python3.6/site-packages/rtlsdr/rtlsdr.py", line 407, in read_samples
    raw_data = self.read_bytes(num_bytes)
  File "/home/anubis/anaconda3/lib/python3.6/site-packages/rtlsdr/rtlsdr.py", line 391, in read_bytes
    % (result, num_bytes))
OSError: Error code -8 when reading 1200000 bytes
@randaller
Copy link
Owner

This happens under Linux and solved here: #1 (comment)

@randaller
Copy link
Owner

Fixed and committed

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

2 participants