-
Hello all, I am studying on UPF's in PyAnsys in Linux Suse. The current ansys version is 2022R2 I followed the instructions and tried to perform usermat example in PyAnsys User Guide documents as given in https://mapdldocs.pyansys.com/user_guide/extended_examples/Python_UPF/python_upf_examples.html Then I open Ansys Mechanical APDL Launcher and input my dat file. However I get the following error as shown in Solution Output which I provided below. Please also note that I build Pyansys on Anaconda3 with Python 3.9. It would be really appreciated if you kindly share your opinions. Thanks in advance!
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hi, |
Beta Was this translation helpful? Give feedback.
-
Hi @kkytg From this:
It seems to me that the module You can install that package using the following:
I believe the default python3 environment is (in most of linux distributions) in To know where is the default python3 executable, you can write this in a terminal python3 -c "import sys;print(sys.exec_prefix)" (Make sure you don't have any virtual environment activated) After you have that fixed, you might have more error regarding missing modules (Numpy for example), just repeat the approach. I hope it helps! P.D. Reminder, you need to use batch mode (
|
Beta Was this translation helpful? Give feedback.
Hi @kkytg
From this:
It seems to me that the module
encodings
is not installed in the default python3.6 environment.You can install that package using the following: