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

Bug located in launching server #426

Open
2 tasks done
kmahajan-cadfem opened this issue Apr 19, 2024 · 2 comments
Open
2 tasks done

Bug located in launching server #426

kmahajan-cadfem opened this issue Apr 19, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@kmahajan-cadfem
Copy link

🔍 Before submitting the issue

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

🐞 Description of the bug

Launching server uses the subprocess.Popen("python .."), if there is no python installed on system this leads to problems

📝 Steps to reproduce

  • Use Windows 10
  • use ansys installed python to create venv or use any python that is not installed system wide
  • install pydyna in the venv
  • make sure that there no python installed, if you type python in terminal/cmd it should give out an error or message that python is not known command
  • try to run following from getting started
import ansys.dyna.core.solver as solver

hostname = "localhost"
port = "5000"
dyna=launch_dyna(ip = hostname,port = port)            # connect to the container
dyna.push("./output/ball_plate.k")                            # push an input file
dyna.start(4)                                   # start 4 ranks of mppdyna
dyna.run("i=ball_plate.k memory=10m ncycle=20000")   # begin execution

💻 Which operating system are you using?

Windows

📀 Which ANSYS version are you using?

2024 R1

🐍 Which Python version are you using?

3.11

📦 Installed packages

-
@kmahajan-cadfem kmahajan-cadfem added the bug Something isn't working label Apr 19, 2024
@kmahajan-cadfem
Copy link
Author

I get following error message on my machine

---------------------------- Captured stdout call -----------------------------
Failed to start pydyna solver server locally
---------------------------- Captured stderr call -----------------------------
Python konnte nicht gefunden werden. Führen Sie die Verkn+üpfung ohne Argumente aus, um sie über den Microsoft Store zu installieren, oder deaktivieren Sie diese Verknüpfung unter 
------------------------------ Captured log call ------------------------------
CRITICAL root:dynasolver.py:83 Can not connect to Solver Server

@Dr-Astronaut
Copy link

I got grpc._channel._InactiveRpcError

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