modeler.open_file() freezes Discovery
Closed this issue ยท 7 comments
๐ Before submitting the issue
- I have searched among the existing issues
- I am using a Python virtual environment
๐ Description of the bug
modeler.open_file("XX.scdoc") works fine on SC but it doesn't work on Discovery
๐ Steps to reproduce
Launch ApiServer with Discovery
open a s.scdoc file with modeler.open_file()
๐ป Which operating system are you using?
Windows
๐ Which ANSYS version are you using?
Discovery V242
๐ Which Python version are you using?
3.10
๐ฆ Installed packages
accessible-pygments==0.0.4
aiohttp==3.8.4
aiosignal==1.3.1
alabaster==0.7.13
ansys-api-dbu==0.2.2
ansys-api-geometry==0.3.5
ansys-api-platform-instancemanagement==1.0.0
-e git+https://github.com/ansys/pyansys-geometry.git@a97d72a7c66279ab24bf83d51ee7d0bd7140cc9b#egg=ansys_geometry_core
ansys-platform-instancemanagement==1.1.2
ansys-sphinx-theme==0.10.5
ansys-tools-path==0.3.1
anyascii==0.3.2
anyio==3.7.1
argon2-cffi==21.3.0
argon2-cffi-bindings==21.2.0
arrow==1.2.3
astroid==2.15.5
asttokens==2.2.1
async-lru==2.0.4
async-timeout==4.0.2
attrs==23.1.0
Babel==2.12.1
backcall==0.2.0
beartype==0.15.0
beautifulsoup4==4.12.2
bleach==6.0.0
bokeh==3.1.1
cachetools==5.3.1
certifi==2023.5.7
cffi==1.15.1
cfgv==3.3.1
chardet==5.1.0
charset-normalizer==3.1.0
colorama==0.4.6
comm==0.1.3
contourpy==1.1.0
coverage==7.2.7
cycler==0.11.0
debugpy==1.6.7
decorator==5.1.1
defusedxml==0.7.1
distlib==0.3.6
docker==6.1.3
docutils==0.19
exceptiongroup==1.1.2
executing==1.2.0
fastjsonschema==2.17.1
filelock==3.12.2
fonttools==4.40.0
fqdn==1.5.1
frozenlist==1.3.3
google-api-core==2.11.1
google-api-python-client==2.97.0
google-auth==2.21.0
google-auth-httplib2==0.1.0
googleapis-common-protos==1.60.0
grpcio==1.50.0
grpcio-health-checking==1.48.2
httplib2==0.22.0
identify==2.5.26
idna==3.4
imagesize==1.4.1
importlib-metadata==6.7.0
iniconfig==2.0.0
ipycanvas==0.13.1
ipyevents==2.0.1
ipykernel==6.24.0
ipython==8.14.0
ipython-genutils==0.2.0
ipyvtklink==0.2.3
ipywidgets==7.7.5
isoduration==20.11.0
jedi==0.18.2
Jinja2==3.1.2
json5==0.9.14
jsonpointer==2.4
jsonschema==4.18.0
jsonschema-specifications==2023.6.1
jupyter-events==0.6.3
jupyter-lsp==2.2.0
jupyter-sphinx==0.4.0
jupyter_client==8.3.0
jupyter_core==5.3.1
jupyter_server==2.7.0
jupyter_server_terminals==0.4.4
jupyterlab==4.0.5
jupyterlab-pygments==0.2.2
jupyterlab-widgets==1.1.4
jupyterlab_server==2.24.0
jupytext==1.15.1
kiwisolver==1.4.4
lazy-object-proxy==1.9.0
linkify-it-py==2.0.2
Markdown==3.4.3
markdown-it-py==3.0.0
MarkupSafe==2.1.3
matplotlib==3.7.2
matplotlib-inline==0.1.6
mdit-py-plugins==0.4.0
mdurl==0.1.2
mistune==3.0.1
multidict==6.0.4
myst-parser==2.0.0
nbclassic==1.0.0
nbclient==0.8.0
nbconvert==7.8.0
nbformat==5.9.0
nbsphinx==0.9.3
nest-asyncio==1.5.6
nodeenv==1.8.0
notebook==7.0.2
notebook_shim==0.2.3
numpy==1.25.2
numpydoc==1.5.0
overrides==7.3.1
packaging==23.1
pandas==2.0.3
pandocfilters==1.5.0
panel==1.2.1
param==1.13.0
parso==0.8.3
pickleshare==0.7.5
Pillow==10.0.0
Pint==0.22
platformdirs==3.8.0
pluggy==1.2.0
pooch==1.7.0
pre-commit==3.3.3
prometheus-client==0.17.0
prompt-toolkit==3.0.39
protobuf==3.20.3
protoc-gen-swagger==0.1.0
psutil==5.9.5
pure-eval==0.2.2
pyasn1==0.5.0
pyasn1-modules==0.3.0
pycparser==2.21
pydata-sphinx-theme==0.13.3
Pygments==2.15.1
pyparsing==3.0.9
pyproject-api==1.5.2
pytest==7.4.0
pytest-cov==4.1.0
pytest-xvfb==3.0.0
pytest_pyvista==0.1.8
python-dateutil==2.8.2
python-json-logger==2.0.7
pytz==2023.3
PyVirtualDisplay==3.0
pyvista==0.41.1
pyviz-comms==2.3.2
pywin32==306
pywinpty==2.0.10
PyYAML==6.0
pyzmq==25.1.0
referencing==0.29.1
requests==2.31.0
rfc3339-validator==0.1.4
rfc3986-validator==0.1.1
rpds-py==0.8.7
rsa==4.9
scipy==1.11.2
scooby==0.7.2
Send2Trash==1.8.2
six==1.16.0
sniffio==1.3.0
snowballstemmer==2.2.0
soupsieve==2.4.1
Sphinx==7.1.1
sphinx-autoapi==2.1.1
sphinx-copybutton==0.5.2
sphinx-gallery==0.7.0
sphinx-jinja==2.0.2
sphinx_autodoc_typehints==1.22
sphinx_design==0.5.0
sphinxcontrib-applehelp==1.0.4
sphinxcontrib-devhelp==1.0.2
sphinxcontrib-htmlhelp==2.0.1
sphinxcontrib-jsmath==1.0.1
sphinxcontrib-qthelp==1.0.3
sphinxcontrib-serializinghtml==1.1.5
stack-data==0.6.2
terminado==0.17.1
tinycss2==1.2.1
toml==0.10.2
tomli==2.0.1
tornado==6.3.2
tox==4.6.3
tqdm==4.65.0
traitlets==5.9.0
trame==3.2.4
trame-client==2.11.2
trame-components==2.1.1
trame-deckgl==2.0.2
trame-markdown==2.0.2
trame-matplotlib==2.0.2
trame-plotly==2.1.1
trame-rca==0.3.1
trame-router==2.0.2
trame-server==2.11.7
trame-simput==2.3.2
trame-vega==2.0.3
trame-vtk==2.5.8
trame-vuetify==2.3.1
typing_extensions==4.7.1
tzdata==2023.3
uc-micro-py==1.0.2
uri-template==1.3.0
uritemplate==4.1.1
urllib3==1.26.16
virtualenv==20.23.1
vtk==9.2.6
wcwidth==0.2.6
webcolors==1.13
webencodings==0.5.1
websocket-client==1.6.1
widgetsnbextension==3.6.4
wrapt==1.15.0
wslink==1.11.1
xyzservices==2023.5.0
yarl==1.9.2
zipp==3.15.0
Seems to me like something that might have to be investigated server-side @umutsoysalansys @b-matteo
@umutsoysalansys - opening files with SpaceClaim seems to work just fine. Can you verify again?
@RobPasMue it is working in SC it is not working with Discovery
Hey @umutsoysalansys - can you share the file you are having problems with?
Just ran the following code:
import os
from ansys.geometry.core import launch_modeler_with_discovery
# Launch modeler
modeler = launch_modeler_with_discovery()
# Read design from file - do not upload to server, not needed since it is local
file_path = os.path.join(os.path.dirname(__file__), "my_design.scdoc")
design = modeler.open_file(file_path, upload_to_server=False)
# Print the design
print(design)
And it works perfectly fine. Issue you are experiencing might be due to the fact that you are just passing the file name and not the entire path to the file. Give it a try and let me know if it works.
Closing due to inactivity