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

a bytes-like object is required, not 'str' #2

Open
tatsumasagc opened this issue Jun 27, 2022 · 1 comment
Open

a bytes-like object is required, not 'str' #2

tatsumasagc opened this issue Jun 27, 2022 · 1 comment

Comments

@tatsumasagc
Copy link

OS: Windows 10 [version 10.0.19043.1503]
Python: 3.9-64

The filename, directory name, or volume label syntax is incorrect.
Traceback (most recent call last):
File "D:\conv2mp4\conv2mp4-py.py", line 414, in
codec_discovery()
File "D:\conv2mp4\conv2mp4-py.py", line 152, in codec_discovery
get_vid_codec = subprocess.Popen(ffprobe + " -v error -select_streams v:0 -show_entries stream=codec_name -of "
TypeError: a bytes-like object is required, not 'str'
Exception ignored in: <main.Tee object at 0x00000218062C22E0>
AttributeError: 'Tee' object has no attribute 'flush'

@happyman
Copy link

happyman commented Jan 3, 2023

  1. 2to3
  2. add "shell=True, encoding='utf-8' in Popen
  3. skip plex refresh if plex_ip == ''
    runs under Ubuntu Linux 22.04

https://gist.github.com/happyman/610407127195cfc60fcf902cca7c2d80

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