Coder Social home page Coder Social logo

doesn't work with python3 about pygame_sdl2 HOT 4 CLOSED

renpy avatar renpy commented on May 22, 2024
doesn't work with python3

from pygame_sdl2.

Comments (4)

renpytom avatar renpytom commented on May 22, 2024

This is correct, and something that needs to be addressed relatively soon.

from pygame_sdl2.

renpytom avatar renpytom commented on May 22, 2024

I've addressed this. The current HEAD branch should be able to build and run on python3. Please let me know if you have problems - those are now proper bugs, rather than something we didn't get to.

from pygame_sdl2.

Elinvention avatar Elinvention commented on May 22, 2024
$ python3 setup.py install
pygame_sdl2.error is out of date.
pygame_sdl2.color is out of date.
pygame_sdl2.controller is out of date.
pygame_sdl2.rect is out of date.
warning: src/pygame_sdl2/rect.pyx:402:8: Unreachable code
pygame_sdl2.rwobject is out of date.
pygame_sdl2.surface is out of date.

Error compiling Cython file:
------------------------------------------------------------
...
                self.surface.pitch)

        self.unlock()

    def set_colorkey(self, color, flags=0):
        print color
             ^
------------------------------------------------------------

src/pygame_sdl2/surface.pyx:381:14: Syntax error in simple statement list

Command '['cython', '-3', '-Iinclude', '-Igen3', '-a', 'src/pygame_sdl2/surface.pyx', '-o', 'gen3/pygame_sdl2.surface.c']' returned non-zero exit status 1

Should I open a new issue?

from pygame_sdl2.

renpytom avatar renpytom commented on May 22, 2024

No need. I just fixed it with acc3178.

If it happens again, opening a new issue to track it would be good, as I can close it as part of the command. Hopefully it won't happen again, though.

from pygame_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.