Botspot / pi-apps

Raspberry Pi App Store for Open Source Projects
GNU General Public License v3.0
2.28k stars 217 forks source link

Non UTF-8 locales don't work with some applications #2707

Closed jamieduk closed 2 months ago

jamieduk commented 3 months ago

Confirmations

What happened?

failing to open terminal error

Description

cat: /home/jay/pi-apps/data/update-status/updatable-files: No such file or directory YAD_XID is 0x1200003 Flags to be passed to yad: --geometry=480x600+760+225 --skip-taskbar --close-on-unfocus

Updater mode: gui

Scanning apps... Done Scanning files... Done

error connecting to /tmp/tmux-1002/default (No such file or directory) terminal-run: No terminal detected as it never created the pid file within 10 seconds.

(yad:32561): IBUS-WARNING **: 22:23:44.973: Unable to connect to ibus: Could not connect: Connection refused

What are your system specs (run the following command in your terminal)?

cat: /home/jay/pi-apps/data/update-status/updatable-files: No such file or directory
YAD_XID is 0x1200003
Flags to be passed to yad: --geometry=480x600+760+225 --skip-taskbar --close-on-unfocus

Updater mode: gui

Scanning apps... Done
Scanning files... Done

error connecting to /tmp/tmux-1002/default (No such file or directory)
terminal-run: No terminal detected as it never created the pid file within 10 seconds.

(yad:32561): IBUS-WARNING **: 22:23:44.973: Unable to connect to ibus: Could not connect: Connection refused

rpi 5 16 gb arm ubuntu

(Recommended) Error log? Terminal output? Debug messages?

cat: /home/jay/pi-apps/data/update-status/updatable-files: No such file or directory
YAD_XID is 0x1200003
Flags to be passed to yad: --geometry=480x600+760+225 --skip-taskbar --close-on-unfocus

Updater mode: gui

Scanning apps... Done
Scanning files... Done

error connecting to /tmp/tmux-1002/default (No such file or directory)
terminal-run: No terminal detected as it never created the pid file within 10 seconds.

(yad:32561): IBUS-WARNING **: 22:23:44.973: Unable to connect to ibus: Could not connect: Connection refused
Botspot commented 3 months ago

Please actually run ~/pi-apps/api get_device_info in a terminal and send the output back. It seems that your system is out of the ordinary - probably not a supported system, but if there is an easy fix we can see what can be done for you.

dkuenzi1 commented 3 months ago

I had same problem on a 8gb PI5 with a brand new load of pi-apps. Here's my device info:

DewysPi5-8mb:~/pi-apps/apps/Windows Flasher $ ~/pi-apps/api get_device_info OS: Raspbian GNU/Linux 12 (bookworm) OS architecture: 32-bit Last updated Pi-Apps on: 01/16/2025 Latest Pi-Apps version: 01/16/2025 Kernel: aarch64 6.6.62+rpt-rpi-v8 Device model: Raspberry Pi 5 Model B Rev 1.0 SOC identifier: bcm2712 Machine-id (hashed): 45a2a84a9514d46c89d365de6165479aafed98c6 Serial-number (hashed): 2df59dcd84e3ad678cf0ea29d1983b2c4bc6c021 Cpu name: Cortex-A76 Ram size: 7.95 GB Raspberry Pi OS image version: 2023-10-10 Language: en_US.UTF-8

thanks

Botspot commented 3 months ago

@dkuenzi1, do you also get the terminal-run: No terminal detected as it never created the pid file within 10 seconds. error?

dkuenzi1 commented 3 months ago

Yes, same message as the original responder had summited

peterstamps commented 3 months ago

Same error as above on raspberry pi 4 with up-to-datebookworm.

I saw that this was my default terminal that was picked: Default x-terminal-emulator: gnome-terminal.wrapper I typed that into a terminal but starting it results in a hang (nothing happens anymore). This is valid for gnome-terminal.wrapper as well as gnome-terminal!

AS TEMPORARELY BYPASS I replaced line 46 in file /home//pi-apps/etc/teminal-run as follows and then I could install properly as a terminal was opened!

terminal="$(basename "$(readlink -f "$(command -v x-terminal-emulator)")")"

set terminal = 'lxterminal'

AS A BETTER SOLUTION THAN THE BYPASS ABOVE:

RUN this command and set the default terminal to lxterminal OR the one you want from the list, but not the gnome-terminal(.wrapper)

sudo update-alternatives --config x-terminal-emulator

Botspot commented 3 months ago

