This page looks best with JavaScript enabled

Fixing PyCharm Terminal on RPi4

 ·  ☕ 1 min read

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:

  1. Clone https://github.com/JetBrains/pty4j.git
  2. In directory pty4j/native compile like shown:
    1. gcc -fPIC -c *.c
    2. gcc -shared -o libpty.so *.o
    3. Copy the newly compiled libpty.so to
      /opt/pycharm-community-2020.1/lib/pty4j-native/linux/x86/libpty.so

Philipp Westphal
WRITTEN BY
Philipp Westphal
Software Developer & Structural Engineer