0

I work with text-to-speech Python library. I have a problem with my IDE (PyCharm) but only, because it is installed by Flatpak, so it doesn't have access to additional library in my system (libespeak). It throws me an error: OSError: libespeak.so.1: cannot open shared object file: No such file or directory.

  • I have installed each required dependencies,

  • The same code (text-to-speech) work in PyCharm that isn't installed by Flatpak,

  • The problem must be with Flatpak permissions (flatpak docs),

  • I change PyCharm Flatpak version permissions by Flatsteal and command line (sudo flatpak override com.jetbrains.PyCharm-Community --filesystem=host) but all time I have the same error.

  • Required lib is installed here: /usr/lib/x86_64-linux-gnu/libespeak.so.1

  • Adding that path to Flatsteal not change anything.

Do you have an idea what I miss? I don't know what I can do more. Theoretically I can run PyCharm as script, but I prefer Flatpak version, is more comfortable. Ubuntu 22.04 LTS based distro (Pop!_OS). System is up-to-date.

JohnLocke
  • 29
  • 4

0 Answers0