Skip to content
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

launcher.py not working in Linux #55

Open
2 tasks done
manuelmoncada opened this issue Apr 24, 2024 · 1 comment
Open
2 tasks done

launcher.py not working in Linux #55

manuelmoncada opened this issue Apr 24, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@manuelmoncada
Copy link

🔍 Before submitting the issue

  • I have searched among the existing issues
  • I am using a Python virtual environment

🐞 Description of the bug

When I try to open Rocky from Python with pyrocky.launch_rocky(), it cannot find the Rocky binary file, because the AWP_ROOT enviaroment variable is not defined by default in the installation

Traceback (most recent call last):
File "", line 1, in
File "/opt/pyrocky/lib/python3.11/site-packages/ansys/rocky/core/launcher.py", line 78, in launch_rocky
raise FileNotFoundError("Rocky executable is not found.")
FileNotFoundError: Rocky executable is not found.

📝 Steps to reproduce

  • Install ansys-rocky-core
  • run the following script:

import ansys.rocky.core as pyrocky
rocky = pyrocky.launch_rocky()

💻 Which operating system are you using?

Linux

📀 Which ANSYS version are you using?

Ansys Rocky 2024 R1.1

🐍 Which Python version are you using?

3.11

📦 Installed packages

ansys-rocky-core==0.1.0
importlib_metadata==7.1.0
numpy==1.26.4
Pyro5==5.15
serpent==1.41
zipp==3.18.1
@manuelmoncada manuelmoncada added the bug Something isn't working label Apr 24, 2024
@igortg
Copy link
Collaborator

igortg commented Jun 18, 2024

Hi @manuelmoncada

Sorry that we took so long to respond. The workaround right now is to manually set rocky_exe parameter for launch_rocky.

rocky = pyrocky.launch_rocky(rocky_exe='/ansys_inc/v241/rocky/bin/Rocky')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants