crossenv icon indicating copy to clipboard operation
crossenv copied to clipboard

problems on older python versions

Open dberardo-com opened this issue 1 year ago • 0 comments

i am trying to use crossenv in WSL to crosscompile the regex package for an openwrt, mipsel architecture.

i have downloaded the openwrt sdk and compiled python3-dev package inside it so as to have access to the python C header folder.

so i am now using:

crossenv staging_dir/hostpkg/bin/python3.7 cross_env --without-pip

to create the cross_env dir ... which works

but then i do

cd crosee_env/bin && activate

giving the error:

Traceback (most recent call last): File "/usr/lib/command-not-found", line 28, in from CommandNotFound import CommandNotFound File "/usr/lib/python3/dist-packages/CommandNotFound/CommandNotFound.py", line 19, in from CommandNotFound.db.db import SqliteDatabase File "/usr/lib/python3/dist-packages/CommandNotFound/db/db.py", line 5, in import apt_pkg ModuleNotFoundError: No module named 'apt_pkg'

dberardo-com avatar Jan 22 '24 11:01 dberardo-com