The terminal in PyCharm Community Edition 2020.1 throws a “Cannot open local terminal” error. To fix the error, re-compile libpty.so
for the 64bit ARM architecture and the Raspbian “Buster” operating system.
/opt/pycharm-community-2020.1/lib/pty4j-native/linux/x86/libpty.so
is not compiled for AARCH64 (64bit ARM) and must be exchanged against
a natively compiled one:
- Clone https://github.com/JetBrains/pty4j.git
- In directory
pty4j/native
compile like shown:gcc -fPIC -c *.c
gcc -shared -o libpty.so *.o
- Copy the newly compiled
libpty.so
to
/opt/pycharm-community-2020.1/lib/pty4j-native/linux/x86/libpty.so