dusty-nv / jetson-containers

Machine Learning Containers for NVIDIA Jetson and JetPack-L4T
MIT License
1.9k stars 416 forks source link

Cmake build: ModuleNotFoundError: No module named 'importlib_metadata' #452

Open Bonitodelcapo opened 3 months ago

Bonitodelcapo commented 3 months ago

While building a container the process stops in the process of building the cmake container:

./build.sh --package-dirs /home/gia/lzdv_qa_predictor/ lzdv --name lzdv_base --no-github-api --skip-tests=all
Namespace(base='', build_flags='', list_packages=False, logs='', multiple=False, name='lzdv_base', no_github_api=True, package_dirs=['/home/gia/lzdv_qa_predictor/'], packages=['lzdv'], push='', show_packages=False, simulate=False, skip_errors=False, skip_packages=[''], skip_tests=['all'], test_only=[''], verbose=False)
-- L4T_VERSION=35.3.1
-- JETPACK_VERSION=5.1.1
-- CUDA_VERSION=11.4.315
-- LSB_RELEASE=20.04 (focal)
-- Building containers  ['build-essential', 'cuda', 'cudnn', 'python', 'tensorrt', 'numpy', 'cmake', 'onnx', 'pytorch', 'torchvision', 'opencv', 'lzdv']

the returned error:


Step 4/4 : RUN cmake --version && which cmake
 ---> Running in 63d1f7ab9257
Traceback (most recent call last):
  File "/usr/local/bin/cmake", line 5, in <module>
    from cmake import cmake
  File "/usr/local/lib/python3.8/dist-packages/cmake/__init__.py", line 6, in <module>
    from importlib_metadata import distribution
ModuleNotFoundError: No module named 'importlib_metadata'
The command '/bin/sh -c cmake --version && which cmake' returned a non-zero code: 1

Since this error persisted i pulled the latest version of the jetson-containers repo and reinstalled dependences, with no luck.