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

str Error #1

Open
alexo8-sketch opened this issue Dec 28, 2021 · 1 comment
Open

str Error #1

alexo8-sketch opened this issue Dec 28, 2021 · 1 comment

Comments

@alexo8-sketch
Copy link

%Run hydrogen_obvs.py
Enabling bias-T to power LNA
Found 1 device(s):
0: Realtek, RTL2838UHIDIR, SN: 00000001

Using device 0: Generic RTL2832U OEM
Found Rafael Micro R820T tuner
Baseline file found! Incorporating into output
Running data acquisition/plotting loop...
Traceback (most recent call last):
File "/home/pi/simple-rpi-hydrogen-radio/hydrogen_obvs.py", line 53, in
for line in power_proc_out.split('/n'):
TypeError: a bytes-like object is required, not 'str'

@islandmonkey
Copy link

Solution:
change line 53 from:
for line in power_proc_out.split('\n'):
to:
for line in power_proc_out.split(b'\n'):

i'll make a pull request to fix it.

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