This is my nix file
{ pkgs ? import {} }:
pkgs.mkShell {
buildInputs = [ pkgs.poetry pkgs.stdenv.cc.cc.lib pkgs.zeromq pkgs.python38 ]; #pkgs.python38.withPackages (p: [p.zmq])
shellHook = ‘’
# fixes libstdc++ issues and libgl.so issues
LD_LIBRARY_PATH=${pkgs.stdenv.cc.cc.lib}/lib/
‘’;
}
in this shell I do
poetry env use 3.8.4
poetry init
poetry add zmq
poetry install
poetry run python script.py
And after that I try to run python script with import zmq and it fails with error:
…
from . import _zmq
ImportError: libstdc++.so.6: cannot open shared object file: No such file or directory
Please help to fix