[Python] ValueError: the greenlet library is required to use this function. libstdc++.so.6:...

Discussão em 'Python' iniciado por Stack, Abril 17, 2025.

  1. Stack

    Stack Membro Participativo

    Command that I ran in python virtual environment of my project:

    POSTGRES_USER=admin POSTGRES_PASSWORD=admin POSTGRES_HOST=localhost POSTGRES_DB=postgres alembic revision --autogenerate -m "add new table"


    raise ValueError( ValueError: the greenlet library is required to use this function. libstdc++.so.6: cannot open shared object file: No such file or directory sys:1: RuntimeWarning: coroutine 'connect' was never awaited


    Everything is there;
    greenlet==3.1.1 is in use as I found out via "pip freeze | grep greenlet"
    "find /usr -name libstdc++.so.6 2>/dev/null" is returning the path of libstdc++.so.6
    "ls -l /usr/lib/x86_64-linux-gnu/libstdc++.so.6" shows lrwxrwxrwx 1 root root 19 Sep 9 2024 /usr/lib/x86_64-linux-gnu/libstdc++.so.6 -> libstdc++.so.6.0.33

    What could be the problem? I encounter this libstdc error when running python tests also, any solution?

    Continue reading...

Compartilhe esta Página