OpenXbox / xbox-smartglass-nano-python

The gamestreaming part of the smartglass library
MIT License
105 stars 35 forks source link

I have an unusual error on macOS - How do i fix SDL2 #23

Closed 404oops closed 3 years ago

404oops commented 3 years ago
Traceback (most recent call last):
  File "/Users/<username>/Library/Python/3.8/lib/python/site-packages/sdl2/dll.py", line 223, in <module>
    dll = DLL("SDL2", ["SDL2", "SDL2-2.0"], os.getenv("PYSDL2_DLL_PATH"))
  File "/Users/<username>/Library/Python/3.8/lib/python/site-packages/sdl2/dll.py", line 104, in __init__
    raise RuntimeError("could not find any library for %s (%s)" %
RuntimeError: could not find any library for SDL2 (PYSDL2_DLL_PATH: unset)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/<username>/Library/Python/3.8/bin/xbox-nano-client", line 5, in <module>
    from xbox.nano.scripts.client import main
  File "/Users/<username>/Library/Python/3.8/lib/python/site-packages/xbox/nano/scripts/client.py", line 12, in <module>
    from xbox.nano.render.client import SDLClient
  File "/Users/<username>/Library/Python/3.8/lib/python/site-packages/xbox/nano/render/client/__init__.py", line 2, in <module>
    from xbox.nano.render.client.sdl import SDLClient
  File "/Users/<username>/Library/Python/3.8/lib/python/site-packages/xbox/nano/render/client/sdl.py", line 2, in <module>
    from xbox.nano.render.video.sdl import SDLVideoRenderer
  File "/Users/<username>/Library/Python/3.8/lib/python/site-packages/xbox/nano/render/video/sdl.py", line 5, in <module>
    import sdl2
  File "/Users/<username>/Library/Python/3.8/lib/python/site-packages/sdl2/__init__.py", line 2, in <module>
    from .dll import get_dll_file, _bind
  File "/Users/<username>/Library/Python/3.8/lib/python/site-packages/sdl2/dll.py", line 225, in <module>
    raise ImportError(exc)
ImportError: could not find any library for SDL2 (PYSDL2_DLL_PATH: unset)
tuxuser commented 3 years ago

This should help: https://github.com/marcusva/py-sdl2#requirements

pip install pysdl2-dll