Closed Abdulla060 closed 1 year ago
Mhh.. It is working on my end.... MacOS-Python 3.9
@clatapie can you check with your windows machine?
I run the code on Windows using ansys-mapdl-core v0.64.0
with Python 3.10.8
on VSCode with a Jupyter Notebook.
An error occurs when the package trame
is installed so this needs to be fixed.
However, when trame
is not installed a static plot is accessible:
As mentioned on the previous comment, this error seems to come from trame
. I am pinging @RobPasMue for visibility on this issue.
Question... do you need trame
on PyMAPDL?
eeeehh.... we have plotss..... š
I mean, we are using Pyvista plotter at the moment. I guess it will be nice to homogenise with the rest of the libraries.
Using pyvista
is one thing, using pyvista[trame]
is another one š. That's my point... do you need trame
for any reason?
There is no call of the Jupyter background trame
in the PyMAPDL source code or in the PyMAPDL documentation. However, it seems that all the other Jupyter backends have been deprecated in favor of trame
. It probably is the new default value. That would explain why we get this error.
trame
is not used in PyMAPDL. Only in Pyvista and when you install one of the optional dependencies: jupyter
or trame
.
I would advice you @Abdulla060 to reinstall PyMAPDL with the default configuration. It should work with jupyter right away. Please do not install trame
.
Before submitting the issue
pip install --upgrade --upgrade-strategy eager ansys-mapdl-core
)Description of the bug
I'm using PyMAPDL with Visual Studio Code and the Jupyter extension
when I try to plot anything I get this error
Steps To Reproduce
code to reproduce And I ran the following code:
Which Operating System are you using?
Windows
Which Python version are you using?
3.10
PyMAPDL Report
Show the Report!
```text PyMAPDL Software and Environment Report Packages Requirements ********************* Core packages ------------- ansys.mapdl.core : 0.64.0 numpy : 1.24.1 appdirs : 1.4.4 scipy : 1.9.3 grpc : Package not found ansys.api.mapdl.v0 : Package not found ansys.mapdl.reader : 0.52.9 google.protobuf : Package not found Optional packages ----------------- matplotlib : 3.6.2 pyvista : 0.38.1 pyiges : 0.2.1 tqdm : 4.64.1 Ansys Installation ****************** Version Location ------------------ 231 C:\Program Files\ANSYS Inc\v231 Ansys Environment Variables *************************** ANSYS202_DIR C:\Program Files\ANSYS Inc 2020 R2\v202\ANSYS ANSYS231_DIR C:\Program Files\ANSYS Inc\v231\ANSYS ANSYSLIC_DIR C:\Program Files\ANSYS Inc\Shared Files\licensing ANSYSLMD_LICENSE_FILE C:\Program Files\ANSYS Inc\Shared Files\licensing\license_files\ansyslmd.lic ANSYS_SYSDIR winx64 AWP_LOCALE202 en-us AWP_LOCALE231 en-us AWP_ROOT231 C:\Program Files\ANSYS Inc\v231 CADOE_LIBDIR231 C:\Program Files\ANSYS Inc\v231\CommonFiles\Language\en-us ```Installed packages
Show the installed packages!
```text aiohttp==3.8.4 aiosignal==1.3.1 ansys-api-mapdl==0.5.1 ansys-api-platform-instancemanagement==1.0.0b3 ansys-mapdl-core==0.64.0 ansys-mapdl-reader==0.52.9 ansys-platform-instancemanagement==1.0.3 appdirs==1.4.4 aspose-words==22.8.0 asttokens==2.2.1 async-timeout==4.0.2 attrs==22.2.0 backcall==0.2.0 certifi==2022.9.24 cffi==1.15.1 charset-normalizer==2.1.1 click==8.1.3 colorama==0.4.6 coloredlogs==15.0.1 comm==0.1.2 contourpy==1.0.6 cryptography==38.0.1 cycler==0.11.0 debugpy==1.6.6 decorator==5.1.1 deprecation==2.1.0 et-xmlfile==1.1.0 executing==1.2.0 fonttools==4.38.0 frozenlist==1.3.3 geomdl==5.3.1 googleapis-common-protos==1.58.0 grpcio==1.51.1 humanfriendly==10.0 idna==3.4 imageio==2.25.1 img2pdf==0.4.4 importlib-metadata==6.0.0 ipykernel==6.21.3 ipython==8.11.0 jedi==0.18.2 jupyter_client==8.0.3 jupyter_core==5.2.0 kiwisolver==1.4.4 lxml==4.9.1 matplotlib==3.6.2 matplotlib-inline==0.1.6 mpmath==1.2.1 multidict==6.0.4 nest-asyncio==1.5.6 networkx==2.8.8 numpy==1.24.1 ocrmypdf==14.0.1 opencv-contrib-python==4.7.0.68 opencv-python==4.7.0.68 openpyxl==3.0.10 packaging==21.3 pandas==1.5.1 parso==0.8.3 pdfminer.six==20220524 pickleshare==0.7.5 pikepdf==6.2.1 Pillow==9.3.0 platformdirs==3.1.1 pluggy==1.0.0 pooch==1.6.0 prompt-toolkit==3.0.38 protobuf==3.20.3 protoc-gen-swagger==0.1.0 psutil==5.9.4 pure-eval==0.2.2 pyansys-tools-versioning==0.3.3 pycparser==2.21 Pygments==2.14.0 pyiges==0.2.1 pyparsing==3.0.9 pyreadline3==3.4.1 pytesseract==0.3.10 python-dateutil==2.8.2 pytz==2022.5 pyvista==0.38.1 pywin32==305 PyYAML==6.0 pyzmq==25.0.1 reportlab==3.6.12 requests==2.28.1 scipy==1.9.3 scooby==0.7.1 six==1.16.0 stack-data==0.6.2 sympy==1.11.1 tornado==6.2 tqdm==4.64.1 traitlets==5.9.0 trame==2.3.2 trame-client==2.7.4 trame-components==2.1.0 trame-deckgl==2.0.1 trame-markdown==2.0.2 trame-matplotlib==2.0.1 trame-plotly==2.1.0 trame-rca==0.3.0 trame-router==2.0.1 trame-server==2.9.1 trame-simput==2.3.1 trame-vega==2.0.2 trame-vtk==2.3.4 trame-vuetify==2.2.4 urllib3==1.26.12 vtk==9.2.5 wcwidth==0.2.6 wslink==1.10.1 yarl==1.8.2 zipp==3.13.0 ```Logger output file
Show the logger output file.
```text # PASTE HERE THE CONTENT OF THE LOGGER OUTPUT FILE. ```