Before submitting the issue
Description of the bug
When installing DPF standalone and trying to get the different dpf-server modules installed (through _paths_to_dpf_server_library_installs() function) , it happens the function crashes with error "AssertionError: SRE module mismatch".
This is the result of the mix of different python environment for whatever reason. This PR tries to mitigate this problem.
The python virtual environment providers tested are:
- poetry (with DPF standalone installed outside venv and inside venv)
- venv (with DPF standalone installed inside venv)
Steps To Reproduce
No reproducibility script has been found, but the error is not random.
Which Operating System causes the issue?
Windows, Linux
Which DPF/Ansys version are you using?
Ansys 2027 R1
Which Python version causes the issue?
3.13
Installed packages
a2wsgi==1.10.10
altgraph==0.17.5
annotated-doc==0.0.4
annotated-types==0.7.0
ansys-api-platform-instancemanagement==1.1.3
ansys-dpf-core==0.14.2
Editable install with no version control (ansys-dpf-server_2027_1_pre0==2027.1rc0)
-e \27.1
ansys-platform-instancemanagement==1.1.2
anyio==4.13.0
asgiref==3.11.1
bottle==0.13.4
certifi==2026.2.25
cffi==2.0.0
charset-normalizer==3.4.7
click==8.3.2
clr_loader==0.2.10
colorama==0.4.6
contourpy==1.3.3
coverage==7.13.5
cycler==0.12.1
Deprecated==1.3.1
dnspython==2.8.0
docutils==0.22.4
email-validator==2.3.0
fastapi==0.123.10
fastapi-cli==0.0.24
fonttools==4.62.1
googleapis-common-protos==1.74.0
grpcio==1.80.0
h11==0.16.0
httpcore==1.0.9
httptools==0.7.1
httpx==0.28.1
id==1.6.1
idna==3.11
importlib_metadata==8.4.0
iniconfig==2.3.0
jaraco.classes==3.4.0
jaraco.context==6.1.2
jaraco.functools==4.4.0
Jinja2==3.1.6
keyring==25.7.0
kiwisolver==1.5.0
markdown-it-py==4.0.0
MarkupSafe==3.0.3
matplotlib==3.10.8
mdurl==0.1.2
more-itertools==11.0.2
nh3==0.3.4
numpy==2.4.4
opentelemetry-api==1.27.0
opentelemetry-exporter-otlp==1.27.0
opentelemetry-exporter-otlp-proto-common==1.27.0
opentelemetry-exporter-otlp-proto-grpc==1.27.0
opentelemetry-exporter-otlp-proto-http==1.27.0
opentelemetry-instrumentation==0.48b0
opentelemetry-instrumentation-asgi==0.48b0
opentelemetry-instrumentation-fastapi==0.48b0
opentelemetry-instrumentation-logging==0.48b0
opentelemetry-proto==1.27.0
opentelemetry-sdk==1.27.0
opentelemetry-semantic-conventions==0.48b0
opentelemetry-util-http==0.48b0
packaging==26.0
pefile==2024.8.26
pillow==12.2.0
platformdirs==4.9.6
pluggy==1.6.0
pooch==1.9.0
protobuf==4.25.9
proxy_tools==0.1.0
psutil==7.2.2
pycparser==3.0
pydantic==2.13.0
pydantic-extra-types==2.11.1
pydantic-settings==2.13.1
pydantic_core==2.46.0
Pygments==2.20.0
pyinstaller==6.19.0
pyinstaller-hooks-contrib==2026.4
pyparsing==3.3.2
pytest==9.0.3
pytest-asyncio==1.3.0
pytest-cov==7.1.0
pytest-randomly==4.0.1
python-dateutil==2.9.0.post0
python-dotenv==1.2.2
python-multipart==0.0.26
pythonnet==3.0.5
pyvista==0.46.5
pywebview==6.2
pywin32-ctypes==0.2.3
PyYAML==6.0.3
readme_renderer==44.0
requests==2.33.1
requests-toolbelt==1.0.0
rfc3986==2.0.0
rich==15.0.0
rich-toolkit==0.19.7
scooby==0.11.0
setuptools==82.0.1
shellingham==1.5.4
six==1.17.0
starlette==0.50.0
tqdm==4.67.3
twine==6.2.0
typer==0.24.1
typing-inspection==0.4.2
typing_extensions==4.15.0
ujson==5.12.0
urllib3==2.6.3
uvicorn==0.38.0
vtk==9.5.2
watchfiles==1.1.1
websockets==16.0
wheel==0.45.1
wrapt==1.17.3
zipp==3.23.1
Before submitting the issue
Description of the bug
When installing DPF standalone and trying to get the different dpf-server modules installed (through
_paths_to_dpf_server_library_installs()function) , it happens the function crashes with error "AssertionError: SRE module mismatch".This is the result of the mix of different python environment for whatever reason. This PR tries to mitigate this problem.
The python virtual environment providers tested are:
Steps To Reproduce
No reproducibility script has been found, but the error is not random.
Which Operating System causes the issue?
Windows, Linux
Which DPF/Ansys version are you using?
Ansys 2027 R1
Which Python version causes the issue?
3.13
Installed packages
a2wsgi==1.10.10
altgraph==0.17.5
annotated-doc==0.0.4
annotated-types==0.7.0
ansys-api-platform-instancemanagement==1.1.3
ansys-dpf-core==0.14.2
Editable install with no version control (ansys-dpf-server_2027_1_pre0==2027.1rc0)
-e \27.1
ansys-platform-instancemanagement==1.1.2
anyio==4.13.0
asgiref==3.11.1
bottle==0.13.4
certifi==2026.2.25
cffi==2.0.0
charset-normalizer==3.4.7
click==8.3.2
clr_loader==0.2.10
colorama==0.4.6
contourpy==1.3.3
coverage==7.13.5
cycler==0.12.1
Deprecated==1.3.1
dnspython==2.8.0
docutils==0.22.4
email-validator==2.3.0
fastapi==0.123.10
fastapi-cli==0.0.24
fonttools==4.62.1
googleapis-common-protos==1.74.0
grpcio==1.80.0
h11==0.16.0
httpcore==1.0.9
httptools==0.7.1
httpx==0.28.1
id==1.6.1
idna==3.11
importlib_metadata==8.4.0
iniconfig==2.3.0
jaraco.classes==3.4.0
jaraco.context==6.1.2
jaraco.functools==4.4.0
Jinja2==3.1.6
keyring==25.7.0
kiwisolver==1.5.0
markdown-it-py==4.0.0
MarkupSafe==3.0.3
matplotlib==3.10.8
mdurl==0.1.2
more-itertools==11.0.2
nh3==0.3.4
numpy==2.4.4
opentelemetry-api==1.27.0
opentelemetry-exporter-otlp==1.27.0
opentelemetry-exporter-otlp-proto-common==1.27.0
opentelemetry-exporter-otlp-proto-grpc==1.27.0
opentelemetry-exporter-otlp-proto-http==1.27.0
opentelemetry-instrumentation==0.48b0
opentelemetry-instrumentation-asgi==0.48b0
opentelemetry-instrumentation-fastapi==0.48b0
opentelemetry-instrumentation-logging==0.48b0
opentelemetry-proto==1.27.0
opentelemetry-sdk==1.27.0
opentelemetry-semantic-conventions==0.48b0
opentelemetry-util-http==0.48b0
packaging==26.0
pefile==2024.8.26
pillow==12.2.0
platformdirs==4.9.6
pluggy==1.6.0
pooch==1.9.0
protobuf==4.25.9
proxy_tools==0.1.0
psutil==7.2.2
pycparser==3.0
pydantic==2.13.0
pydantic-extra-types==2.11.1
pydantic-settings==2.13.1
pydantic_core==2.46.0
Pygments==2.20.0
pyinstaller==6.19.0
pyinstaller-hooks-contrib==2026.4
pyparsing==3.3.2
pytest==9.0.3
pytest-asyncio==1.3.0
pytest-cov==7.1.0
pytest-randomly==4.0.1
python-dateutil==2.9.0.post0
python-dotenv==1.2.2
python-multipart==0.0.26
pythonnet==3.0.5
pyvista==0.46.5
pywebview==6.2
pywin32-ctypes==0.2.3
PyYAML==6.0.3
readme_renderer==44.0
requests==2.33.1
requests-toolbelt==1.0.0
rfc3986==2.0.0
rich==15.0.0
rich-toolkit==0.19.7
scooby==0.11.0
setuptools==82.0.1
shellingham==1.5.4
six==1.17.0
starlette==0.50.0
tqdm==4.67.3
twine==6.2.0
typer==0.24.1
typing-inspection==0.4.2
typing_extensions==4.15.0
ujson==5.12.0
urllib3==2.6.3
uvicorn==0.38.0
vtk==9.5.2
watchfiles==1.1.1
websockets==16.0
wheel==0.45.1
wrapt==1.17.3
zipp==3.23.1