Closed AJJLagerweij closed 5 months ago
Hi @AJJLagerweij ,
please try again after uninstalling ansys-dpf-gate
, ansys-dpf-gatebin
and ansys-grpc-dpf
from your Python environment.
Is this a fresh venv, and if so, did you create it using the PyAnsys Installer?
Many thanks for the quick reply.
To answer your questions, the environment is not made by the PyAnsys installer, rather a week-old anaconda environment. Reinstalling the environment, and installing only specific ansys packages, did resolve my issues.
For future reference, the correctly created environment was setup with:
conda create --name APDL python=3.11
conda install scipy pandas matplotlib
(not required)pip install ansys-mapdl-core
pip install ansys-dpf-post
(in my case there was an extra issue, probably related to ansys-mapdl-core and thus not to the issue mentioned above, which required an exctra step to fix)
libstdc++.so.6
and GLIBCXX_3.4.30
dependency through:
sudo dnf install libstdc++
)strings /usr/lib64/libstdc++.so.6 | grep GLIBCXX
ln -sf /usr/local/lib64/libstdc++.so.6 path/to/your/conda/envirionment/lib/libstdc++.so.6
Sorry for wasting your time, all is working fine now.
@AJJLagerweij Glad you managed to make it work, and thank you so much for the detailed description of the steps you had to take!
Before submitting the issue
Description of the bug
I followed the example on the
ansys.dpf.post
website to learn about processing Ansys outputs from python. Sadly, I ran into an error simply by running the example, and performing theprint(displacement_dataframe)
command. There seems to be an issue regarding the type of attributes of the DataFrame.It returns the following exact error
I tried debugging the command. The
settings.get_runtime_client_config(self._server)
command gives a dictionary, specifically{'use_cache': False, 'streaming_buffer_size': 524288, 'stream_floats': False}
which indeed cannot be transformed into an array with the array setterreturn_array
.Steps To Reproduce
Running the following script with the versions of the software on my computer, produce the error. These lines of code are the start of an example regarding DataFrame interaction on the pyansys post website.
Which Operating System causes the issue?
Linux
Which DPF/Ansys version are you using?
Ansys 2023 R2
Which Python version causes the issue?
3.11
Installed packages