Hello dear community, I was trying to use django recipe with core-image-minimal system file (poky langdale release) because it supports meta-intel-fpga layer.
In order to work with django I need also virtualenv library. The only virtualenv available on langdale release is virtualenv v1.11.4 ( https://layers.openembedded.org/layerindex/recipe/341147/ ) and unfortunately, it seems not compatible with python3 from the same langdale release which is python3 v3.10.6 ( https://layers.openembedded.org/layerindex/recipe/325778/ ) ! I say this is not compatible, because when I run "virtualenv env" in prompt it outputs me the following : > > > > New python executable in env/bin/python3 > > > > Not overwriting existing python script env/bin/python (you must use > env/bin/python3) > > > > Traceback (most recent call last): > > > > File "/usr/bin/virtualenv", line 8, in <module> > > > > sys.exit(main()) > > > > File "/usr/lib/python3.10/site-packages/virtualenv.py", line 815, in main > > > > create_environment(home_dir, > > > > File "/usr/lib/python3.10/site-packages/virtualenv.py", line 982, in > create_environment > > > > py_executable = os.path.abspath(install_python( > > > > File "/usr/lib/python3.10/site-packages/virtualenv.py", line 1459, in > install_python > > > > fix_local_scheme(home_dir, symlink) > > > > File "/usr/lib/python3.10/site-packages/virtualenv.py", line 1530, in > fix_local_scheme > > > > if sysconfig._get_default_scheme() == 'posix_local': > > > > AttributeError: module 'sysconfig' has no attribute '_get_default_scheme'. > Did you mean: 'get_default_scheme'? > > Especially the last line "...module 'sysconfig' has no attribute '_get_default_scheme'..." >From this post on stack overflow ( >https://stackoverflow.com/questions/71522731/unable-to-activate-virtual-environment-in-python > ) , it seems that virtualenv version is too old and must be upgraded. I know that pip recipe can be added, but not sure if poky is made to run "pip install --upgrade virtualenv" ? Should I try this ? Also the easiest solution would be to use poky nanbield release, because it provides newest virtualenv v.20.24.5 ( https://layers.openembedded.org/layerindex/recipe/352609/ ). But unfortunately I didn't find "meta-intel-fpga" layer support on this release ? What do you think I should do in order to be able to run virtualenv ?
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#61598): https://lists.yoctoproject.org/g/yocto/message/61598 Mute This Topic: https://lists.yoctoproject.org/mt/102365661/21656 Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
