Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: libSDL2-2.0.so.0: cannot open shared object file: No such file or directory #502

Closed
amalrkc opened this issue Nov 21, 2023 · 4 comments

Comments

@amalrkc
Copy link

amalrkc commented Nov 21, 2023

pyxel-error Screenshot 2023-11-21 185043

Ubuntu 22.04.2 LTS running on Windows 11 WSL

How do I fix this?

@merwok
Copy link
Contributor

merwok commented Nov 21, 2023

Do you have libsdl2 installed?

@amalrkc
Copy link
Author

amalrkc commented Nov 23, 2023

Ohh My bad! I did not catch that step in the README.

I did install sdl with sudo apt-get install libsdl2-2.0-0 as mentioned here.

The CLI seems to be working but fails run scripts due to some problem with the audio subsystem.

pyxel-error-06 Screenshot 2023-11-24 023830
pyxel-error-07 Screenshot 2023-11-24 024019

I'm not sure if this is a side effect of trying to run scripts on top of Windows WSL.

@merwok
Copy link
Contributor

merwok commented Nov 23, 2023

Probably!
I don’t know if WSL is meant for scripts only; working with system resources like audio or inputs would require a translation layer.
Question: why not use a windows terminal to run pyxel games on windows?

@amalrkc
Copy link
Author

amalrkc commented Nov 25, 2023

Okay, there was something broken with my Python installation on Windows.

The Python interpreter was working fine, but for some reason pip was not installed.

No matter how many I reinstalled or repaired my Python installation, I simply couldn't get it to work, which is why I decided to to try Ubuntu.

After trying py -m ensurepip --upgrade and py -m pip install -U pip as mentioned here, I finally got it installed and working.

But even after that I couldn't properly install Pyxel and couple of errors kept showing up.

Turns out, running Windows Terminal as Administrator and then using pip solves the problem

PS: It would be nice to run Pyxel as a Single Binary Executable without needing to install dependencies, like TIC-80 and PICO-8.

@amalrkc amalrkc closed this as completed Nov 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants