1. Marcus von Appen
  2. py-sdl2
Issue #53 resolved

SDL_HasAVX

Jordan F
created an issue

While importing pysdl2 v0.9.0 I recieve the following traceback:

Traceback (most recent call last): File "/usr/lib/python3.3/runpy.py", line 160, in _run_module_as_main "main", fname, loader, pkg_name) File "/usr/lib/python3.3/runpy.py", line 73, in _run_code exec(code, run_globals) File "./Totus.py", line 5, in <module> import init # lint:ok File "./init.py", line 5, in <module> BootStrap.run() # Critical: Bootstraps a sane enviroment for the app. File "./BootStrap.py", line 165, in run import(dependency) File "/usr/local/lib/python3.3/dist-packages/sdl2/init.py", line 8, in <module> from .cpuinfo import * File "/usr/local/lib/python3.3/dist-packages/sdl2/cpuinfo.py", line 24, in <module> SDL_HasAVX = _bind("SDL_HasAVX", None, SDL_bool) File "/usr/local/lib/python3.3/dist-packages/sdl2/dll.py", line 84, in bind_function (funcname, self._dll)) ValueError: could not find function 'SDL_HasAVX' in <CDLL 'libSDL2-2.0.so.0', handle 2659070 at 7fb20c5fe9d0>

This is a regression since 0.8.0. OS Linux Mint 16 64-bit. Python 3.3

Comments (12)

  1. Marcus von Appen repo owner

    Thanks for noticing, Jordan. I just fixed the issue to preserve compatibility to SDL versions previous to 2.0.2. The next release will contain the update.

  2. Jordan F reporter

    Just so I know will there be a 0.9.1 then? I hope so because I wanted to patch my code against the API changes ASAP, But I can't so long as 0.9.0 is broke on my system and waiting for 1.0.0 or 0.10.0 will cause me to break more code later rather than now. Thanks for considering this.

  3. Jordan F reporter

    Thank you for releasing 0.9.1, unfortunately I may have another regression for you again due to the older version of SDL 2 on my system. After upgrading to 0.9.1 and running my program I receive this traceback. Would you like me to reopen this issue or create a new one?

    Traceback (most recent call last): File "/usr/lib/python3.3/runpy.py", line 160, in _run_module_as_main "main", fname, loader, pkg_name) File "/usr/lib/python3.3/runpy.py", line 73, in _run_code exec(code, run_globals) File "./Totus.py", line 5, in <module> import init # lint:ok File "./init.py", line 5, in <module> BootStrap.run() # Critical: Bootstraps a sane enviroment for the app. File "./BootStrap.py", line 165, in run import(dependency) File "/usr/local/lib/python3.3/dist-packages/sdl2/init.py", line 11, in <module> from .events import * File "/usr/local/lib/python3.3/dist-packages/sdl2/events.py", line 5, in <module> from .keyboard import SDL_Keysym File "/usr/local/lib/python3.3/dist-packages/sdl2/keyboard.py", line 7, in <module> from .video import SDL_Window File "/usr/local/lib/python3.3/dist-packages/sdl2/video.py", line 256, in <module> SDL_GL_ResetAttributes = _bind("SDL_GL_ResetAttributes") File "/usr/local/lib/python3.3/dist-packages/sdl2/dll.py", line 84, in bind_function (funcname, self._dll)) ValueError: could not find function 'SDL_GL_ResetAttributes' in <CDLL 'libSDL2-2.0.so.0', handle 2068fd0 at 7f6849efc9d0>

  4. Jordan F reporter

    I am currently at work (No Access to My Development Environment), but I will check it tonight after I get out or at the latest tomorrow morning.

  5. Jordan F reporter

    Sorry for the late reply, that last patch resolves all issues and after updating my code to the new API changes it is again functional. Thank you for applying the updates.

  6. Log in to comment