Python Forum
Running 3rd party libs on Steam Deck (Arch Linux) with restricted access
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Running 3rd party libs on Steam Deck (Arch Linux) with restricted access
#1
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.
Recommended Tutorials:
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Avoid third party functions to wrote my python code into system debug-log? mark 9 2,140 Apr-09-2022, 08:41 PM
Last Post: mark
  Classes, OOP, building deck of 52 playing cards Drone4four 9 3,818 Jan-19-2022, 02:53 PM
Last Post: Drone4four
  How to use a function from third party library? rrowhe4d 2 1,813 Aug-31-2021, 04:30 PM
Last Post: Larz60+
  Error when running script on startup in Linux NoahTheNerd 0 1,926 Mar-07-2021, 04:54 PM
Last Post: NoahTheNerd
  Did interpreter 'compile' all import modules(from thrid-party) jamesyuan 10 4,174 Oct-19-2020, 10:49 AM
Last Post: jamesyuan
  installing third-party modules shabux 5 3,366 Apr-13-2020, 12:41 AM
Last Post: Larz60+
  How can I use CRC libs in python? blodht 0 1,614 Feb-03-2020, 10:26 PM
Last Post: blodht
  Running linux command line apps... dbrdh 0 1,622 Jan-30-2020, 01:14 PM
Last Post: dbrdh
  Mad Libs Program theguywithcurls 10 4,919 Nov-17-2019, 12:36 AM
Last Post: theguywithcurls
  How to detect third party packages used in the code SriRajesh 5 2,901 Sep-21-2019, 05:59 AM
Last Post: ndc85430

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020