You are not logged in.
Pages: 1
I just migrated from debian to archlinux, and I can't use the python virtual enviroment to flash an image on a sd card:
Debian distro
sudo apt install python3-venv
python3 -m venv ~/ox64_venv
. ~/ox64_venv/bin/activate
pip install bflb-iot-tool
Archlinux distro
According https://wiki.archlinux.org/title/Python … nvironment I installed:
sudo pacman -S python
python -m venv ~/ox64_venv
. ~/ox64_venv/bin/activate
pip install bflb-iot-tool
Unfortunatelly when I try to flash, I get errors:
ModuleNotFoundError: No module named 'bflb_path'
ModuleNotFoundError: No module named 'pkg_resources'
I tryed to use pip to install missing modules, but they can't be found.
Any help is appreciated. Thanks.
Last edited by giorez (2024-04-29 10:47:54)
Offline
pkg_resources is python-setuptools. That might let it load the other one, too.
Online
I tryed this
sudo pacman -S python
sudo pacman -S python-setuptools
python -m venv ~/ox64_venv
. ~/ox64_venv/bin/activate
pip install python-setuptools
but error is still there.
Last edited by giorez (2024-04-28 22:28:13)
Offline
pip install python-setuptools
What output did that produce in the venv? Also in the venv what is the output of `pip list`?
Offline
(ox64_venv) [gio@aimec ~]$ pip install python-setuptools
ERROR: Could not find a version that satisfies the requirement python-setuptools (from versions: none)
ERROR: No matching distribution found for python-setuptools
(ox64_venv) [gio@aimec ~]$ pip list
Package Version
---------------- -------
bflb_crypto_plus 1.0
bflb-iot-tool 1.8.7
ecdsa 0.19.0
future 1.0.0
pip 24.0
portalocker 2.0.0
psutil 5.9.8
pycklink 0.1.1
pycryptodome 3.9.8
pylink-square 0.5.0
pyserial 3.5
six 1.16.0
PS this solved the issue:
(ox64_venv) [gio@aimec ~]$ pip install setuptools
Last edited by giorez (2024-04-29 05:15:42)
Offline
Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.
Offline
sorry, you are right, I just didn't find the button to mark this post as solved.
Offline
Pages: 1