Replies: 2 comments 6 replies
-
|
Hi @atab-xyz |
Beta Was this translation helpful? Give feedback.
5 replies
-
|
That is an strange issue, because PyMAPDL does not use asyncio explicitly I believe. This issue is very likely coming from JupyterLab. Can you share the full traceback? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
trying to follow the PyMAPDL example:
Overview of PyMAPDL | Ansys Innovation Courses (exact course: Overview of Ansys PyMAPDL — Lesson 1)
https://www.youtube.com/watch?v=AmP_ipy2PhI&t=300s
have downloaded the jupyter notebook from Ansys courses.
https://ansys13.ansys.com/AnsysInnovationCourses/MBU/PyAnsys/GettingStartedWithPyMAPDL/OverviewOfPyMAPDL/plate_with_holes.zip
I see an error with regard to plotting.
local python: 3.11.8 (and 3.13.9)
pyansys 2025.2.5
ansys.mapdl.core 0.70.2 (and 0.71.3)
jupyterlab 4.5.1
jupyter1.1.1
pyvtk 0.15.8
pydpf 1.1.1
matplotlib 3.10.8
numpy 2.2.2
error happens with plotting, with the command line:
mapdl.vplot
and other plot commands, like eplot.
error happens with all the combinations of versions of python and ansys-mapdl-core above; looks like it is related to asynchronous i/o
note: simulation gets complete. (no run/solve issue)
The error looks like this (for one of the version combinations):
Exception in callback Task.__step()
handle: <Handle Task.__step()>
Traceback (most recent call last):
File "C:\Users*.pyenv\pyenv-win\versions\3.13.9\Lib\asyncio\events.py", line 89, in _run
self._context.run(self._callback, self._args)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: cannot enter context: <_contextvars.Context object at 0x000002045E7B1340> is already entered
Exception in callback Task.__step()
handle: <Handle Task.__step()>
Traceback (most recent call last):
File "C:\Users*.pyenv\pyenv-win\versions\3.13.9\Lib\asyncio\events.py", line 89, in _run
self._context.run(self._callback, self._args)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: cannot enter context: <_contextvars.Context object at 0x000002045E7B1340> is already entered
Exception in callback Task.__step()
handle: <Handle Task.__step()>
Traceback (most recent call last):
File "C:\Users**.pyenv\pyenv-win\versions\3.13.9\Lib\asyncio\events.py", line 89, in _run
self._context.run(self._callback, *self._args)
Beta Was this translation helpful? Give feedback.
All reactions