Custom rootfs: python3-jetson-gpio depends on python2?

I’m attempting to build a minimal rootfs which has python3 but does not have python2. It is failing with the following snippet from nv_build_samplefs.log:

Setting up python3-jetson-gpio (2.0.200ubuntu1) ...
dpkg: dependency problems prevent configuration of python-jetson-gpio:
 python-jetson-gpio depends on python2:any (<< 2.8).
 python-jetson-gpio depends on python2:any (>= 2.7~).

For customizing rootfs, we have the steps in
Root File System — Jetson Linux Developer Guide documentation

So you run this command:

$ sudo ./ --abi aarch64 --distro ubuntu --flavor minimal --version focal

And hit the failure? Is your host PC in Ubuntu 18.04 or 20.04?

Yes that’s correct, Ubuntu 20.04 host. I resolved the issue by adding python2 to my package list, but it seems odd this “python3” package fails unless both python3 and python2 are installed. I would prefer not to install the EOL version of python on my system.

We are trying to remove dependency to python2 and this may take some time. For now please still install it to meet the dependency.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.