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

"/lib64/libstdc++.so.6: version `GLIBCXX_3.4.30' not found" error when using model-explorer in python venv #190

Closed
aws-nm9 opened this issue Sep 27, 2024 · 3 comments
Assignees
Labels
status:awaiting user response This label needs to be added to stale issues and PRs. status:more data needed This label needs to be added to stale issues and PRs. status:stale Stale management add this label for inactive PRs and issues. type:build/install Build and install issues

Comments

@aws-nm9
Copy link

aws-nm9 commented Sep 27, 2024

When running the model-explorer tool in a python venv on a RHEL system, I can see the following error/warning messages:

! Failed to load extension module ".builtin_tflite_flatbuffer_adapter":
/lib64/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by /home/ec2-user/model_explo/lib64/python3.9/site-packages/ai_edge_model_explorer_adapter/_pywrap_convert_wrapper.so)

! Failed to load extension module ".builtin_tflite_mlir_adapter":
/lib64/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by /home/ec2-user/model_explo/lib64/python3.9/site-packages/ai_edge_model_explorer_adapter/_pywrap_convert_wrapper.so)

! Failed to load extension module ".builtin_tf_mlir_adapter":
/lib64/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by /home/ec2-user/model_explo/lib64/python3.9/site-packages/ai_edge_model_explorer_adapter/_pywrap_convert_wrapper.so)

! Failed to load extension module ".builtin_tf_direct_adapter":
/lib64/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by /home/ec2-user/model_explo/lib64/python3.9/site-packages/ai_edge_model_explorer_adapter/_pywrap_convert_wrapper.so)

! Failed to load extension module ".builtin_graphdef_adapter":
/lib64/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by /home/ec2-user/model_explo/lib64/python3.9/site-packages/ai_edge_model_explorer_adapter/_pywrap_convert_wrapper.so)

! Failed to load extension module ".builtin_mlir_adapter":
/lib64/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by /home/ec2-user/model_explo/lib64/python3.9/site-packages/ai_edge_model_explorer_adapter/_pywrap_convert_wrapper.so)

The graph still loads and is responsive, but I cannot see as much information for nodes as I used to before - can only see the node_info part on the right side panel upon clicking on a graph node, not the rest. Since this is the only error/warning message I get, I'm assuming these are related.

Most links online describing this issue have fixes with anaconda or with apt, but not python venv on a RHEL based machine with yum, which doesn't have that package for me to just update/install it directly.
Appreciate your help, and thanks for building a very useful tool!

P.S.: strings /lib64/libstdc++.so.6 | grep GLIBCXX gives the below output

strings /lib64/libstdc++.so.6 | grep GLIBCXX
GLIBCXX_3.4
GLIBCXX_3.4.1
GLIBCXX_3.4.2
GLIBCXX_3.4.3
GLIBCXX_3.4.4
GLIBCXX_3.4.5
GLIBCXX_3.4.6
GLIBCXX_3.4.7
GLIBCXX_3.4.8
GLIBCXX_3.4.9
GLIBCXX_3.4.10
GLIBCXX_3.4.11
GLIBCXX_3.4.12
GLIBCXX_3.4.13
GLIBCXX_3.4.14
GLIBCXX_3.4.15
GLIBCXX_3.4.16
GLIBCXX_3.4.17
GLIBCXX_3.4.18
GLIBCXX_3.4.19
GLIBCXX_3.4.20
GLIBCXX_3.4.21
GLIBCXX_3.4.22
GLIBCXX_3.4.23
GLIBCXX_3.4.24
GLIBCXX_3.4.25
GLIBCXX_3.4.26
GLIBCXX_3.4.27
GLIBCXX_3.4.28
GLIBCXX_3.4.29
GLIBCXX_DEBUG_MESSAGE_LENGTH
@pkgoogle
Copy link
Contributor

pkgoogle commented Sep 30, 2024

Hi @aws-nm9, do you happen to know your current build/install steps for your environment? Also what version of Python are you using?

i.e. have you tried creating a fresh venv/conda environment and just doing:

pip install ai-edge-model-explorer

https://docs.anaconda.com/miniconda/, does your environment not fall under one of these miniconda installation scripts? I'm thinking if there's not an issue w/ installation then you should at least be able to try conda for your environment.

@pkgoogle pkgoogle added type:build/install Build and install issues status:awaiting user response This label needs to be added to stale issues and PRs. status:more data needed This label needs to be added to stale issues and PRs. labels Sep 30, 2024
Copy link

github-actions bot commented Oct 8, 2024

Marking this issue as stale since it has been open for 7 days with no activity. This issue will be closed if no further activity occurs.

@github-actions github-actions bot added the status:stale Stale management add this label for inactive PRs and issues. label Oct 8, 2024
Copy link

This issue was closed because it has been inactive for 14 days. Please post a new issue if you need further assistance. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:awaiting user response This label needs to be added to stale issues and PRs. status:more data needed This label needs to be added to stale issues and PRs. status:stale Stale management add this label for inactive PRs and issues. type:build/install Build and install issues
Projects
None yet
Development

No branches or pull requests

2 participants