Menu

Python 3

2011-03-10
2013-07-30
  • Yordanis Gómez Finalé

    Hello everyone,
    I'm just starting with PythonQt, this is an excellent library !
    I would like to use Python 3.1, so I did change the python.prf file and I did recompile the library, then when I ran the PyGettingStarted example got the following runtime error: symbol lookup error: /home/yordanis/Downloads/PythonQt2.0.1/lib/libPythonQt.so.1: undefined symbol: _Py_ZeroStruct

    So my question is: What about to support Python 3.x ?

    Thanks in advance !
    Regards,
    -yfinale

     
  • Florian Link

    Florian Link - 2011-03-18

    PythonQt has not been ported to Python 3.x yet. I think most things will work out of the box, but some things are very different in Python 3.0, especially strings and binary buffers. I guess it will be straight forward to port to 3.x, but some of the conversion code will need adoption.

    I did not look into this yet, since the project for which I developed PythonQt did not yet switch to Python 3.x. If we do so, I will port PythonQt as well.

    If you have any progress on this yourself, please post it here. If you would like to provide patches for the port, you are welcome to do that and I will integrate them.

    regards,
    Florian

     
  • Yordanis Gómez Finalé

    Thank you very much Florian. At the moment we are just experimenting with PythonQt, we have not decide yet the version of Python we are going to use. Depending on that decision, I'll post.

    Best regards,
    -yfinale

     
  • Orochimarufan

    Orochimarufan - 2013-07-30

    I implemented Python 3.x support in my fork at https://github.com/Orochimarufan/PythonQt
    Reviews are appreciated. All tests pass in both Qt 4 and Qt 5, the QMake build system doesn't know about the Python 3.x support right now.

    regards, Orochimarufan

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.