Transaction not working for pymechanical embedding
- Vorherrschende Sprache
- C#
- Sterne
- 0
- Forks
- 1
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
### 🔍 Before submitting the issue
- [X] I have searched among the existing issues
- [X] I am using a Python virtual environment
### 🐞 Description of the bug
**'Transaction' object does not support the context manager protocol**
Due to https://github.com/pythonnet/pythonnet/issues/79 Transaction is not working for embedded
### 📝 Steps to reproduce
Install pymechanical and use Transaction()
### 💻 Which operating system are you using?
Linux
### 📀 Which ANSYS version are you using?
232
### 🐍 Which Python version are you using?
3.10
### 📦 Installed packages
```shell
accessible-pygments==0.0.4
alabaster==0.7.13
ansys-api-mechanical==0.1.1
ansys-api-platform-instancemanagement==1.0.0
ansys-mechanical-core==0.10.4
ansys-platform-instancemanagement==1.1.2
ansys-pythonnet==3.1.0rc2
ansys-sphinx-theme==0.12.3
ansys-tools-path==0.3.1
anyio==4.0.0
appdirs==1.4.4
argon2-cffi==23.1.0
argon2-cffi-bindings==21.2.0
arrow==1.3.0
asttokens==2.4.0
async-lru==2.0.4
attrs==23.1.0
Babel==2.13.0
backcall==0.2.0
beautifulsoup4==4.12.2
bleach==6.1.0
bokeh==3.2.2
certifi==2023.7.22
cffi==1.16.0
cfgv==3.4.0
charset-normalizer==3.3.0
click==8.1.7
clr-loader==0.2.6
colorama==0.4.6
comm==0.1.4
contourpy==1.1.1
cycler==0.12.1
debugpy==1.8.0
decorator==5.1.1
defusedxml==0.7.1
distlib==0.3.7
docutils==0.20.1
executing==2.0.0
fastjsonschema==2.18.1
filelock==3.13.1
fonttools==4.43.1
fqdn==1.5.1
grpcio==1.59.0
identify==2.5.31
idna==3.4
imageio==2.31.5
imagesize==1.4.1
importlib-metadata==6.8.0
ipydatawidgets==4.3.5
ipykernel==6.25.2
ipython==8.16.1
ipywidgets==8.1.1
isoduration==20.11.0
jedi==0.19.1
Jinja2==3.1.2
json5==0.9.14
jsonpointer==2.4
jsonschema==4.19.1
jsonschema-specifications==2023.7.1
jupyter-events==0.8.0
jupyter-lsp==2.2.0
jupyter-sphinx==0.4.0
jupyter_client==8.4.0
jupyter_core==5.4.0
jupyter_server==2.8.0
jupyter_server_terminals==0.4.4
jupyterlab==4.0.7
jupyterlab-pygments==0.2.2
jupyterlab-widgets==3.0.9
jupyterlab_server==2.25.0
kiwisolver==1.4.5
linkify-it-py==2.0.2
livereload==2.6.3
Markdown==3.5
markdown-it-py==3.0.0
MarkupSafe==2.1.3
matplotlib==3.8.0
matplotlib-inline==0.1.6
mdit-py-plugins==0.4.0
mdurl==0.1.2
mistune==3.0.2
mpmath==1.3.0
nbclient==0.8.0
nbconvert==7.9.2
nbformat==5.9.2
nest-asyncio==1.5.8
nodeenv==1.8.0
notebook_shim==0.2.3
numpy==1.26.1
numpydoc==1.6.0
nupy==0.1.1
overrides==7.4.0
packaging==23.2
pandas==2.1.1
pandocfilters==1.5.0
panel==1.2.3
param==1.13.0
parso==0.8.3
pickleshare==0.7.5
Pillow==10.1.0
platformdirs==3.11.0
plotly==5.17.0
pooch==1.7.0
pre-commit==3.5.0
prometheus-client==0.17.1
prompt-toolkit==3.0.39
protobuf==3.20.3
psutil==5.9.6
pure-eval==0.2.2
pycparser==2.21
pydata-sphinx-theme==0.14.1
Pygments==2.16.1
pypandoc==1.11
pyparsing==3.1.1
python-dateutil==2.8.2
python-json-logger==2.0.7
pythreejs==2.4.2
pytz==2023.3.post1
pyvista==0.42.3
pyviz_comms==3.0.0
pywin32==306
pywinpty==2.0.12
PyYAML==6.0.1
pyzmq==25.1.1
referencing==0.30.2
requests==2.31.0
rfc3339-validator==0.1.4
rfc3986-validator==0.1.1
rpds-py==0.10.6
scooby==0.8.0
Send2Trash==1.8.2
six==1.16.0
sniffio==1.3.0
snowballstemmer==2.2.0
soupsieve==2.5
Sphinx==7.2.6
sphinx-autobuild==2021.3.14
sphinx-autodoc-typehints==1.24.0
sphinx-copybutton==0.5.1
sphinx-gallery==0.14.0
sphinx-notfound-page==1.0.0
sphinxcontrib-applehelp==1.0.7
sphinxcontrib-devhelp==1.0.5
sphinxcontrib-htmlhelp==2.0.4
sphinxcontrib-jsmath==1.0.1
sphinxcontrib-qthelp==1.0.6
sphinxcontrib-serializinghtml==1.1.9
sphinxemoji==0.2.0
stack-data==0.6.3
sympy==1.12
tabulate==0.9.0
tenacity==8.2.3
terminado==0.17.1
tinycss2==1.2.1
tornado==6.3.3
tqdm==4.66.1
traitlets==5.11.2
traittypes==0.2.1
types-python-dateutil==2.8.19.14
typing_extensions==4.8.0
tzdata==2023.3
uc-micro-py==1.0.2
uri-template==1.3.0
urllib3==2.0.7
virtualenv==20.24.6
vtk==9.2.6
wcwidth==0.2.8
webcolors==1.13
webencodings==0.5.1
websocket-client==1.6.4
widgetsnbextension==4.0.9
xyzservices==2023.10.0
zipp==3.17.0
```
Beitragsleitfaden
Rechercherichtung
Beginne damit, den gemeldeten Fehler unter Linux mit Python 3.10, pymechanical und Transaction() zu reproduzieren. Lies das verlinkte pythonnet issue 79 zur Einschränkung im eingebetteten Kontext und vergleiche es mit dem aktuellen Verhalten von ansys-pythonnet. Als abgeschlossen gilt die Aufgabe, wenn Transaction() das Context-Manager-Protokoll unterstützt, wenn pymechanical eingebettet ist.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- csharp, python
- Bereich
- developer-experience, tooling
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 30/100