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

ImportError: libcgns.so.4.4: cannot open shared object file: No such file or directory. #150

Closed
AFurley opened this issue Apr 19, 2024 · 2 comments

Comments

@AFurley
Copy link

AFurley commented Apr 19, 2024

Description

Hello! I am a student in aerospace engineering, and I am attempting to use the MACH-Aero framework to conduct aerodynamic optimization. Unfortunately, upon execution of a simple test file to import pyHyp in the u22-gcc-ompi-latest image, I am running into an error. I am new to Docker (and Python, largely), so I apologize if this is not a bug, but rather a user error. Any help would be appreciated!

Steps to reproduce issue

  1. Pull the u22-gcc-ompi-latest image using Docker and make a container.
  2. Attach to the running container in VSCode.
  3. In the mdolabuser folder, create and run a python script with the line "from pyhyp import pyHyp".

Current behavior

image

@eirikurj
Copy link
Contributor

Hi, your vscode terminal seems to be to set to sh (indicated by the $ prompt), instead of bash. This means that none of the MDO Lab environment will be loaded.
To fix this, you can change the vscode terminal profile to bash (and set as default) in vscode terminal window, and that should give you a prompt that looks something like mdolabuser@2457b3b87661:~$. From there, you should, be able to run python directly, without the absolute path, and import any MDO Lab python package.

@ewu63
Copy link
Collaborator

ewu63 commented May 10, 2024

Closed due to inactivity.

@ewu63 ewu63 closed this as completed May 10, 2024
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