DPFServerException
Hello everybody,
I'm a beginner in PyAnsys and would like to run a simple example to test if the installation of PyAnsys is correct.
I have installed the package ansys-dpf-core in a virtual environment with the command:
pip install ansys-dpf-core
My Ansys version is 2024 R1.
I would like to run the following code:
from ansys.dpf.core import Model
from ansys.dpf.core import examples
model = Model(examples.find_simple_bar())
print(model)
I always get the following Error:
Traceback (most recent call last):
File ~\virt3\Lib\site-packages\ansys\dpf\core\errors.py:101 in wrapper
out = func(*args, **kwargs)
File ~\virt3\Lib\site-packages\ansys\dpf\core\model.py:505 in result_info
self._cache_result_info()
File ~\virt3\Lib\site-packages\ansys\dpf\core\model.py:283 in _cache_result_info
self._result_info = self._load_result_info()
File ~\virt3\Lib\site-packages\ansys\dpf\core\model.py:430 in _load_result_info
raise e
File ~\virt3\Lib\site-packages\ansys\dpf\core\model.py:424 in _load_result_info
result_info = op.get_output(0, types.result_info)
File ~\virt3\Lib\site-packages\ansys\dpf\core\dpf_operator.py:543 in get_output
internal_obj = type_tuple[1](self, pin)
File ~\virt3\Lib\site-packages\ansys\dpf\gate\generated\operator_capi.py:617 in operator_getoutput_result_info
raise errors.DPFServerException(sError.value)
DPFServerException: ResultInfoProvider:2<-Data sources not defined
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
Cell In[3], line 1
print(model)
File ~\virt3\Lib\site-packages\ansys\dpf\core\model.py:203 in str
txt += str(self.results)
File ~\virt3\Lib\site-packages\ansys\dpf\core\model.py:157 in results
self.metadata.result_info,
File ~\virt3\Lib\site-packages\ansys\dpf\core\errors.py:106 in wrapper
raise DPFServerException(details)
DPFServerException: ResultInfoProvider:2<-Data sources not defined
In my virtual environment the following packages are installed:
(virt3) C:\Users\salgasinger>pip list
Package Version
ansys-dpf-core 0.12.2
asttokens 2.4.1
cachetools 5.3.3
certifi 2024.6.2
charset-normalizer 3.3.2
cloudpickle 3.0.0
colorama 0.4.6
comm 0.2.2
contourpy 1.2.1
cycler 0.12.1
debugpy 1.8.1
decorator 5.1.1
executing 2.0.1
fonttools 4.53.0
google-api-core 2.19.0
google-api-python-client 2.133.0
google-auth 2.30.0
google-auth-httplib2 0.2.0
googleapis-common-protos 1.63.1
grpcio 1.64.1
httplib2 0.22.0
idna 3.7
imageio 2.28.0
imageio-ffmpeg 0.5.1
importlib_metadata 7.1.0
ipykernel 6.29.4
ipython 8.25.0
jedi 0.19.1
jupyter_client 8.6.2
jupyter_core 5.7.2
kiwisolver 1.4.5
matplotlib 3.9.0
matplotlib-inline 0.1.7
nest-asyncio 1.6.0
numpy 1.26.4
packaging 24.1
parso 0.8.4
pillow 10.3.0
pip 24.0
platformdirs 4.2.2
pooch 1.8.2
prompt_toolkit 3.0.47
proto-plus 1.23.0
protobuf 4.25.3
psutil 5.9.8
pure-eval 0.2.2
pyasn1 0.6.0
pyasn1_modules 0.4.0
Pygments 2.18.0
pyparsing 3.1.2
python-dateutil 2.9.0.post0
pyvista 0.43.9
pywin32 306
pyzmq 26.0.3
requests 2.32.3
rsa 4.9
scooby 0.10.0
setuptools 65.5.0
six 1.16.0
spyder-kernels 2.5.2
stack-data 0.6.3
tornado 6.4.1
tqdm 4.66.4
traitlets 5.14.3
typing_extensions 4.12.2
uritemplate 4.1.1
urllib3 2.2.1
vtk 9.3.0
wcwidth 0.2.13
zipp 3.19.2
I've already seen in this portal several discussions about DPFServerExceptions but with the informations i was not able to solve the problem.
Does anybody know whats the problem in this case?
Thank you
Stefan