Running example throws DPFServerException

Options

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: 827
    First Comment First Anniversary Ansys Employee Solution Developer Community of Practice Member
    Options

    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
    Options

    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: 827
    First Comment First Anniversary Ansys Employee Solution Developer Community of Practice Member
    Options

    @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
    Options

    Latest so 7.0 !

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

    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
    Options

    Hello,

    Many thanks, it did the job !

    Regards

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

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

  • Thomas
    Thomas Member Posts: 3
    First Comment
    Options

    Hello,

    I have a similar question, hopefully you can help me as well.
    I get the error: DPFServerException: ResultInfoProvider:2<-Data sources not defined.

    python -m pip list:
    Package Version


    ansys-api-mapdl 0.5.1
    ansys-api-platform-instancemanagement 1.0.0
    ansys-dpf-core 0.11.0
    ansys-mapdl-core 0.68.0
    ansys-mapdl-reader 0.53.0
    ansys-math-core 0.1.3
    ansys-platform-instancemanagement 1.1.2
    ansys-tools-path 0.4.1
    appdirs 1.4.4
    asttokens 2.4.1
    cachetools 5.3.3
    certifi 2024.2.2
    charset-normalizer 3.3.2
    click 8.1.7
    cma 3.3.0
    contourpy 1.2.0
    corner 2.2.2
    cycler 0.12.1
    decorator 5.1.1
    dill 0.3.8
    dynesty 1.2.3
    emcee 3.1.4
    executing 2.0.1
    fonttools 4.50.0
    geomdl 5.3.1
    google-api-core 2.17.1
    google-api-python-client 2.122.0
    google-auth 2.28.2
    google-auth-httplib2 0.2.0
    googleapis-common-protos 1.63.0
    GPyReg 1.0.2
    grpcio 1.62.1
    httplib2 0.22.0
    idna 3.6
    imageio 2.34.0
    importlib_metadata 7.0.2
    iniconfig 2.0.0
    ipython 8.22.2
    jedi 0.19.1
    kiwisolver 1.4.5
    matplotlib 3.8.3
    matplotlib-inline 0.1.6
    nestle 0.2.0
    numpy 1.26.4
    packaging 24.0
    pandas 2.2.1
    parso 0.8.3
    pexpect 4.9.0
    pillow 10.2.0
    pip 23.2.1
    platformdirs 4.2.0
    plotly 5.20.0
    pluggy 1.4.0
    pooch 1.8.1
    prompt-toolkit 3.0.43
    protobuf 3.20.3
    psutil 5.9.8
    ptyprocess 0.7.0
    pure-eval 0.2.2
    pyansys-tools-versioning 0.5.0
    pyasn1 0.5.1
    pyasn1-modules 0.3.0
    Pygments 2.17.2
    pyiges 0.3.1
    pyparsing 3.1.2
    pytest 8.1.1
    pytest-mock 3.12.0
    pytest-rerunfailures 14.0
    python-dateutil 2.9.0.post0
    pytz 2024.1
    PyVBMC 1.0.2
    pyvista 0.43.4
    requests 2.31.0
    rsa 4.9
    scipy 1.12.0
    scooby 0.9.2
    setuptools 65.5.0
    six 1.16.0
    stack-data 0.6.3
    tabulate 0.9.0
    taralli 0.8.4
    tenacity 8.2.3
    toolz 0.12.1
    tqdm 4.66.2
    traitlets 5.14.2
    tzdata 2024.1
    uritemplate 4.1.1
    urllib3 2.2.1
    vtk 9.3.0
    wcwidth 0.2.13
    zipp 3.18.1

    OS:
    NAME="openSUSE Leap"
    VERSION="15.5"
    ID="opensuse-leap"
    ID_LIKE="suse opensuse"
    VERSION_ID="15.5"
    PRETTY_NAME="openSUSE Leap 15.5"
    ANSI_COLOR="0;32"
    CPE_NAME="cpe:/o:opensuse:leap:15.5"
    BUG_REPORT_URL="https://bugs.opensuse.org"
    HOME_URL="https://www.opensuse.org/"
    DOCUMENTATION_URL="https://en.opensuse.org/Portal:Leap"
    LOGO="distributor-logo-Leap"

    dpf server
    dpf server is the one shipped with the ansys installation I gues, how can i check?

    kind regards,
    Thomas

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

    Hello,
    If you haven't installed anything specific for the server then yes it's the one shipped with the Standard installation. What version of WB are you using ? That would enable to determine the server version.
    Alternatively, you can type dpf.SERVER.info and it should return you the info.
    What version of Python are you using ?
    Can you also share the first lines of your code ?

  • Thomas
    Thomas Member Posts: 3
    First Comment
    edited March 20
    Options

    Hi,
    Thanks for your fast reply! WB version is 2024R1

    Code

    from ansys.dpf import core as dpf
    from ansys.dpf.core import Model, examples
    
    dpf.start_local_server(ansys_path="/Applications/Ansys/2024R1/ansys_inc/v241")
    model = Model(examples.find_simple_bar())
    print(model)
    

    dpf.server.info
    In [4]: dpf.SERVER.info
    Out[4]:
    {'server_ip': '',
    'server_port': None,
    'server_process_id': 44367,
    'server_version': '7.1',
    'os': 'posix',
    'path': '/Applications/Ansys/2024R1/ansys_inc/v241'}

    python version
    3.12
    but also tried 3.7 3.8 3.9 and 3.6
    3.6 goes a bit better, that version is incompatible with other packages

    kind regards,

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

    You version of the server and the client are compatible so the problem does not lie there.
    You probably don't need to start the local server explicitly.
    Supported Python versions are ">=3.9, <4".
    I'll ping a colleague for further ideas.

  • Thomas
    Thomas Member Posts: 3
    First Comment
    Options

    for some reason it doesn't work with the dpf server from the ansys installation. In my venv I installed ansys_dpf_server_lin_v2024.1.pre0.zip, now it seem to work

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

    @Paul Profizi Do you know what could be happening here?

  • Paul Profizi
    Paul Profizi Member, Employee Posts: 11
    5 Likes First Comment First Anniversary First Answer
    Options

    Hi @Pernelle Marone-Hitz, Hi @Thomas,
    sorry for the late reply,

    As far as I understood, the problem is with ansys-dpf-core==0.11.0 with DPF in ANSYS 2024R1 (7.1) for Python 3.12 on openSUSE Leap 15.5.

    The error seems to indicate it could not locate the example file.
    You can try printing the path returned by examples.find_simple_bar() and verify it is accessible.

    The fact it works for 2024.1.pre0 means however that it is probably not the issue.

    Could you potentially update to ansys-dpf-core==0.12.0?

    I think otherwise Pernelle we'll have to open an issue and check for support on openSUSE Leap 15.5.

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

    If the issue is linked to openSuse Leap 15.5, I'm afraid that there is not much we could do, as it is not a supported platform. Supported platforms per version are available here: https://www.ansys.com/it-solutions/platform-support.

  • Lucas
    Lucas Member Posts: 1
    First Comment
    Options

    Hello, I have the same problem running an example:
    ansys.dpf.gate.errors.DPFServerException: ResultInfoProvider:2<-Data sources not defined

    Could you please help me.
    Package Version


    ansys-dpf-core 0.12.1
    cachetools 5.3.3
    certifi 2024.2.2
    charset-normalizer 3.3.2
    colorama 0.4.6
    google-api-core 2.19.0
    google-api-python-client 2.129.0
    google-auth 2.29.0
    google-auth-httplib2 0.2.0
    googleapis-common-protos 1.63.0
    grpcio 1.64.0
    httplib2 0.22.0
    idna 3.7
    importlib_metadata 7.1.0
    numpy 1.26.4
    packaging 24.0
    pip 24.0
    proto-plus 1.23.0
    protobuf 4.25.3
    psutil 5.9.8
    pyasn1 0.6.0
    pyasn1_modules 0.4.0
    pyparsing 3.1.2
    requests 2.32.2
    rsa 4.9
    scooby 0.10.0
    tqdm 4.66.4
    uritemplate 4.1.1
    urllib3 2.2.1
    zipp 3.18.2

    OS: Windows 10 x64
    Python: 3.9.13
    Ansys V22 R2
    I do not know the version of my dpf server

    Kind Regards,
    Lucas