Modulus 22.03 Bare-metal installation: No module named easy_install

I am trying to use the bare metal installation of Nvidia Modulus 22.03 on my PC. I followed the instructions from Nvidia Documentation. Modulus installation was successful using the python setup.py install. However, the PySDF is problematic. I can’t use easy_install tried pip as well, turned out egg files is depreciated stuff and does not work with pip.

I upgraded the pip to 22.0.4 and setuptools to 62.1.0, still things are same. I am experiencing the same in my university PC as well. Both of them run Ubuntu LTS 20.04.
Here is some useful information.

(modulus22.03) hell@Dell-Precision-T1600:~/Desktop/Nvidia modulus/Nvidia Modulus 22.03/Modulus_source/Modulus/external/eggs$ pwd
/home/hell/Desktop/Nvidia modulus/Nvidia Modulus 22.03/Modulus_source/Modulus/external/eggs
(modulus22.03) hell@Dell-Precision-T1600:~/Desktop/Nvidia modulus/Nvidia Modulus 22.03/Modulus_source/Modulus/external/eggs$ ls
pysdf-0.1-py3.8-linux-x86_64.egg
(modulus22.03) hell@Dell-Precision-T1600:~/Desktop/Nvidia modulus/Nvidia Modulus 22.03/Modulus_source/Modulus/external/eggs$ python -m easy_install pysdf-0.1-py3.8-linux-x86_64.egg
/home/hell/anaconda3/envs/modulus22.03/bin/python: No module named easy_install
(modulus22.03) hell@Dell-Precision-T1600:~/Desktop/Nvidia modulus/Nvidia Modulus 22.03/Modulus_source/Modulus/external/eggs$ python --version
Python 3.9.12
(modulus22.03) hell@Dell-Precision-T1600:~/Desktop/Nvidia modulus/Nvidia Modulus 22.03/Modulus_source/Modulus/external/eggs$ python3 --version
Python 3.9.12
(modulus22.03) hell@Dell-Precision-T1600:~/Desktop/Nvidia modulus/Nvidia Modulus 22.03/Modulus_source/Modulus/external/eggs$

Hi I also encountered the same issue, I worked around it by copying the pysdf folder found in./Modulus/external/pysf from the previous releases into ./Modulus/external/
From there I installed pysdf just as with previous releases of Modulus - Imgur: The magic of the Internet

2 Likes

Thanks a lot. You copied this before installing Modulus or after installing Modulus. Because after installing Modulus we install PySDF.

I did this after executing python setup.py install, if pysdf isn’t working then check the directory you set the library path.
The image I used above is from the documentation of Modulus v21 which requires you to be a level above the ./Modulus folder when exporting the library path. For this work around to work, after executing python setup.py install you need to run the following:

cd ..
export LD_LIBRARY_PATH=$(pwd)/Modulus/external/pysdf/build/:${LD_LIBRARY_PATH}
cd ./Modulus/external/pysdf/
python setup.py install
1 Like

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

Hello, unfortunately we decided to pull the pysdf support for the bare metal installation because it became too cumbersome to maintain. This is reflected in the installation instructions. If the tessellated geometry module is required then we suggest using the Docker image. We are pushing now to have pysdf released as a separate library but don’t have any release date for this. In the mean time we are looking into a slower fallback option when pysdf is not installed.

2 Likes