Forums

Error 'GLIBCXX_3.4.22' not found

Hello, When I try to import a python package, I get this error : "ImportError: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.22' not found". Then I tried to follow the solution on the Internet, using the command: "strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIBCXX", and I found that the latest version seems to be GLIBCXX_3.4.21. But the next step can't go on. How can I fix this problem? Thank you very much in advance.

How did you install the package that you are trying to import? Is it in a virtualenv that you uploaded to PythonAnywhere? Virtualenvs are not portable from machine to machine, so you would need to create a fresh one on our servers and install the packages you need into it.

Yes, It's. I created a new venv and installed this package, but no way to import (got this error)

That means that that package is not compatible with the PythonAnywhere system at a moment.

A little disappointed, thank you anyway.

You could try again when we deploy the next system image later this spring.

Thanks, I'm looking forward to it.

Hi there - looks like I am having the same issue as this one. May I ask whether there are any updates for this where 'GLIBCXX_3.4.22' has been updated?

Thanks!

It's GLIBCXX_3.4.28 in the new system image. You need to update your account. You can change it yourself from the "Account" page. There's more information on this help page: https://help.pythonanywhere.com/pages/ChangingSystemImage.

The problem has been fixed. Thanks so much!

Glad to hear that!