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

Scan save does not work #67

Open
kaklik opened this issue Apr 14, 2021 · 1 comment
Open

Scan save does not work #67

kaklik opened this issue Apr 14, 2021 · 1 comment

Comments

@kaklik
Copy link

kaklik commented Apr 14, 2021

In case of use File -> Save as option. The Scanner utility declares the "Status: Saving..."

image

But, the produced file has zero size

$ ls -la | grep rfs
-rw-rw-r--  1 kaklik kaklik        0 dub 10 13:04 Scan 150.0-500.0MHz_chotilsko.rfs
-rw-rw-r--  1 kaklik kaklik        0 dub 10 12:53 Scan 150.0-500.0MHz_praha.rfs
-rw-rw-r--  1 kaklik kaklik        0 dub 14 11:28 Scan500-1000.0MHz_chotilsko_noANT.rfs
-rw-rw-r--  1 kaklik kaklik        0 dub 10 09:19 Scan80.0-120.0MHz_praha.rfs

Terminal output is:

Traceback (most recent call last):
  File "/home/kaklik/programy/RTLSDR-Scanner/rtlsdr_scanner/main_window.py", line 485, in __on_save
    save_plot(fullName, self.scanInfo, self.spectrum, self.locations)
  File "/home/kaklik/programy/RTLSDR-Scanner/rtlsdr_scanner/file.py", line 408, in save_plot
    handle.write(json.dumps(data, indent=4))
TypeError: a bytes-like object is required, not 'str'
@petterreinholdtsen
Copy link

A fix for this is available in https://github.com/CdeMills/RTLSDR-Scanner/pull/2 .

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