Python error on Fedora 31
I am getting this error when running PlexConnect.py:
Traceback (most recent call last):
File "./PlexConnect.py", line 20, in
Log please.
Likely that your environment is set up with Python 3 rather than Python 2.7, Even though Python 2 is EOL, PlexConnect was never migrated to 3.
Oh bummer! Is there any plans to migrate?
Em sex., 18 de set. de 2020 às 17:30, Grand Experiments < [email protected]> escreveu:
Likely that your environment is set up with Python 3 rather than Python 2.7, Even though Python 2 is EOL, PlexConnect was never migrated to 3.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/iBaa/PlexConnect/issues/587#issuecomment-695071332, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACQPDENUBKFISDXLAHEWYM3SGO7NTANCNFSM4RSGGIXA .
--
Michel Martins Zigaib
Visual Effects Technical Director [email protected] [email protected]
I did a " alias python='/usr/bin/python2.7' " So my python -V is now "Python 2.7.18" and the error was the same, can you help me?
There are no plans to migrate PlexConnect to Python 3.
Pls post PlexConnect.log
Since the Python syntax error is occurring at a "print" statement, I can almost guarantee the issue is Python 3.
As moody says, post your log file. Also, tell us how you're instantiating PlexConnect at boot-up.
I did initialize a environment for python 2.7.18 but I still get this error and no logs:
Sep 19,2020 22:32:27 PlexConnect: ***
Sep 19,2020 22:32:27 PlexConnect: PlexConnect
Sep 19,2020 22:32:27 PlexConnect: Press CTRL-C to shut down.
Sep 19,2020 22:32:27 PlexConnect: ***
Traceback (most recent call last):
File "./PlexConnect.py", line 198, in
For sure is something related to Fedora because on Mint is working fine.
enable_dnsserver = False\n is not a valid statement in Settings.cfg, The correct statement would be enable_dnsserver = False
If you are disabling PlexConnect's dns server you need to use another dns server (or dnsmasq) to manage dns calls from the atv.
Feedback pls
Ok right, sorry.
I was able set a virtual environment in Fedora to run python2 but now I get this error:
Traceback (most recent call last):
File "./PlexConnect.py", line 20, in
I also have a laptop with Mint and everything went fine, the problem is if I try to run it on Fedora 31. Any tips?
Thanks again for the help.
New update: I did make it work with:
sudo python2 ./PlexConnect.py
Much simpler than I though, lack of experience with python on my side sorry.
Thanks again for all the help!
Great. Closing the issue