-
Notifications
You must be signed in to change notification settings - Fork 625
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
migrate to python3 #607
base: master
Are you sure you want to change the base?
migrate to python3 #607
Conversation
dlgoodr
commented
Sep 30, 2021
- 2to3'd
- autopep8'd
- dropped custom DNS server implementation in favor of dnslib
- various deprecated functions updated for python 3.9, most notably around XML, f-strings and string/byte encodings
Thanks for submitting this pull request. I did not reply earlier because it raised some concerns on my side and I could not find time during the week end to discuss them with you. Pls do not think that I'm not happy with this pull request (I am very happy) but, not being a developer myself, I need to understand what are the benefits of having a py3 version. I think that the py2 version needs to coexist with a py3 version because some people may have installed PlexConnect in a device where py2 is available but py3 is not (such as jb'd ATV's) or where py2 is used by default (such as docker distros). Also I would need to rewrite some wiki sections to install the py3 version, and future patches need to be applied on both versions. Last but not least, I need to find some time to test this py3 version. |
I don't! no worries! just a bump because I didn't know how actively this repo was watched.
py2 is dead.
good point, I don't have any
put a Dockerfile in this repo and roll an 'official' version into dockerhub and this becomes a non-problem. I'm happy to help there, I just wanted to get to py3 first. |
Started to test. PlexConnect.py starts ok, but running as daemon gives error
|
I didn't even look at the daemon, i'll give that a look |
I still see 3 problems:
Logs: |
Thanks, i'll start digging in to this. the lack of a test environment in the code makes this very much a "works for me" sort of test so i appreciate the extra data. |
Suggestion: include |
I'm able to play media after installing pillow (no plex.tv login). Probably I had fanart enabled in settings.cfg (copied from my prod environment) and this caused the previous error. This leaves us with two issues: daemon and plex.tv access |
I can ask for testers in the forum. |
Do you think that it will be possible to fix #608 in this new version ? |
Interesting, discovering servers via multicast to GDM does not work for me. I can even try with nc from my machine and it doesn't work:
but hitting the ip directly is fine:
did discovery work for you in the py2 version? |
we can test once the plex.tv discovery is working again, i ran out of time last night troubleshooting. |
It used to but I no longer use it. Could be usefull if I had several local PMS's. I can test again. Some switches and routers block multicast traffic, so setting up GDM is not so simple as most people thinks. |
GDM is working for me in py2. |
back at it tonight, sorry about the long silence. |
@moodyblue, does this fix GDM? it finds servers when you're logged in now.
Withdrawn, |
XMLConverter: fix: youtube/get_video_info 404s without &html5=1 these days