It is strange to me that this would be an issue on the default Pi OS. Could one of you affected users run this please? apt-mark showmanual gnome-terminal This command will check if gnome-terminal was manually installed, or if it was automatically installed. If the output was blank, then some other package pulled in gnome-terminal, but if the output returns gnome-terminal, then it means somehow this was manually installed, either by the OS image or by the end user.

theofficialgman commented 3 months ago

I saw that this was my default terminal that was picked: Default x-terminal-emulator: gnome-terminal.wrapper I typed that into a terminal but starting it results in a hang (nothing happens anymore). This is valid for gnome-terminal.wrapper as well as gnome-terminal!

that is concerning for different reasons. There isn't any good reason that gnome-terminal shouldn't work on PiOS. It always did previously. If you have a spare SD card, flash the latest bookworm image, update it fully, install gnome-terminal, reboot, and then try to launch gnome-terminal. If it doesn't work then file a bug here https://github.com/raspberrypi/bookworm-feedback/issues

peterstamps commented 3 months ago

I run bookworm from SSD. I currently use a different terminal. I run sudo apt update almost everyday, so I am up to date.

Op zo 19 jan. 2025 03:48 schreef theofficialgman @.***>:

I saw that this was my default terminal that was picked: Default x-terminal-emulator: gnome-terminal.wrapper I typed that into a terminal but starting it results in a hang (nothing happens anymore). This is valid for gnome-terminal.wrapper as well as gnome-terminal!

that is concerning for different reasons. There isn't any good reason that gnome-terminal shouldn't work on PiOS. It always did previously. If you have a spare SD card, flash the latest bookworm image, update it fully, install gnome-terminal, reboot, and then try to launch gnome-terminal. If it doesn't work then file a bug here https://github.com/raspberrypi/bookworm-feedback/issues

— Reply to this email directly, view it on GitHub https://github.com/Botspot/pi-apps/issues/2707#issuecomment-2600529119, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAW36FURGLMIBT4KSFWXZ432LMHALAVCNFSM6AAAAABVIINB4GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMBQGUZDSMJRHE . You are receiving this because you commented.Message ID: @.***>

peterstamps commented 3 months ago

My local setting was causing the issue. It had to be UTF-8. i had ISO-88xx-x. I forgot the exact number. Solved it via Rasberry Pi Configuration in Menu.

Op za 18 jan. 2025 04:10 schreef Botspot @.***>:

It is strange to me that this would be an issue on the default Pi OS. Could one of you affected users run this please? apt-mark showmanual gnome-terminal This command will check if gnome-terminal was manually installed, or if it was automatically installed. If the output was blank, then some other package pulled in gnome-terminal, but if the output returns gnome-terminal, then it means somehow this was manually installed, either by the OS image or by the end user.

— Reply to this email directly, view it on GitHub https://github.com/Botspot/pi-apps/issues/2707#issuecomment-2599493370, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAW36FVBQMR3P5DSI24QAJL2LHA2PAVCNFSM6AAAAABVIINB4GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKOJZGQ4TGMZXGA . You are receiving this because you commented.Message ID: @.***>

peterstamps commented 3 months ago

Forgot to mention that the Perl gnome-xterminal.wrapper could not deal with the ISO-88xxx-x setting on my Pi

Op za 18 jan. 2025 04:10 schreef Botspot @.***>:

It is strange to me that this would be an issue on the default Pi OS. Could one of you affected users run this please? apt-mark showmanual gnome-terminal This command will check if gnome-terminal was manually installed, or if it was automatically installed. If the output was blank, then some other package pulled in gnome-terminal, but if the output returns gnome-terminal, then it means somehow this was manually installed, either by the OS image or by the end user.

— Reply to this email directly, view it on GitHub https://github.com/Botspot/pi-apps/issues/2707#issuecomment-2599493370, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAW36FVBQMR3P5DSI24QAJL2LHA2PAVCNFSM6AAAAABVIINB4GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKOJZGQ4TGMZXGA . You are receiving this because you commented.Message ID: @.***>

theofficialgman commented 3 months ago

Non UTF-8 locales are known to cause issues with many applications. PiOS actually set the locale to a non UTF-8 by default in previous releases last year during the wizard (which was a bug). If you are getting a non UTF-8 locale during initial setup of PiOS on the latest release please open a new issue at https://github.com/raspberrypi/bookworm-feedback/issues and refer to https://github.com/raspberrypi/bookworm-feedback/issues/123 because that bug was supposed to have been fixed.