-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use the modeler with geometry service #1453
Comments
Hi @emjn2 - thanks for opening this issue! I have a few questions beforehand...
Let's try and take it from there. |
Hi @RobPasMue Please see below, thanks
Package Version aiohappyeyeballs 2.4.0
|
I gave it a try on my side to the following:
modeler = launch_modeler(mode="geometry_service", product_version=241)
Everything worked as expected for me which makes me think that there must be some kind of issue on licensing... Could you navigate to the following folder? ( Could you also share the content of the latest log file you have? Please scrape any private IP/domain you might not be willing to share from the log - licensing gets logged in it as well. |
Contents from my latest log file is shown below - looks as through there is an issue with setting the licence server Licensing: ANSYS241_DIR already set to 'C:\Program Files\ANSYS Inc\v241\ANSYS'
Licensing: Server.SetLicenseServer() has not been called.
Licensing: License checkout failed
gRPC services subscription done.
Server started. Listening on endpoint: localhost:XXXX |
Agreed - the Ansys Geometry Service is more efficient than launching SpaceClaim. Have you tried launching SpaceClaim though? I would be surprised you don't hit the same licensing issue nonetheless. To me, it looks like the license server is not properly configured in your machine. Could you define an environment variable in your system that points to the license server and is called as follows?
1055 is the default port for license servers - if you have a different port, please adapt. |
Interesting... and if you define the environment variable as |
No luck I'm afraid. The log file still states that the Server.SetLicenseServer has not been called. When I use spaceclaim it does not generate a log file. I have no issue using PyTurboGrid or PyFluent with how I have the license server setup |
Can you directly double-click on the executable from the file explorer rather than running it through CLI? Sorry for all the forth and back. Let's see if the supplier can confirm you have the required license. |
Double-clicking on the exe temporarily opens a window. It is too quick to read what it contains but I would guess it is the unhandled exception. |
The way I see it is that there seems to be an issue with the license for sure. If you can't launch Discovery either, it might be the same problem behind the scenes |
Hi, I've been looking into this with my colleague who is also having similar issues with geometryservice. He has Discovery installed and is working on his machine, unlike mine - I think it is a graphics card issue. Before installing geometryservice he ran the following command which launched a spaceclaim session in the background
After installing geometryservice using the procedure detailed here (#1374) the above command now fails with the critical error that I originally posted. It looks as though pyGeometry knows that geometry service is installed but it is not working properly. All other ANSYS products can see and access the licence server. |
Just FYI -
|
I've tried it with both 24R1 and 24R2. My colleague couldn't get geometryservice to install with 24R1 so he used the approach described in the ticket. |
Okay thanks for clarifying! Let's do something... can you execute your PyAnsys Geometry script from and "admin privileged" terminal and see if it still fails? I'm not sure if this: #1453 (comment) was executed from and admin terminal or not. I will investigate on my side as well on a clean VM... but like I reported here: #1453 (comment) I didn't face any issues on my side... |
Please update to the latest PyAnsys Geometry version as well (0.7.4 currently) |
Description of the modifications
When trying the documentation examples that use the launch_modeler() command I get an uncaught execution when creating a new design even though the connection is displayed as healthy - see below
I am using ANSYS 2024R1 and I have the geometry services installed.
Ansys Geometry Modeler Client (0x1e83c6ee4d0)
Target: localhost:49721
Connection: Healthy
Useful links and references
No response
The text was updated successfully, but these errors were encountered: