I tried to follow the instructions on Modulus Installation guide/Modulus Bare Metal Installation:
Release v21.06 | November 9, 2021
tar -xvzf ./modulus_image_v21.06.tar.gz
python setup.py install
because setup.py is not in the list of uncompressed files, or install, or even a Modulus folder, just a long list of folders.
What am I missing?
Hi, for bare metal installation of Modulus, please use the “Download Modulus 21.06 Archive for Linux” tab under “Compressed Tar Archive”. You have downloaded the Modulus docker image and that is why you are not able to see the setup file.
Hi! Thanks for the help. I was able to install it following your suggestion, but now TensorFlow is complaining. It looks like an intermediate option will be to downgrade TensorFlow installation to 1.15 as it is suggested on the manual:
AttributeError Traceback (most recent call last)
----> 1 from modulus.solver import Solver
9 from . import graph
10 from . import learning_rate
—> 11 from . import optimizer
12 from .node import Node
13 from .arch import Arch
351 return loss
→ 353 class AdamOptimizerWrapper(tf.train.AdamOptimizer):
354 def init(self, learning_rate, beta1, beta2, epsilon, alpha, num_terms, local_annealing):
355 self.alpha = alpha
AttributeError: module ‘tensorflow._api.v2.train’ has no attribute ‘AdamOptimizer’
It looks like you are using TensorFlow 2. Modulus is currently based on TensorFlow 1.15, so please downgrade your TensorFlow version.
Thank you for your response. Correct. I am trying to install Modulus and then launch Jupyter Notebook, so downgrading TensorFlow may cause other problems (Linux OS). I am currently evaluating creating a virtual environment and other alternatives.
I can’t seem to see how to start a new discussion post. If you could point me in the right direction that would be much appreciated.
I am having problems with installing the PySDF library with the bare metal installation. It seems to install but when I very the installation it says that there is an import error.
ImportError: libsdf.so: cannot open shared object file: No such file or directory