Python Forum
Running 3rd party libs on Steam Deck (Arch Linux) with restricted access - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Running 3rd party libs on Steam Deck (Arch Linux) with restricted access (/thread-39138.html)



Running 3rd party libs on Steam Deck (Arch Linux) with restricted access - metulburr - Jan-07-2023

I am trying to run pygame in steam deck which is running a modified version of Arch Linux. So by defualt it already has PYthon. However the modified version of Arch Linux does not give sudo access in attempt to prevent people from ruining their steam deck.

The python system version does not have pip. So i have to find the package in the Arch repos. But that fails without sudo access.

(127)(deck@steamdeck ~)$ sudo pacman -S python-pygame
[sudo] password for deck: 
resolving dependencies...
looking for conflicting packages...

Packages (14) gperftools-2.10-1  highway-1.0.1-1  imath-3.1.5-3  libavif-0.10.1-2
              libjxl-0.7.0-3  libyuv-r2322+3aebf69d-1  mpg123-1.30.2-1  openexr-3.1.5-1
              opusfile-0.12-2  portmidi-236-1  sdl2_image-2.6.2-2  sdl2_mixer-2.6.2-1
              sdl2_ttf-2.20.1-1  python-pygame-2.1.2-2

Total Download Size:   14.15 MiB
Total Installed Size:  67.54 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
 libyuv-r2322+3aebf6...   270.6 KiB   126 KiB/s 00:02 [############################] 100%
 sdl2_ttf-2.20.1-1-x...   633.3 KiB   295 KiB/s 00:02 [############################] 100%
 mpg123-1.30.2-1-x86_64   431.7 KiB   196 KiB/s 00:02 [############################] 100%
 highway-1.0.1-1-x86_64   594.4 KiB   264 KiB/s 00:02 [############################] 100%
 sdl2_mixer-2.6.2-1-...   154.2 KiB  63.3 KiB/s 00:02 [############################] 100%
 sdl2_image-2.6.2-2-...    66.0 KiB   230 KiB/s 00:00 [############################] 100%
 gperftools-2.10-1-x...   693.8 KiB   253 KiB/s 00:03 [############################] 100%
 portmidi-236-1-x86_64     36.7 KiB   111 KiB/s 00:00 [############################] 100%
 opusfile-0.12-2-x86_64    63.7 KiB   127 KiB/s 00:01 [############################] 100%
 libavif-0.10.1-2-x86_64  116.8 KiB   139 KiB/s 00:01 [############################] 100%
 libjxl-0.7.0-3-x86_64   1998.9 KiB   611 KiB/s 00:03 [############################] 100%
 imath-3.1.5-3-x86_64       3.9 MiB  1151 KiB/s 00:04 [############################] 100%
 python-pygame-2.1.2...     4.1 MiB  1101 KiB/s 00:04 [############################] 100%
 openexr-3.1.5-1-x86_64  1171.8 KiB   283 KiB/s 00:04 [############################] 100%
 Total (14/14)             14.2 MiB  3.31 MiB/s 00:04 [############################] 100%
(14/14) checking keys in keyring                      [############################] 100%
warning: Public keyring not found; have you run 'pacman-key --init'?
downloading required keys...
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: required key missing from keyring
error: failed to commit transaction (unexpected error)
Errors occurred, no packages were upgraded.
I tried downloading python and creating a parallel python version but the system does not have make. Nor do i have write access to install make.

Then my thought turned to maybe i can install anaconda and try it there. I can import pygame but as soon as i initialize it i get a LibGL error. I am unsure if this is regarding steam decks hardware or if this is Anaconda related?

>>> import pygame
pygame 2.1.2 (SDL 2.0.16, Python 3.9.13)
Hello from the pygame community. https://www.pygame.org/contribute.html
>>> pygame.init()
libGL error: MESA-LOADER: failed to open radeonsi: /home/deck/anaconda3/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by /usr/lib/dri/radeonsi_dri.so) (search paths /usr/lib/dri, suffix _dri)
libGL error: failed to load driver: radeonsi
libGL error: MESA-LOADER: failed to open radeonsi: /home/deck/anaconda3/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by /usr/lib/dri/radeonsi_dri.so) (search paths /usr/lib/dri, suffix _dri)
libGL error: failed to load driver: radeonsi
libGL error: MESA-LOADER: failed to open swrast: /home/deck/anaconda3/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by /usr/lib/dri/swrast_dri.so) (search paths /usr/lib/dri, suffix _dri)
libGL error: failed to load driver: swrast
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  152 (GLX)
  Minor opcode of failed request:  3 (X_GLXCreateContext)
  Value in failed request:  0x0
  Serial number of failed request:  113
  Current serial number in output stream:  114
I am not use to be restricted with access so i was wondering what alternatives there are for running python and 3rd party libs on restricted access computers? I remember way back when there was portable python, but there hasnt been an update in that since 2014 it seems.