Giter VIP home page Giter VIP logo

Comments (6)

marcusva avatar marcusva commented on June 3, 2024

Original comment by Marcus von Appen (Bitbucket: marcusva, GitHub: marcusva):


Not much to be done without feedback

from py-sdl2.

marcusva avatar marcusva commented on June 3, 2024

Original comment by Marcus von Appen (Bitbucket: marcusva, GitHub: marcusva):


Would you mind to try running the examples with the latest releases of SDL and SDL_gfx? Do the test programs of SDL_gfx work for you?

from py-sdl2.

marcusva avatar marcusva commented on June 3, 2024

Original comment by zaazbb (Bitbucket: zaazbb, GitHub: zaazbb):


I am under windows xp sp3, using python3.3.2

from py-sdl2.

marcusva avatar marcusva commented on June 3, 2024

Original comment by zaazbb (Bitbucket: zaazbb, GitHub: zaazbb):


The same error appeared when running helloworld.py with -hardware command line option. errors as below.

#!python

Traceback (most recent call last):
  File "C:\Python33\Lib\site-packages\sdl2\examples\helloworld.py", line 87, in <module>
    sys.exit(run())
  File "C:\Python33\Lib\site-packages\sdl2\examples\helloworld.py", line 59, in run
    sprite = factory.from_image(RESOURCES.get_path("hello.bmp"))
  File "C:\Python33\lib\site-packages\sdl2\ext\sprite.py", line 405, in from_image
    return self.from_surface(load_image(fname), True)
  File "C:\Python33\lib\site-packages\sdl2\ext\sprite.py", line 418, in from_surface
    raise SDLError()
sdl2.ext.common.SDLError: b'Invalid renderer'

Erros when running other files under example dir, as below:

gui.py file:

#!python

Traceback (most recent call last):
  File "C:\Python33\Lib\site-packages\sdl2\examples\gui.py", line 166, in <module>
    sys.exit(run())
  File "C:\Python33\Lib\site-packages\sdl2\examples\gui.py", line 156, in run
    uiprocessor.dispatch([button, checkbutton, entry], event)
  File "C:\Python33\lib\site-packages\sdl2\ext\gui.py", line 337, in dispatch
    handler(v, e)
  File "C:\Python33\lib\site-packages\sdl2\ext\gui.py", line 223, in passevent
    component.events[event.type](event)
  File "C:\Python33\lib\site-packages\sdl2\ext\events.py", line 28, in __call__
    return [callback(self.sender, *args) for callback in self.callbacks]
  File "C:\Python33\lib\site-packages\sdl2\ext\events.py", line 28, in <listcomp>
    return [callback(self.sender, *args) for callback in self.callbacks]
  File "C:\Python33\Lib\site-packages\sdl2\examples\gui.py", line 46, in onedit
    (event.text.text, event.text.start, event.text.length))
AttributeError: 'SDL_TextInputEvent' object has no attribute 'start'

opengl.py: I have not install openGL module.

particles.py:

#!python

Traceback (most recent call last):
  File "C:\Python33\Lib\site-packages\sdl2\examples\particles.py", line 247, in <module>
    sys.exit(run())
  File "C:\Python33\Lib\site-packages\sdl2\examples\particles.py", line 196, in run
    images = (factory.from_image(RESOURCES.get_path("circle.png")),
  File "C:\Python33\lib\site-packages\sdl2\ext\sprite.py", line 405, in from_image
    return self.from_surface(load_image(fname), True)
  File "C:\Python33\lib\site-packages\sdl2\ext\sprite.py", line 418, in from_surface
    raise SDLError()
sdl2.ext.common.SDLError: b'Invalid renderer'

Other files runs all ok.

from py-sdl2.

marcusva avatar marcusva commented on June 3, 2024

Original comment by Marcus von Appen (Bitbucket: marcusva, GitHub: marcusva):


Does the problem only occur with the gfxdrawing example or also with others? Does the helloworld example work, when you enable the -hardware command line option?

from py-sdl2.

marcusva avatar marcusva commented on June 3, 2024

Original comment by zaazbb (Bitbucket: zaazbb, GitHub: zaazbb):


the "dll.7z" is the "msvcr100d.dll" and "SDL2_gfx.dll" files I used.

from py-sdl2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.