VL53L1X Python 3.6.6

Hi. I´m trying to build a distance sensor using VL53L1X and homeassistant 0.82.1 installed with hassio 140.

This version use Python 3.6.6 which is not currently supported by VL53L1X library. Please check details below.

Would it be possible to build the VL53L1X library to Python 3.6.6?

pi@hassio:~ $ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
bbb40cd4cd50 homeassistant/raspberrypi3-homeassistant “/bin/entry.sh pytho…” 32 minutes ago Up 32 minutes homeassistant
04056bf1d9cd homeassistant/armhf-addon-duckdns “/run.sh” 32 hours ago Up 32 hours addon_core_duckdns
afc0467d23a3 homeassistant/armhf-addon-samba “/run.sh” 32 hours ago Up 32 hours addon_core_samba
1969e9d386a3 homeassistant/armhf-hassio-supervisor “python3 -m hassio” 9 days ago Up 44 hours hassio_supervisor

pi@hassio:~ $ docker exec -it bbb bash

bash-4.4# pip install vl53l1x
Collecting vl53l1x
Could not find a version that satisfies the requirement vl53l1x (from versions: )
No matching distribution found for vl53l1x
bash-4.4# python --version
Python 3.6.6

bash-4.4# pwd
/config/deps
bash-4.4# ls
VL53L1X-0.0.2-cp35-cp35m-linux_armv7l.whl
bash-4.4# pip install VL53L1X-0.0.2-cp35-cp35m-linux_armv7l.whl
VL53L1X-0.0.2-cp35-cp35m-linux_armv7l.whl is not a supported wheel on this platform.

Will it work in Python 2? If you change “python3” to just “python” The install script will install for python 2 instead of 3. And running your python file with the python command runs it in python 2 instead of 3. As far as I know anyway. I’m not an expert in python by any means.
I have just learned to pay attention to the installer scripts to see which python version they use so all my bit and bytes will work together from one py file.’

Hi alphanumeric, thanks but I am not willing to tweak the Homeassistant Docker container inside hassio environment due to unpredictable side effects that it may arise. I hope that updated build for library can be done soon.

Fair enough. To be honest, what your into is above my skill level.

As you can see with -vvv all versions are not compatible, I edited the details for clarity.

pi@hassio:~ $ docker exec -it bbb bash
bash-4.4# pip install vl53l1x -vvv

Collecting vl53l1x

https://pypi.org:443 “GET /simple/vl53l1x/ HTTP/1.1” 304 0
Analyzing links from page Links for vl53l1x
Skipping … /VL53L1X-0.0.1-cp27-cp27mu-linux_armv7l.whl it is not compatible with this Python
Skipping … /VL53L1X-0.0.1-cp34-cp34m-linux_armv7l.whl# it is not compatible with this Python
Skipping … /VL53L1X-0.0.1-cp35-cp35m-linux_armv7l.whl it is not compatible with this Python
Skipping … VL53L1X-0.0.2-cp27-cp27mu-linux_armv7l.whl it is not compatible with this Python
Skipping … VL53L1X-0.0.2-cp27-none-linux_armv6l.whl it is not compatible with this Python
Skipping … VL53L1X-0.0.2-cp34-cp34m-linux_armv6l.whl it is not compatible with this Python
Skipping … VL53L1X-0.0.2-cp34-cp34m-linux_armv7l.whl it is not compatible with this Python
Skipping … VL53L1X-0.0.2-cp35-cp35m-linux_armv6l.whl it is not compatible with this Python
Skipping … VL53L1X-0.0.2-cp35-cp35m-linux_armv7l.whl it is not compatible with this Python
Could not find a version that satisfies the requirement vl53l1x (from versions: )

No matching distribution found for vl53l1x

'No matching distribution found for %s' % req

pip._internal.exceptions.DistributionNotFound: No matching distribution found for vl53l1x