Description
🔍 Before submitting the issue
- I have searched among the existing issues
- I am using a Python virtual environment
🐞 Description of the bug
When creating an ADR service, version 0.9.0 is able to auto detect the Ansys installation location if it is not installed at the default location. However, 0.10.0 isn't and will assign "None" to ansys_installation without any relevant error messages, resulting in a confusing exit.
Recreating a new venv and build from scratch won't solve this issue.
📝 Steps to reproduce
import ansys.dynamicreporting.core as adr
a = adr.Service(db_directory=r'C:\temp4', port=8003)
print(f"!!!!! + {a._ansys_installation}")
Running the script under 0.9.0 will result in:
!!!!! + D:\AnsysSW\ANSYS Inc\v251\CEI
However, 0.10.0 prints:
!!!!! + None
So the old version can detect the installation if it is installed somewhere else, but the current version can't. But if the ansys installation is in the default location, the issue won't happen. That's said, the potential bug only occurs when the ansys installation is NOT in the default location.
💻 Which operating system are you using?
Windows
📀 Which ANSYS version are you using?
Both 0.9.0 and 0.10.0
🐍 Which Python version are you using?
3.11
📦 Installed packages
accessible-pygments==0.0.5
alabaster==1.0.0
-e git+ssh://[email protected]/ansys/pydynamicreporting.git@7fd9d1e86e968dd77c4bdbd1690f876a1947f0df#egg=ansys_dynamicreporting_core
ansys-sphinx-theme==1.1.1
asgiref==3.8.1
asttokens==3.0.0
babel==2.17.0
backports.tarfile==1.2.0
beautifulsoup4==4.13.3
black==25.1.0
build==1.2.2.post1
certifi==2025.1.31
cfgv==3.4.0
charset-normalizer==3.4.1
click==8.1.8
colorama==0.4.6
coverage==7.6.12
decorator==5.1.1
distlib==0.3.9
Django==4.2.19
django-guardian==2.4.0
djangorestframework==3.15.2
docker==7.1.0
docutils==0.21.2
executing==2.2.0
filelock==3.17.0
id==1.5.0
identify==2.6.7
idna==3.10
imagesize==1.4.1
importlib_metadata==8.6.1
iniconfig==2.0.0
ipdb==0.13.13
ipython==8.32.0
isort==6.0.0
jaraco.classes==3.4.0
jaraco.context==6.0.1
jaraco.functools==4.1.0
jedi==0.19.2
Jinja2==3.1.5
keyring==25.6.0
lxml==5.3.1
markdown-it-py==3.0.0
MarkupSafe==3.0.2
matplotlib-inline==0.1.7
mdurl==0.1.2
more-itertools==10.6.0
mypy-extensions==1.0.0
nh3==0.2.20
nodeenv==1.9.1
numpy==2.2.3
numpydoc==1.8.0
packaging==24.2
pandas==2.2.3
parso==0.8.4
pathspec==0.12.1
patsy==1.0.1
pdf2image==1.17.0
pillow==10.4.0
platformdirs==4.3.6
pluggy==1.5.0
pre_commit==4.1.0
prompt_toolkit==3.0.50
psutil==6.0.0
psycopg==3.2.4
psycopg-binary==3.2.4
pure_eval==0.2.3
pydata-sphinx-theme==0.15.4
Pygments==2.19.1
pypng==0.20220715.0
pyproject_hooks==1.2.0
pytest==8.3.4
pytest-cov==6.0.0
python-dateutil==2.9.0.post0
python-pptx==0.6.19
pytz==2025.1
pywin32==308
pywin32-ctypes==0.2.3
PyYAML==6.0.2
readme_renderer==44.0
requests==2.32.3
requests-toolbelt==1.0.0
rfc3986==2.0.0
rich==13.9.4
scipy==1.15.1
six==1.17.0
snowballstemmer==2.2.0
soupsieve==2.6
Sphinx==8.0.2
sphinx-copybutton==0.5.2
sphinx-gallery==0.18.0
sphinxcontrib-applehelp==2.0.0
sphinxcontrib-devhelp==2.0.0
sphinxcontrib-htmlhelp==2.1.0
sphinxcontrib-jsmath==1.0.1
sphinxcontrib-qthelp==2.0.0
sphinxcontrib-serializinghtml==2.0.0
sqlparse==0.5.3
stack-data==0.6.3
statsmodels==0.14.4
tabulate==0.9.0
traitlets==5.14.3
twine==6.1.0
typing_extensions==4.12.2
tzdata==2025.1
tzlocal==5.3
urllib3==2.3.0
virtualenv==20.29.2
wcwidth==0.2.13
whatsonpypi==0.3.7
XlsxWriter==3.2.2
zipp==3.21.0