Closed junming1202 closed 1 year ago
Hi, the way i got it work is:
Although not 100% sure, I believe the error has something to do with the python library where ansys-dpf-core is installed. FYI, you can find where the module is install when you redo the "pip install ansys-dpf-core".
Hi @junming1202, Not sure what the error could have been, but I am glad this is now working.
I am having exactly the same issue after upgrading from 2023R1 to 2024R1 on a Linux machine. Can't reinstall so easily due to extensive RSM configuration. Would be nice to get a better solution.
I use virtual environments for Python so that is a bit different than OP.
tagging @PProfizi for visibility as this issue is closed.
Hi @aukselis-c1connections, Looking back at the issue I can see that OP had some out-of-date libraries in his environment which could prevent PyDPF from working properly with ANSYS2023 R2. Could you please share a pip list? You can find more information on server-client compatibility here.
Before submitting the issue
Description of the bug
Hi, the previous ANSYS version i used is ANSYS 2022 R11, currently still installed in my pc. The pyansys dpf core is able to run with no issue previously. After installing ANSYS 2023 R2, I encounter dpfserverexception error even with simple demo example.
Steps To Reproduce
Install ANSYS 2023 R2
open command prompt
open python environment by entering "python"
run a simple demo example:
Following error shows after entering "print(model)"
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "", line 1, in
File "C:\Users\junmisoh.AMD\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\ansys\dpf\core\model.py", line 203, in str
txt += str(self.results)
File "C:\Users\junmisoh.AMD\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\ansys\dpf\core\model.py", line 157, in results
self.metadata.result_info,
File "C:\Users\junmisoh.AMD\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\ansys\dpf\core\errors.py", line 106, in wrapper
raise DPFServerException(details)
ansys.dpf.gate.errors.DPFServerException: ResultInfoProvider:2<-Data sources not defined