Please don’t mail directly, keep discussion on the list. > On 3 Nov 2023, at 18:56, roman.le...@univ-pau.fr wrote: > > Thank you for your answer, you are right venv is part of python3, I tried > venv in many ways but my system doesn't recognizes it : > > $:~# python3 -m venv env > /usr/bin/python3: No module named venv.__main__; 'venv' is a package and > cannot be directly executed > $:~# python3 venv env > /usr/bin/python3: can't find '__main__' module in '/home/root/venv' > > I tried with python and python 3.10 aswell , same answer. > > Actually I tried any other module (such as numbers, pickle, audio, > sqlite3,...) and it will give the same error, it seems I don't have any > module that can be found, I'm only able to launch python3 shell. Might this > be related to wrong environment variable ?
Most modules can’t be executed directly, but venv should be able to. This is likely a missing dependency in the packaging. Can you confirm that you’ve installed python3-modules into your image to bring in _all_ of the standard library? Ross
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#61607): https://lists.yoctoproject.org/g/yocto/message/61607 Mute This Topic: https://lists.yoctoproject.org/mt/102373306/21656 Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/leave/6691583/21656/737036229/xyzzy [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-