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

Changing the 'software_paths.json' does not work #51

Open
PaulKSmith opened this issue Oct 31, 2024 · 6 comments
Open

Changing the 'software_paths.json' does not work #51

PaulKSmith opened this issue Oct 31, 2024 · 6 comments

Comments

@PaulKSmith
Copy link

Hello everyone,

New user of pyNuMAD here. Would appreciate any help from developers or existing users.
I am getting error FileNotFoundError: [Errno 2] No such file or directory: 'ansys.out' while running /examples/ansys_example.py
So, went in debug mode and found out the call_ansys(filename,log) has problem as ansys_path = mapdl only, even though I change the path in 'software_paths.json' as "ansys" : "C:/Program Files/ANSYS Inc/v232/ansys/bin/winx64/mapdl.exe",

Regards,
Paul

@PaulKSmith
Copy link
Author

@kbonney @ecamare tagging in case gone unnoticed. Would appreciate any input.

@kbonney
Copy link
Collaborator

kbonney commented Nov 1, 2024

@PaulKSmith,
What do you see when you run print(pynumad.SOFTWARE_PATHS)

@PaulKSmith
Copy link
Author

@kbonney
Thanks for your reply.
Here is the output. It does the reflect the change I made in json file.
IPdb [2]: print(pynumad.SOFTWARE_PATHS) {'pynumad': '/Users/ecamare/repos/pynumad/', 'ansys': 'mapdl', 'cubit': '/Applications/Cubit-16.16/Cubit.app/Contents/MacOS/', 'cubit_enhancements': '/Applications/Cubit-16.16/Cubit.app/Contents/MacOS/python3/lib/site-packages/'}

@771217832
Copy link

、运行时您会看到什么print(pynumad.SOFTWARE_PATHS)

I found this error as well,it seems like lack of a file name "ansys.out".

@kbonney
Copy link
Collaborator

kbonney commented Dec 2, 2024

@PaulKSmith, I have not been able to replicate this on my end. When I change software_paths.json it is reflected in the SOFTWARE_PATHS variable. Can you paste in the contents of the json as well as the location of the file in your repository?

@771217832
Copy link

@PaulKSmith, I have not been able to replicate this on my end. When I change it is reflected in the SOFTWARE_PATHS variable. Can you paste in the contents of the json as well as the location of the file in your repository?software_paths.json

{"pynumad" : "/Users/ecamare/repos/pynumad/",
"ansys" : "E:/Program Files/ANSYS Inc/v221/ansys/bin/winx64/MAPDL.exe",
"cubit" : "/Applications/Cubit-16.16/Cubit.app/Contents/MacOS/",
"cubit_enhancements" : "/Applications/Cubit-16.16/Cubit.app/Contents/MacOS/python3/lib/site-packages/"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants