Running example throws DPFServerException

Hey,

Hello !

When running a simple example from the doc I get -->

ansys.dpf.gate.errors.DPFServerException: ResultInfoProvider:2<-Data sources not defined

I get the same error when trying to load one of my .rst.

I did have a look at https://dpf.docs.pyansys.com/version/stable/getting_started/compatibility.html

I also did a pip install --upgrade --force-reinstall ansys-dpf-core

Yes my AWP_ROOT is set up correctly.

I run everything with administrator right.

What am I missing ?

Tagged:

Answers

  • Pernelle Marone-Hitz
    Pernelle Marone-Hitz Member, Moderator, Employee Posts: 732
    First Comment First Anniversary Ansys Employee Solution Developer Community of Practice Member

    Hi @Spr_Alex , can you please provide the following information?

    • What OS are you using?
    • What is the the DPF server you are using: shipped with standard installation or standalone server?
    • What is the version of the DPF client?
    • What is the Python version that you are using?
    • Can you run python -m pip list and copy/paste the result?
      Many thanks.
  • Spr_Alex
    Spr_Alex Member Posts: 4
    First Comment Photogenic

    Hello,

    What OS are you using?

    --> Win 10 x64

    What is the the DPF server you are using: shipped with standard installation or standalone server?

    --> Shipped standard

    What is the version of the DPF client?

    --> 0.10.0 if I understood correctly

    What is the Python version that you are using?

    --> 3.9

    Can you run python -m pip list and copy/paste the result?
    Many thanks.

    python -m pip list
    Package Version


    aiohttp 3.8.4
    aiosignal 1.3.1
    ansys-api-mechanical 0.1.1
    ansys-api-platform-instancemanagement 1.0.0
    ansys-dpf-core 0.7.0
    ansys-dpf-gate 0.4.1
    ansys-dpf-gatebin 0.4.1
    ansys-dpf-post 0.2.5
    ansys-grpc-dpf 0.8.1
    ansys-mapdl-reader 0.52.9
    ansys-mechanical-core 0.10.6
    ansys-mechanical-env 0.1.2
    ansys-platform-instancemanagement 1.1.2
    ansys-pythonnet 3.1.0rc3
    ansys-tools-path 0.4.1
    anyio 3.6.2
    appdirs 1.4.4
    argon2-cffi 21.3.0
    argon2-cffi-bindings 21.2.0
    arrow 1.2.3
    asttokens 2.2.1
    async-timeout 4.0.2
    attrs 22.2.0
    autobahn 23.1.2
    backcall 0.2.0
    beautifulsoup4 4.11.2
    bleach 6.0.0
    cachetools 5.3.2
    certifi 2024.2.2
    cffi 1.15.1
    charset-normalizer 3.3.2
    click 8.1.7
    clr-loader 0.2.6
    colorama 0.4.6
    comm 0.1.2
    cryptography 39.0.1
    cycler 0.11.0
    debugpy 1.6.6
    decorator 5.1.1
    defusedxml 0.7.1
    executing 1.2.0
    fastjsonschema 2.16.2
    fonttools 4.29.1
    fqdn 1.5.1
    frozenlist 1.3.3
    future 0.18.3
    google-api-core 2.16.1
    google-api-python-client 2.116.0
    google-auth 2.27.0
    google-auth-httplib2 0.2.0
    googleapis-common-protos 1.62.0
    grpcio 1.60.1
    httplib2 0.22.0
    hyperlink 21.0.0
    idna 3.6
    imageio 2.25.1
    importlib-metadata 7.0.1
    ipykernel 6.21.1
    ipython 8.10.0
    ipython-genutils 0.2.0
    ipywidgets 8.0.4
    isoduration 20.11.0
    jedi 0.18.2
    Jinja2 3.1.2
    jsonpointer 2.3
    jsonschema 4.17.3
    jupyter 1.0.0
    jupyter_client 8.0.2
    jupyter-console 6.5.0
    jupyter_core 5.2.0
    jupyter-events 0.6.3
    jupyter_server 2.2.1
    jupyter-server-proxy 3.2.2
    jupyter_server_terminals 0.4.4
    jupyterlab-pygments 0.2.2
    jupyterlab-widgets 3.0.5
    kiwisolver 1.3.2
    MarkupSafe 2.1.2
    matplotlib 3.5.1
    matplotlib-inline 0.1.6
    mistune 2.0.5
    multidict 6.0.4
    nbclassic 0.5.1
    nbclient 0.7.2
    nbconvert 7.2.9
    nbformat 5.7.3
    nest-asyncio 1.5.6
    notebook 6.5.2
    notebook_shim 0.2.2
    numpy 1.26.3
    numpy-stl 2.16.3
    OMPython 3.4.0
    packaging 23.2
    pandocfilters 1.5.0
    parso 0.8.3
    pickleshare 0.7.5
    Pillow 9.0.1
    pip 23.3.2
    platformdirs 4.2.0
    pooch 1.6.0
    prometheus-client 0.16.0
    prompt-toolkit 3.0.36
    protobuf 4.25.2
    psutil 5.9.8
    pure-eval 0.2.2
    pyasn1 0.5.1
    pyasn1-modules 0.3.0
    pycparser 2.21
    Pygments 2.14.0
    pyparsing 3.1.1
    pyrsistent 0.19.3
    python-dateutil 2.8.2
    python-json-logger 2.0.5
    python-utils 3.1.0
    pyvista 0.38.2
    pywin32 305
    pywinpty 2.0.10
    PyYAML 6.0
    pyzmq 25.0.0
    qtconsole 5.4.0
    QtPy 2.3.0
    requests 2.31.0
    rfc3339-validator 0.1.4
    rfc3986-validator 0.1.1
    rsa 4.9
    scooby 0.7.1
    Send2Trash 1.8.0
    setuptools 69.0.3
    simpervisor 0.4
    six 1.16.0
    sniffio 1.3.0
    soupsieve 2.3.2.post1
    stack-data 0.6.2
    terminado 0.17.1
    tinycss2 1.2.1
    tk 0.1.0
    tornado 6.2
    tqdm 4.66.1
    traitlets 5.9.0
    txaio 23.1.1
    uri-template 1.2.0
    uritemplate 4.1.1
    urllib3 2.2.0
    vpython 7.6.4
    vtk 9.2.6
    wcwidth 0.2.6
    webcolors 1.12
    webencodings 0.5.1
    websocket-client 1.5.1
    widgetsnbextension 4.0.5
    yarl 1.8.2
    zipp 3.17.0

    Thanks,

  • Pernelle Marone-Hitz
    Pernelle Marone-Hitz Member, Moderator, Employee Posts: 732
    First Comment First Anniversary Ansys Employee Solution Developer Community of Practice Member

    @Spr_Alex Thanks. I forgot to ask what version of DPF server you are using (version of your standard install)?

  • Spr_Alex
    Spr_Alex Member Posts: 4
    First Comment Photogenic

    Latest so 7.0 !

  • Pernelle Marone-Hitz
    Pernelle Marone-Hitz Member, Moderator, Employee Posts: 732
    First Comment First Anniversary Ansys Employee Solution Developer Community of Practice Member

    Thanks @Spr_Alex . I believe there was an issue with your installation. From the pip list command I see that you are using version 0.7.0 of the DPF client (and not 0.10.0 like you thought). If you are using a virtual environment please make sure you did install the client in that environment.
    Starting from version 0.10.0 of dpf-core there has been some simplification with the modules, where ansys-dpf-gate, ansys-dpf-gatebin, and ansys-grpc-dpf dependencies are directly into ansys-dpf-core module. Therefore, these modules should not appear in your pip list. I would recommend uninstalling all pydpf modules, and then proceed to reinstalling only ansys-dpf-core. See https://github.com/ansys/pydpf-core/releases for more information.

  • Spr_Alex
    Spr_Alex Member Posts: 4
    First Comment Photogenic

    Hello,

    Many thanks, it did the job !

    Regards

  • Pernelle Marone-Hitz
    Pernelle Marone-Hitz Member, Moderator, Employee Posts: 732
    First Comment First Anniversary Ansys Employee Solution Developer Community of Practice Member

    Awesome! Welcome to the PyAnsys world :-) Hope you have fun with it.