supersaiyanmode / PyWebOSTV

Python API for controlling LG TVs (Web OS)
MIT License
271 stars 50 forks source link

Some basic help? #56

Closed jltnol closed 3 years ago

jltnol commented 3 years ago

I am not a python guru, so please excuse my elemental questions. I'm trying to get all the files installed so I can control my LG TV via python scripts and Indigo Home Automation.

I've read this works with Python 2.0, but does anyone know if it will work with Python 3.9? If not, is it possible to have a dual install of 2 different versions of Python?

sobertram commented 3 years ago

you can have python 2.x and python3.x on the same system without conflicts. when you need to use python3 type python3. same for pip, use pip3 for python3.

There might be a way to change the system so that when you type python it looks at python3 and not python2 but i am not sure.

On Mon, May 10, 2021 at 9:53 PM jltnol @.***> wrote:

I am not a python guru, so please excuse my elemental questions. I'm trying to get all the files installed so I can control my LG TV via python scripts and Indigo Home Automation.

I've read this works with Python 2.0, but does anyone know if it will work with Python 3.9? If not, is it possible to have a dual install of 2 different versions of Python?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/supersaiyanmode/PyWebOSTV/issues/56, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACGGWOXJ6XDEXOLOVPJWJ43TNCEYDANCNFSM44TXU4CA .

Gustry commented 3 years ago

This project is compatible Python3, maybe the readme is not up to date.

I can't test with a TV right now, but I'm pretty sure. Like https://github.com/supersaiyanmode/PyWebOSTV/commit/66873d7fa8391bf78f609430e1efe0e0b6587d71

Gustry commented 3 years ago

Each commits are tested against Python 2 and 3 at the same time : https://travis-ci.org/github/supersaiyanmode/PyWebOSTV/builds/752005129

supersaiyanmode commented 3 years ago

Yes, as Gustry pointed to above, this project can run on both python 2 and python3. Also, I'd really recommend using virtualenv to install packages into as opposed to installing it system wide. Please sure your infra activates the virtualenv before calling your script.

Gustry commented 3 years ago

Very quick commit 22f2f19d8958d158a5dc41349212c4b56c6c8cce to keep track