ansys / pyedb

pyedb is a Python library to use the EDB client library.
https://edb.docs.pyansys.com/
MIT License
7 stars 4 forks source link

SIwave not starting on Linux via pyedb #678

Open kruglovIFX opened 2 months ago

kruglovIFX commented 2 months ago

Before submitting the issue

Description of the bug

Related to https://github.com/ansys/example-data/issues/269

PyAEDT 0.9-08, Linux RHEL 8.8

Error message:

DotNet Core correctly loaded. Launching Siwave Init Traceback (most recent call last):

Cell In[1], line 2 siwave = Siwave()

File /.../pyaedt/0.9-08/lib/python3.10/site-packages/pyedb/siwave.py:110 in init self._main.interpreter = _com

UnboundLocalError: local variable '_com' referenced before assignment

Steps To Reproduce

from pyedb.siwave import Siwave
siwave = Siwave() 

Which Operating System are you using?

Linux

Which Python version are you using?

3.10

Installed packages

alabaster==0.7.12 annotated-types==0.6.0 ansys-pythonnet==3.1.0rc3 arrow==1.2.3 astroid==2.14.2 asttokens==2.0.5 atomicwrites==1.4.0 attrs==23.1.0 autopep8==2.0.4 Babel==2.11.0 beautifulsoup4==4.12.2 binaryornot==0.4.4 black==24.3.0 bleach==4.1.0 Brotli==1.0.9 certifi==2024.2.2 cffi==1.16.0 chardet==4.0.0 charset-normalizer==2.0.4 click==8.1.7 click-plugins==1.1.1 cligj==0.7.2 cloudpickle==2.2.1 clr-loader==0.2.6 colorama==0.4.6 comm==0.2.1 contourpy==1.2.1 cookiecutter==2.6.0 cryptography==42.0.5 cycler==0.12.1 debugpy==1.6.7 decorator==5.1.1 defusedxml==0.7.1 diff-match-patch==20200713 dill==0.3.8 distro==1.9.0 docstring-to-markdown==0.11 docutils==0.18.1 dotnetcore2==3.1.23 et-xmlfile==1.1.0 exceptiongroup==1.2.0 executing==0.8.3 fastjsonschema==2.16.2 fiona==1.9.6 flake8==7.0.0 fonttools==4.51.0 fpdf2==2.7.8 geopandas==0.14.4 idna==3.7 imageio==2.34.1 imagesize==1.4.1 importlib-metadata==7.0.1 inflection==0.5.1 intervaltree==3.1.0 ipykernel==6.28.0 ipython==8.20.0 isort==5.9.3 jaraco.classes==3.2.1 jedi==0.18.1 jeepney==0.7.1 jellyfish==1.0.1 Jinja2==3.1.3 jsonschema==4.19.2 jsonschema-specifications==2023.12.1 jupyter_client==8.6.0 jupyter_core==5.5.0 jupyterlab-pygments==0.2.2 keyring==24.3.1 kiwisolver==1.4.5 lazy-object-proxy==1.10.0 markdown-it-py==2.2.0 MarkupSafe==2.1.3 matplotlib==3.8.4 matplotlib-inline==0.1.6 mccabe==0.7.0 mdurl==0.1.0 mistune==2.0.4 more-itertools==10.1.0 mypy-extensions==1.0.0 nbclient==0.8.0 nbconvert==7.10.0 nbformat==5.9.2 nest-asyncio==1.6.0 networkx==3.3 numpy==1.26.4 numpydoc==1.5.0 openpyxl==3.1.2 osmnx==1.9.3 packaging==23.2 pandas==2.2.2 pandocfilters==1.5.0 parso==0.8.3 pathspec==0.10.3 pexpect==4.8.0 pickleshare==0.7.5 pillow==10.3.0 pip==23.3.1 platformdirs==3.10.0 pluggy==1.0.0 plumbum==1.8.3 ply==3.11 pooch==1.8.1 prompt-toolkit==3.0.43 psutil==5.9.0 ptyprocess==0.7.0 pure-eval==0.2.2 pyaedt==0.9.8 pycodestyle==2.11.1 pycparser==2.21 pydantic==2.7.1 pydantic_core==2.18.2 pydocstyle==6.3.0 pyedb==0.10.0 pyflakes==3.2.0 Pygments==2.15.1 pylint==2.16.2 pylint-venv==3.0.3 pyls-spyder==0.4.0 pyparsing==3.1.2 pyproj==3.6.1 PyQt5==5.15.10 PyQt5-sip==12.13.0 PyQtWebEngine==5.15.6 PySocks==1.7.1 python-dateutil==2.8.2 python-lsp-black==2.0.0 python-lsp-jsonrpc==1.1.2 python-lsp-server==1.10.0 python-slugify==5.0.2 pytomlpp==1.0.13 pytoolconfig==1.2.6 pytz==2024.1 pyvista==0.43.7 pyxdg==0.27 PyYAML==6.0.1 pyzmq==25.1.2 QDarkStyle==3.2.3 qstylizer==0.2.2 QtAwesome==1.2.2 qtconsole==5.5.1 QtPy==2.4.1 referencing==0.30.2 requests==2.31.0 rich==13.3.5 rope==1.12.0 rpds-py==0.10.6 rpyc==6.0.0 Rtree==1.0.1 scikit-rf==1.0.0 scipy==1.13.0 scooby==0.10.0 SecretStorage==3.3.1 setuptools==69.5.1 shapely==2.0.4 sip==6.7.12 six==1.16.0 snowballstemmer==2.2.0 sortedcontainers==2.4.0 soupsieve==2.5 Sphinx==5.0.2 sphinxcontrib-applehelp==1.0.2 sphinxcontrib-devhelp==1.0.2 sphinxcontrib-htmlhelp==2.0.0 sphinxcontrib-jsmath==1.0.1 sphinxcontrib-qthelp==1.0.3 sphinxcontrib-serializinghtml==1.1.5 spyder==5.5.1 spyder-kernels==2.4.4 SRTM.py==0.3.7 stack-data==0.2.0 text-unidecode==1.3 textdistance==4.2.1 three-merge==0.1.1 tinycss2==1.2.1 toml==0.10.2 tomli==2.0.1 tomlkit==0.11.1 tornado==6.3.3 traitlets==5.14.3 typing_extensions==4.11.0 tzdata==2024.1 ujson==5.4.0 Unidecode==1.2.0 urllib3==2.2.1 utm==0.7.0 vtk==9.2.6 watchdog==2.1.6 wcwidth==0.2.13 webencodings==0.5.1 whatthepatch==1.0.2 wheel==0.43.0 wrapt==1.14.1 wurlitzer==3.0.2 yapf==0.40.2 zipp==3.17.0

svandenb-dev commented 2 months ago

Hi @kruglovIFX, we will have a look at this issue. Meanwhile this Class is aimed at using Siwave API, if you want to address Siwave automation we recommend using EDB which provides more capabilities and full headless workflow.

hui-zhou-a commented 2 weeks ago

@SMoraisAnsys PyEDB can launch SIwave from batch, but not through win32com on VM. Could you share your thought?