Open file dialog shows invisible filenames

I am developing a Python/Tk application on a Raspberry Pi (ver.4 Model B Rev 1.2).

Its OS is 5.4.83-1-MANJARO-ARM #1 SMP PREEMPT Mon Dec 14 08:37:33 CST 2020 aarch64 GNU/Linux, the software versions are python 3.9.1 and tkinter version tk 8.6.12-1

I don’t know what I’m doing wrong, but any tkinter.filedialog.askopenfilename call shows just the files icons, and invisible filenames. Just selecting a filename it becomes (and stays) visible.
(sorry, as a new user I cannot post screenshots)

I’ve been suggested that this could be a Manjaro/KDE issue, not Tkinter, so I wanted to ask you if it ever happened to you.

$ inxi --admin --verbosity=7 --filter --width
System:
  Kernel: 5.4.83-1-MANJARO-ARM aarch64 bits: 64 compiler: gcc v: 10.2.0
  parameters: coherent_pool=1M 8250.nr_uarts=0
  snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1
  video=HDMI-A-1:1920x1080M@60 smsc95xx.macaddr=DC:A6:32:B8:5C:B3
  vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 root=LABEL=ROOT_MNJRO
  rw rootwait console=ttyS0,115200 console=tty1 selinux=0 plymouth.enable=0
  smsc95xx.turbo_mode=N dwc_otg.lpm_enable=0 kgdboc=ttyS0,115200 elevator=noop
  usbhid.mousepoll=8 snd-bcm2835.enable_compat_alsa=0 audit=0
  Desktop: KDE Plasma 5.20.4 tk: Qt 5.15.2 wm: kwin_x11 dm: SDDM
  Distro: Manjaro ARM
Machine:
  Type: ARM Device System: Raspberry Pi 4 Model B Rev 1.2 details: BCM2835
  rev: c03112 serial: <filter>
Memory:
  RAM: total: 3.78 GiB used: 1.70 GiB (44.9%) gpu: 64.0 MiB
  RAM Report: missing: Required program dmidecode not available
CPU:
  Info: Quad Core model: N/A variant: cortex-a72 bits: 64 type: MCP
  arch: ARMv8 family: 8 model-id: N/A stepping: 3 microcode: N/A bogomips: 432
  Speed: 600 MHz min/max: 600/1500 MHz Core speeds (MHz): 1: 600 2: 600 3: 600
  4: 600
  Features: asimd cpuid crc32 evtstrm fp
  Vulnerabilities: Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: spec_store_bypass status: Vulnerable
  Type: spectre_v1 mitigation: __user pointer sanitization
  Type: spectre_v2 status: Vulnerable
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: bcm2711-vc5 driver: vc4_drm v: N/A bus ID: N/A chip ID: brcm:gpu
  Device-2: bcm2711-hdmi0 driver: N/A bus ID: N/A chip ID: brcm:soc
  Device-3: bcm2711-hdmi1 driver: N/A bus ID: N/A chip ID: brcm:soc
  Display: x11 server: X.org 1.20.10 compositor: kwin_x11 driver: modesetting
  alternate: fbdev resolution: <xdpyinfo missing>
  Message: Unable to show advanced data. Required tool glxinfo missing.
Audio:
  Device-1: bcm2835-audio driver: bcm2835_audio bus ID: N/A
  chip ID: brcm:bcm2835_audio
  Device-2: bcm2711-hdmi0 driver: N/A bus ID: N/A chip ID: brcm:soc
  Device-3: bcm2711-hdmi1 driver: N/A bus ID: N/A chip ID: brcm:soc
  Sound Server: ALSA v: k5.4.83-1-MANJARO-ARM
Network:
  Message: No ARM data found for this feature.
  IF-ID-1: eth0 state: down mac: <filter>
  IF-ID-2: wlan0 state: up mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
  broadcast: <filter>
  IP v6: <filter> type: noprefixroute scope: link
  WAN IP: <filter>
Drives:
  Local Storage: total: 28.85 GiB used: 9.98 GiB (34.6%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/mmcblk0 model: SA32G size: 28.85 GiB block size: physical: 512 B
  logical: 512 B serial: <filter> scheme: MBR
  Message: No Optical or Floppy data was found.
RAID:
  Message: No RAID data was found.
Partition:
  ID-1: / raw size: 28.61 GiB size: 28.10 GiB (98.21%) used: 9.94 GiB (35.4%)
  fs: ext4 dev: /dev/mmcblk0p2 label: ROOT_MNJRO
  uuid: a3786927-124e-48cb-a9fa-aca0a7c067ae
  ID-2: /boot raw size: 213.6 MiB size: 213.4 MiB (99.89%)
  used: 44.4 MiB (20.8%) fs: vfat dev: /dev/mmcblk0p1 label: BOOT_MNJRO
  uuid: 41EF-196D
Swap:
  Kernel: swappiness: 60 (default) cache pressure: 100 (default)
  ID-1: swap-1 type: zram size: 5.58 GiB used: 0 KiB (0.0%) priority: 100
  dev: /dev/zram0
Unmounted:
  Message: No unmounted partitions found.
USB:
  Hub: 1-0:1 info: Full speed (or root) Hub ports: 1 rev: 2.0 speed: 480 Mb/s
  chip ID: 1d6b:0002
  Hub: 1-1:2 info: VIA Labs Hub ports: 4 rev: 2.1 speed: 480 Mb/s
  chip ID: 2109:3431
  Device-1: 1-1.2:3 info: Lite-On USB Keyboard type: Keyboard
  driver: hid-generic,usbhid interfaces: 1 rev: 1.1 speed: 1.5 Mb/s
  chip ID: 04ca:0022
  Device-2: 1-1.3:7 info: Agilent 82357B () type: N/A
  driver: agilent_82357a_gpib interfaces: 1 rev: 2.0 speed: 480 Mb/s
  chip ID: 0957:0718 serial: <filter>
  Device-3: 1-1.4:5 info: Logitech M105 Optical Mouse type: Mouse
  driver: hid-generic,usbhid interfaces: 1 rev: 2.0 speed: 1.5 Mb/s
  chip ID: 046d:c077
  Hub: 2-0:1 info: Full speed (or root) Hub ports: 4 rev: 3.0 speed: 5 Gb/s
  chip ID: 1d6b:0003
Sensors:
  System Temperatures: cpu: 35.5 C mobo: N/A
  Fan Speeds (RPM): N/A
Info:
  Processes: 162 Uptime: 5d 5h 19m Init: systemd v: 247 Compilers: gcc: 10.2.0
  Packages: pacman: 837 lib: 201 Shell: Bash v: 5.1.0 running in: terminator
  inxi: 3.1.08 

Your system is almost 2 years out of date. Have you tried updating or even just re-installing?

I’m not a Tkinter user, so I wouldn’t know. But the first thing we would make sure in troubleshooting, is that you are up to date.

thank you for your help!
Unfortunately, that’s not possible, since we use it in a laboratory to control some instruments, by the linux-gpib library. To install this library and the rest of the instrument drivers is such a mess that we decided to freeze the system as it is, never to update it if at all possible…

Unfortunate, but we’ll try to live with this small bug!

1 Like