Skip to content

Add missing io import - #86

Closed
NebraskaCoder wants to merge 1 commit into
boatbod:devfrom
NebraskaCoder:dev
Closed

Add missing io import#86
NebraskaCoder wants to merge 1 commit into
boatbod:devfrom
NebraskaCoder:dev

Conversation

@NebraskaCoder

Copy link
Copy Markdown
Collaborator

Receiving an error in rx.py that io is not defined. Importing it in rx.py fixed the error.

@boatbod

boatbod commented Dec 7, 2020

Copy link
Copy Markdown
Owner

Fixed, thanks!

@boatbod boatbod closed this Dec 7, 2020
@NebraskaCoder
NebraskaCoder deleted the dev branch December 7, 2020 22:43
@alphafox02

Copy link
Copy Markdown

@NebraskaCoder Seems like you’re also checking out the same setup as me. Can you try to run your install with the web server flag? It wouldn’t work for me and had some errors. Just curious if you see the same thing (I also had the io issue this morning and manually fixed it).

@NebraskaCoder

NebraskaCoder commented Dec 8, 2020

Copy link
Copy Markdown
Collaborator Author

@alphafox02 Are you getting the error osmosdr source_c creation failure?

Error in stderr is:

gr-osmosdr 0.2.0.0 (0.2.0) gnuradio 3.8.1.0
built-in source types: file osmosdr fcd rtl rtl_tcp uhd miri hackrf bladerf rfspace airspy airspyhf soapy redpitaya freesrp 
Traceback (most recent call last):
  File "./rx.py", line 1028, in <module>
    rx = rx_main()
  File "./rx.py", line 937, in __init__
    self.tb = p25_rx_block(self.options)
  File "./rx.py", line 145, in __init__
    gain_names = self.src.get_gain_names()
AttributeError: 'NoneType' object has no attribute 'get_gain_names'

@boatbod

boatbod commented Dec 8, 2020

Copy link
Copy Markdown
Owner

Usually this happens when op25 / gr-osmosdr cannot find the rtl device.
Does it show up in the "lsusb" command?

@NebraskaCoder

Copy link
Copy Markdown
Collaborator Author

Disregard. My error is now this:

Exception while serving /
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/waitress/channel.py", line 349, in service
    task.service()
  File "/usr/lib/python3/dist-packages/waitress/task.py", line 169, in service
    self.execute()
  File "/usr/lib/python3/dist-packages/waitress/task.py", line 477, in execute
    self.write(chunk)
  File "/usr/lib/python3/dist-packages/waitress/task.py", line 330, in write
    channel.write_soon(towrite)
  File "/usr/lib/python3/dist-packages/waitress/channel.py", line 320, in write_soon
    self.outbufs[-1].append(data)
  File "/usr/lib/python3/dist-packages/waitress/buffers.py", line 249, in append
    self.strbuf = strbuf + s
TypeError: can't concat str to bytes

@alphafox02

Copy link
Copy Markdown

Like Boatmod said, I get the error you first showed when no device is plugged in. I’ll have to check the second error - it’s only when I try to access the web server do I see it in the terminal and nothing loads in the browser. If I run rx.py just in terminal without the web server option it seems okay, but I’m new and still figuring it out. Might take me awhile to report back.

@boatbod

boatbod commented Dec 8, 2020

Copy link
Copy Markdown
Owner

The waitress error is reproducible and relates to python3 binary vs string. Unfortunately I haven't tracked down exactly what's causing it yet.

@NebraskaCoder

Copy link
Copy Markdown
Collaborator Author

@alphafox02 your error should be easy to fix as it is the dongle as @boatbod said. My new error is something boatbod will have to look at as it is different.

@alphafox02

Copy link
Copy Markdown

Yes, no issues with an rtlsdr plugged in. Running the web server option is where I see the same error as you. I’ll check back for updates.

@boatbod

boatbod commented Dec 8, 2020

Copy link
Copy Markdown
Owner

Please pull the update and try it again.

@NebraskaCoder

Copy link
Copy Markdown
Collaborator Author

Looks good! Thanks!

@NebraskaCoder

Copy link
Copy Markdown
Collaborator Author

Opened a new issue so that we can keep this thread closed. #87

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

Successfully merging this pull request may close these issues.

3 participants