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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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
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
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