Skip to content

DPFServerException error when running example 06-distributed_stress_averaging.py #603

Open
@GuillemBarroso

Description

@GuillemBarroso

Before submitting the issue

  • I have checked for Compatibility issues
  • I have searched among the existing issues
  • I am using a Python virtual environment

Description of the bug

When running this example, the following error is obtained:

Traceback (most recent call last):
  File "c:\Users\gbarroso\repos\pydpf-core\examples\06-distributed-post\06-distributed_stress_averaging.py", line 97, in <module>
    config = ops.utility.merge_weighted_fields_containers.default_config()
  File "c:\users\gbarroso\repos\pydpf-core\ansys\dpf\core\operators\utility\merge_weighted_fields_containers.py", line 197, in default_config
    return Operator.default_config(
  File "c:\users\gbarroso\repos\pydpf-core\ansys\dpf\core\dpf_operator.py", line 494, in default_config
    return Config(operator_name=name, server=server)
  File "c:\users\gbarroso\repos\pydpf-core\ansys\dpf\core\config.py", line 72, in __init__
    opt = self.options
  File "c:\users\gbarroso\repos\pydpf-core\ansys\dpf\core\config.py", line 111, in options
    num_options = self._api.operator_config_get_num_config(self)
  File "C:\Users\gbarroso\repos\pydpf-core\venv\lib\site-packages\ansys\dpf\gate\generated\operator_config_capi.py", line 98, in operator_config_get_num_config
    raise errors.DPFServerException(sError.value)
ansys.dpf.gate.errors.DPFServerException: C-layer: Required type is incorrect

Steps To Reproduce

Run the example.

Which Operating System are you using?

Windows

Which Python version are you using?

3.10

Installed packages

Package Version Editable project location


aiohttp 3.8.3
aiosignal 1.2.0
alabaster 0.7.12
ansys-dpf-core 0.6.2.dev0 c:\users\gbarroso\repos\pydpf-core
ansys-dpf-gate 0.2.3
ansys-dpf-gatebin 0.2.3
ansys-grpc-dpf 0.5.2
ansys-sphinx-theme 0.6.1
apeye 1.2.0
appdirs 1.4.4
async-timeout 4.0.2
attrs 22.1.0
autodocsumm 0.2.9
Babel 2.10.3
beautifulsoup4 4.11.1
bleach 5.0.1
CacheControl 0.12.11
cachetools 5.2.0
certifi 2022.9.24
charset-normalizer 2.1.1
colorama 0.4.6
contourpy 1.0.5
cssutils 2.6.0
cycler 0.11.0
defusedxml 0.7.1
dict2css 0.3.0
docs 0.1.0
docutils 0.18.1
domdf-python-tools 3.5.0
entrypoints 0.4
enum-tools 0.9.0.post1
exceptiongroup 1.0.0
fastjsonschema 2.16.2
fonttools 4.38.0
frozenlist 1.3.1
google-api-core 2.10.2
google-api-python-client 2.65.0
google-auth 2.13.0
google-auth-httplib2 0.1.0
googleapis-common-protos 1.56.4
graphviz 0.20.1
grpcio 1.50.0
html5lib 1.1
httplib2 0.20.4
idna 3.4
imageio 2.22.2
imageio-ffmpeg 0.4.7
imagesize 1.4.1
iniconfig 1.1.1
Jinja2 3.1.2
jsonschema 4.16.0
jupyter_client 7.4.4
jupyter_core 4.11.2
jupyterlab-pygments 0.2.2
kiwisolver 1.4.4
livereload 2.6.3
lockfile 0.12.2
MarkupSafe 2.1.1
matplotlib 3.6.1
mistune 2.0.4
msgpack 1.0.4
multidict 6.0.2
natsort 8.2.0
nbclient 0.7.0
nbconvert 7.2.3
nbformat 5.7.0
nbsphinx 0.8.9
nest-asyncio 1.5.6
numpy 1.23.4
packaging 21.3
pandocfilters 1.5.0
Pillow 9.2.0
pip 22.2.2
platformdirs 2.5.2
pluggy 1.0.0
pockets 0.9.1
protobuf 3.19.6
psutil 5.9.3
pyasn1 0.4.8
pyasn1-modules 0.2.8
pydata-sphinx-theme 0.9.0
Pygments 2.13.0
pypandoc 1.9
pyparsing 3.0.9
pyrsistent 0.18.1
pytest 7.2.0
pytest-sphinx 0.5.0
python-dateutil 2.8.2
pytz 2022.5
pyvista 0.36.1
pywin32 304
pyzmq 24.0.1
requests 2.28.1
rsa 4.9
ruamel.yaml 0.17.21
ruamel.yaml.clib 0.2.7
scooby 0.6.0
setuptools 63.2.0
six 1.16.0
snowballstemmer 2.2.0
soupsieve 2.3.2.post1
Sphinx 5.1.1
sphinx-autobuild 2021.3.14
sphinx-autodoc-typehints 1.19.2
sphinx-copybutton 0.5.0
sphinx_design 0.3.0
sphinx-gallery 0.11.0
sphinx-jinja2-compat 0.2.0
sphinx-notfound-page 0.8.3
sphinx-prompt 1.5.0
sphinx-tabs 3.4.1
sphinx-toolbox 3.2.0
sphinxcontrib-applehelp 1.0.2
sphinxcontrib-devhelp 1.0.2
sphinxcontrib-htmlhelp 2.0.0
sphinxcontrib-jsmath 1.0.1
sphinxcontrib-napoleon 0.7
sphinxcontrib-qthelp 1.0.3
sphinxcontrib-serializinghtml 1.1.5
tabulate 0.9.0
tinycss2 1.2.1
tomli 2.0.1
tornado 6.2
tqdm 4.64.1
traitlets 5.5.0
typing_extensions 4.4.0
uritemplate 4.1.1
urllib3 1.26.12
vtk 9.2.2
webencodings 0.5.1
wslink 1.9.0
yarl 1.8.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingexamplesRelated to PyDPF-Core examples

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions