#ubuntu python3.9
1 messages · Page 1 of 1 (latest)
maybe we can move discussion to a thread
I'm not using that as far as i can tell
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.4 LTS
Release: 20.04
Codename: focal
$ apt info python3.9
Package: python3.9
Version: 3.9.5-3ubuntu0~20.04.1
Priority: optional
Section: universe/python
Origin: Ubuntu
Maintainer: Ubuntu Core Developers <ubuntu-devel-discuss@lists.ubuntu.com>
APT-Sources: http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages
Thanks for helping. The installation went through but hass fails to start saying it can't find sqlalchemy
This whole thing is no good
And the only way to get it to work was to manually change python3 to pythong3.9 in all scripts. Alias didn't work.
You have the venv all set up?
You may also consider the docker and vscode route
I personally use the manual setup too, but the vscode route is great too and works quite well
Part of the venv setup is to run pip on the requirements files to install dependencies in the venv like sqlalchemy
You can grep sqlalchemy in the requirements files to see the specific library it's trying to install
It didn't install it I guess and the VENV was installed. I did this many times before but in the pre 3.8 era. It's totally broken now.
Found sqlalchemy==1.4.38
How do I install it?
It installed like 20-30 libs and not the usual amount...
pip3 install sqlalchemy==1.4.38
recreating the venv is not a big deal, i do it all the time for what it's worth
so you can also just remove it and re-create it and get back into a fine state
Even running pip3 install -r homeassistant/package_constraints.txt fails at some point
and for some reason it didn't install most of them previously
I think I know why now. Probably wheel was installed with earlier pip and then new pip just said already satisfied and didn't do anything.
But now it fails consistently on this one:
ERROR: Could not find a version that satisfies the requirement pycrypto==1000000000.0.0 (from versions: 2.0.1, 2.1.0, 2.2, 2.3, 2.4, 2.4.1, 2.5, 2.6, 2.6.1)
ERROR: No matching distribution found for pycrypto==1000000000.0.0
I guess I'm on a bad Python as I suspected with how I updated to 3.9. This is so frustrating.
Thanks for all your help so far.
I finally got it to work by replacing each the 4 lines that reference version 1000000000.0.0 with the latest available version.
If you could re-install your venv on another folder and see if you get anything better that would be great. Since this experience was horrible. Thanks.
Did you see the comment in package constraints for that?
It's saying to avoid new versions of pycrypto and instead to use pycryptodome
You definitely don't want to use that constraints file as a requirements file as far as I know
Constraints files are for the -c flag
I would suggest just following what's in https://developers.home-assistant.io/docs/development_environment/#developing-on-linux
the script/setup runs python3 -m pip install -e . --constraint homeassistant/package_constraints.txt ....
Yes it just didn't do it's thing. I may try to do the whole thing again to see where it broke. Probably if I first upgrade PIP completely it may be ok. Maybe. I'll let you know.
I really don't know what to do next. I upgrade python, pip and it looks as if it's installing and then it's missing a bunch of modules so something is causing it not to install everything. I also built python from code so I don't change anything system level and same result. If you can try to rebuild your venv and tell me what you get it would be great.
What's the first error you got when starting over?