Python 3.7 problems

Post Reply
richard-g8jvm
Posts: 418
Joined: Sun Jan 18, 2015 1:27 am
languages_spoken: english
ODROIDs: C1+ C2, XU4
Location: Telford UK
Has thanked: 0
Been thanked: 0
Contact:

Python 3.7 problems

Unread post by richard-g8jvm » Sat Feb 01, 2020 7:53 pm

Hi
I run homeassistant on my XU4 , and tried to upgrade to the latest version.
but python3.6 use in HA is depreciated after December 2019

So tried downloading as much as I could of python3.7.5 with APT , but HA would not build.
So next was to download the python3.7.4 source and build that, but many failures when running "make test"
But HA did sorta build with that, but it didn't run properly, it ignored all the automations.

All the listed py3.7

Code: Select all

odroid@odroid:~/.homeassistant$ apt list python3.7*
Listing... Done
python3.7/bionic-updates 3.7.5-2~18.04 armhf
python3.7-dbg/bionic-updates 3.7.5-2~18.04 armhf
python3.7-dev/bionic-updates 3.7.5-2~18.04 armhf
python3.7-doc/bionic-updates 3.7.5-2~18.04 all
python3.7-examples/bionic-updates 3.7.5-2~18.04 all
python3.7-minimal/bionic-updates 3.7.5-2~18.04 armhf
python3.7-venv/bionic-updates 3.7.5-2~18.04 armhf

only the minimal :)
does anyone know where there might be a python3.7-full
the whole python 3.7 including the kitchen sink if need be.
I want to try agian with HA 0.104.3 , but this time od a SD card first, Already had 24 htrs of keyboard grief.
Or even a python3.8-full , but 3.8 still has some bugs
TIA
BR
Richard G8JVM

richard-g8jvm
Posts: 418
Joined: Sun Jan 18, 2015 1:27 am
languages_spoken: english
ODROIDs: C1+ C2, XU4
Location: Telford UK
Has thanked: 0
Been thanked: 0
Contact:

Re: Python 3.7 problems

Unread post by richard-g8jvm » Sat Feb 01, 2020 11:14 pm

After a lot of grief trying to use python 3.7, both from the repo and compiled

DO NOT waste time by duplicating my failure to get HA 0.104.3 runing on your XU4

instead download python3.8

Code: Select all

sudo apt install python3.8-venv python3.8 python3.8*  libpython3.8-dev
there is not many python3.8 packages , I just downloaded them all
BR
Richard G8JVM

User avatar
igorpec
Posts: 480
Joined: Sat Dec 12, 2015 4:34 pm
languages_spoken: english,german,slovene
ODROIDs: XU4, HC1, C2, C1+
Has thanked: 19 times
Been thanked: 46 times
Contact:

Re: Python 3.7 problems

Unread post by igorpec » Sat Feb 01, 2020 11:51 pm

What about containerised HA?

And you skip all this troubles.
ARMBIAN - follow on Twitter
linux for ARM development boards with user friendly development tools

User avatar
mad_ady
Posts: 7381
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 359 times
Been thanked: 258 times
Contact:

Re: Python 3.7 problems

Unread post by mad_ady » Mon Feb 03, 2020 12:24 am

+1 for docker in this case. I went through your pain ~2 years ago when HA moved from python 3.5 to 3.6. I was running ubuntu 16.04, and python 3.5 was the default. I had to find a pps that provided the needed python version.

For fast moving projects like HA with a 2 week release cycle ho with ghe docker approach. You should install hassio (as docker) to make things simpler in the future. You do need to understand containers a bit, and some things may need a bit of tweaking, but it pays off in the long run.

richard-g8jvm
Posts: 418
Joined: Sun Jan 18, 2015 1:27 am
languages_spoken: english
ODROIDs: C1+ C2, XU4
Location: Telford UK
Has thanked: 0
Been thanked: 0
Contact:

Re: Python 3.7 problems

Unread post by richard-g8jvm » Mon Feb 03, 2020 1:29 am

It really would help it ubuntu would stop the stupid idea of releasing a python-minimal.
if a python-full was made avilable, it would stop installers hunting for packages and using with disaterous results something from an earlier release

AND a "no-deps" switch on APT like on rpm, so it would be easy to remove a package with 100 dependancies.
some some of the dependancies are so loose as to be rediculous.

like remove python3.6 and mate gets removed , yet Mate uses python2.7

There really needs to be some arse kicking, and I'm sure I'm not the only one who feels this way
Oh for a package manager that does what you want.. Not one that copes with the capabilities of windoews users.

Yup I'm in an evil mood after dependancy hell
BR
Richard G8JVM

Post Reply

Return to “Ubuntu”

Who is online

Users browsing this forum: No registered users and 6 guests