question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pyxel not running on Raspberry Pi

See original GitHub issue

Describe the bug

So I’ve been trying to get pyxel to work on the Raspberry Pi with pretty bad luck so far. Initially it seemed like an issue with GLFW so I ended up doing the following:

  1. Compile GLFW on the Raspberry Pi with the extensions
  2. Enable OpenGL in Raspbian (Source)
  3. Edit pyxel as suggested in #23 and installed the modified version of pyxel
Traceback (most recent call last):
  File "game.py", line 104, in <module>
    App()
  File "game.py", line 17, in __init__
    pyxel.init(200, 200, caption='cat game')
  File "/usr/local/lib/python3.5/dist-packages/pyxel-0.9.5-py3.5.egg/pyxel/__init__.py", line 181, in init
    App(module, width, height, caption, scale, palette, fps, border_width, border_color)
  File "/usr/local/lib/python3.5/dist-packages/pyxel-0.9.5-py3.5.egg/pyxel/app.py", line 169, in __init__
    self._renderer = Renderer(width, height)
  File "/usr/local/lib/python3.5/dist-packages/pyxel-0.9.5-py3.5.egg/pyxel/renderer.py", line 48, in __init__
    self._draw_shader = GLShader(DRAWING_VERTEX_SHADER, DRAWING_FRAGMENT_SHADER)
  File "/usr/local/lib/python3.5/dist-packages/pyxel-0.9.5-py3.5.egg/pyxel/gl_wrapper.py", line 12, in __init__
    shaders.compileShader(fragment_shader, gl.GL_FRAGMENT_SHADER),validate= False
  File "/home/pi/.local/lib/python3.5/site-packages/OpenGL/GL/shaders.py", line 196, in compileProgram
    program.check_validate()
  File "/home/pi/.local/lib/python3.5/site-packages/OpenGL/GL/shaders.py", line 108, in check_validate
    glGetProgramInfoLog( self ),
RuntimeError: Validation failure (0): 
O

Desktop (please complete the following information):

  • OS: Raspbian
  • Device: Raspberry Pi

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
rkrishnasankacommented, Jul 31, 2019

Yup, its the same as #149 . I was looking to see if there’s a way to detect processor architecture last night for a grand total of 2 minutes, that way you can load the correct shared library. Also, I figured that you need to kill the desktop and run from the command line to get a decent framerate:

36wikb

Now I need to figure an application launcher for this. But thanks for the help !

0reactions
kitaocommented, Jul 30, 2019

@rkrishnasanka Great news! Is it the same way of #149 ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Raspbien w/ Pixel won't load - Raspberry Pi Forums
When I click on w/Pixel it loads up and displays the raspberry logo, but then fails to boot into the OS. I've tried...
Read more >
Installing Raspberry Pi PIXEL x86 in a Virtual Machine
Most of these changes can only be done when the virtual machine is not running, so shutdown PIXEL first. Choose the virtual machine...
Read more >
Web Enabled PIXEL on Raspberry Pi - Adafruit Industries
The application runs on Raspberry Pi and PC. The Pixel software used in this guide is distributed as a executable JAR file (Java....
Read more >
HowHow To Boot Into Raspberry Pi OS's Standard Desktop ...
I have a remote, headless Raspberry Pi to which I always connect via SSH. Yesterday I connected via VNC for the first time...
Read more >
Install Raspberry Pi OS's desktop environment over a Lite install
To do that (assuming you're running the latest Pi OS version, Bullseye as of this writing), just install Xorg and the Raspberry Pi...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found