Comments (13)
@clatapie Based on further investigations, it appears that, we are getting errors when we launch mapdl using default options, e.g.
mapdl = launch_mapdl() --> getting errors as reported initially.
However, we able to launch mapdl successfully, if we specify the version, e.g.
mapdl = launch_mapdl(version = 24.1) or mapdl = launch_mapdl(version = 241) --> working as expected.
from pymapdl.
Hi @vnamdeo, thank you for opening this issue!
I launched PyMAPDL on my local machine with the following parameters:
- OS:
Windows 10
- MAPDL Version:
23.1
- Python version:
3.12.2
- ansys-mapdl-core:
0.68.1
It seems to work fine on my side. Could you add the PyMAPDL report in your issue please? It might help me to understand what's happening.
Here is what I obtained when launching PyMAPDL:
>>> mapdl = launch_mapdl()
>>> print(mapdl)
Product: Ansys Mechanical Enterprise
MAPDL Version: 23.1
ansys.mapdl Version: 0.68.1
from pymapdl.
@clatapie : Please find attached report for the further investigations.
from pymapdl.
@clatapie Please find attached report using PyMAPDL version 0.68.1,
from pymapdl.
Hi @vnamdeo
I think there is a problem with either your envvars, or which one of your versions.
Please follow the steps given in https://mapdl.docs.pyansys.com/version/stable/user_guide/troubleshoot.html#debug-in-pymapdl and post here the log file (mylog.log
). That file will tell you which command is trying to execute, and then we can try that in a terminal.
from pymapdl.
Hi @germa89 , Followed steps as mentioned in the Troubleshooting help doc, but, it couldn't save log file. However, please refer to the attached image for the further debug.
When we add version = 24.1, we able to launch PyMAPDL with no errors, please refer to the attached image for reference.
from pymapdl.
Can you try in a terminal:
"C:\Program Files\ANSYS Inc\v231\ansys\bin\winx64\ansys231.exe" -j file -np 2 -b __tmp__.inp -o __tmp__.out -port 50052 -grpc
and put the output here?
from pymapdl.
@germa89 Is the default MAPDL version is v231 on launch_mapdl( ) ?
If we execute above line in a terminal, the output is,
"The system cannot find the path specified. "
from pymapdl.
I realise you are trying to launch MAPDL 231, but you do not have it installed.
Maybe you had it installed and uninstalled it. But the config.txt
still has it.
You can check this file by doing in python:
>>> from ansys.tools.path.path import CONFIG_FILE
>>> print(CONFIG_FILE)
/Users/user/Library/Application Support/ansys_tools_path/config.txt
to change this, the best is either delete that file, or:
>>> from ansys.tools.path import change_default_mapdl_path, get_mapdl_path
>>> change_default_mapdl_path('C:\Program Files\ANSYS Inc\v231\ansys\bin\winx64\ansys231.exe')
>>> get_mapdl_path()
C:\Program Files\ANSYS Inc\v231\ansys\bin\winx64\ansys231.exe
from pymapdl.
@germa89 In the first place, why launch_mapdl() usage Ansys v231 to launch. What is the default version is ?
from pymapdl.
whatever is written in the CONFIG_FILE
.
This file is created the first time you run PyMAPDL EVER in a PC.
from pymapdl.
@germa89 Earlier, I am not getting such errors and using PyMAPDL from long time. Recently, I migrated to newer PyMAPDL version and new Python interpreter since then I am observing such issues. Ideally, we should set some default version "latest mapdl version" on version option of launch_mapdl () function to invoke rather grab it from the CONFIG_FILE, which is not ideal approach as you have observed it. Thanks !
from pymapdl.
You are right. I acknowledge there are some corners to polish. PyMAPDL should probably re-detect MAPDL if the file cannot be found.
I will look into that. I'm keeping this issue open for future fix.
In the meantime, please delete CONFIG.txt
file, it should work OK after that.
from pymapdl.
Related Issues (20)
- Report image cache changes with percentages
- APLOT results in the deletion of areas and area components. HOT 3
- VPLOT does not always clean up its ET definition(s). HOT 1
- Fix PyVista Warnings
- Outdated `CONFIG_FILE` HOT 1
- Set MAPDL memory and CPU limits on CICD
- Image cache randomly updates HOT 2
- Scipy example
- Add server license option to switch between read only and read/write or check in license HOT 5
- Add server exit to python del mapdl HOT 1
- Consider Simplifying Optionals and Unions in Type Annotations HOT 1
- Document HPC tight integration HOT 3
- Mesh Connect! HOT 3
- License checker should not kill the workflow if it fails.
- Check `pymapdl start` does check MAPDL port is open
- `start_timeout` doesn't get pass when `start_instance=False`
- PyMAPDL confuses UDP and TCP ports when checking if port is busy?
- Strange format in example geometry 00
- Remove `pymapdl-reader` from examples
- MapdlPool suggestions
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pymapdl.