Code suddenly not working when it worked the day before despite it being completely unchanged

Hello, the error (ImportError: cannot open shared object file: No such file or directory) is very likely related to a small new replit python feature:

In the meantime, have you ever modified the hidden file replit.nix? I do not understand the new feature that well, I need to know more about how it functions.

One workaround, if this is really causing the problem, is to turn off Explorer mode in replit account settings.
Another workaround would be to add pkgs.python310Packages.matplotlib to the deps variable in replit.nix file. (Probably all other deps and the env variable can be deleted). This completely bypasses pip and poetry, the normal python package managers, which use .pythonlibs directory.

You can test if you have this new python dependencies feature by typing this is shell:

pid1 --version

and it would give pid1: 0.0.0-5440be3+nix if you have it. The feature is currently only for Explorer mode, therefore you can turn it off.

Replit has been notified and the feature has been disabled until they fix it.

1 Like