-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PySide availability for Python 3.5 #132
Comments
Hi, so what is your point, in the end? Did you for instance try pandas on Python 3.X at all? Did you even There is one single thing that is really urgent, because QtCorp's By now I still see no reason for upgrading to 3.5 but "convenience".
So how about installing 3.4 and using it as it is? As soon as we can support 3.5, we will do, but currently we can't. cheers -- Chris On 04/11/15 17:25, flutefreak7 wrote:
Christian Tismer :^) [email protected] |
Please support Python 3.5. It is the only python I use right now. I have been trying to keep everything on my computer up to date. |
@DavidHowlett if you can persuade your company and it's clients who are relying on PySide and Python stack to support us and the awesome https://mingwpy.github.io/ project financially while we are working on it, that would be a great resolution to the problem. |
Support for Python 3.5 would be amazing. If there's anything I can do to help I'm happy to contribute to the project. Surely there are not that many changes that are needed for that. If you can give me some hints where to start I'm happy to have a look. |
@dickreuter what platform do you work on? If Windows, you'll have to compile Qt4 and PySide yourself, using VS 2015. You will need to disable the check for Python 3.5 too. On Linux you should only need to disable the check. Then you can start testing how things work. |
The BSD-licensed open source projects I'm working on require Python 3.5 and we are unable to use Py 3.4. We are also unable to use PyQt due to its prohibitive licensing (as they removed the exceptions when Qt4 went to GPLv3). I greatly appreciate resource constraints particularly in OSS, but is there by chance an estimate on when we might expect Py3.5 support? |
I don't expect Py3.5 support as my job doesn't include PySide2 to cover time expenses, but I am free to switch the priorities. |
This should definitely be a priority.
|
Market says |
So out of curiosity, I looked into compiling Qt 4.8.7 (the last supported version of Qt 4.x) with VS 2015, and IMO, it is more worth it to spend time porting to PySide2 and Qt5 (which supports Python 3.5) than to try to use a custom compiled Qt. The HEAD version of 4.8.7 does not compile by default on MSVC 2015. Even with a patch I found that fixed the first issue, I had further issues in linking. Sorry, but this just isn't likely to happen. |
I have compiled and tested pyside 1.2.4 on Python3.5; both Qt and PySide need to be patched. |
@krrr, as an aside unless you significantly changed things, you should be able to |
@ethanhs link updated |
@krrr PySide 1 is definitely no longer supported. Work is now going to have PySide work with Qt5. You can see the progress in the dev branch here. Re building with all cores, this is a problem on Windows, you might be able to add the |
@ethanhs jom works, but I have to modify setup.py, otherwise it fails and said it can't build shiboken doc. It's strange that I don't have to do this when using nmake. By the way, can I compile only changed files after modifying type system xml? |
@krrr not at the moment. Since you already have your own fork, you may want to look at this commit, which seems to add what you are looking for to PySide2 |
@krrr nice work~! Since some people (including me) do not have a complete toolchains to build from source, would you consider to release a wheel of win x64 version? Thanks~! |
@krrr If you are able to a mac binary would also be appreciated |
@Jerakin I have no mac😳 |
@Jerakin try out this mac binary |
It would be nice to get the All this said, if all is needed is a proper pull request from the community to get a release out, please list any requirements that would make it work as I guess simply removing the python version check will not be accepted. |
@EvaSDK this was last left as basically a wontfix, as one needs to modify both Qt 4.8 and PySide sources to compile with the compiler used for Python 3.5 on Windows. Furthermore, Qt 4.8 is no longer supported, and PySide should not be used for new projects. PySide2, the next version, is the future of Python and Qt, and supports Python 3.5. You can find out more about it on the Qt Wiki. However, since there is significant community interest in this, a good compromise might be to add an |
Referenced is an attempt to allow PySide to build on Linux platforms against python 3.5 and 3.6. I successfully generated a wheel out of this using the following docker image (riped off someone else work):
I will hopefully soon port my project off PySide to either PyQt5 or PySide2 due to numerous unresolved bugs in PySide that are driving me crazy. |
I get @ctismer's point way back in the day. Because the default Python version now is actually 3.6. As of now, this is exactly what happens, either I have to install yet another binary on my computer, manage between version/environments.. or I'll have to rethink my strategy in terms of long term libraries that will continue to work throughout at least 2-5 minor releases. Stating "what's the rush", and then later on being proven this is exactly why is kind of a bummer - as a user. Even tho I completely get the "understaffed" reason, it still feels odd to make this statement and this is the top result when googling "pyside python 3.6".
Are you sure you're building against python3? |
@Torxed, indeed, I failed at inline edit and this should be python3. It would fail to build due to missing headers. |
FWIW, pyside is packaged on the conda-forge channel up to Python 3.6,
|
I've ran across a few loose threads of people mentioning PySide for Python 3.5. I'm assuming the greatest challenge is that Python 3.5 is compiled with Visual Studio 2015 with MSVCR 14, which means Qt and PySide must also be compiled with the same compiler. (Some of this might be Windows specific, but I mean for this issue to apply broadly to Python 3.5 compatibility on all major platforms...)
Since PyCharm 5 is out supporting 3.5, and Anaconda 2.4 is out supporting 3.5, I decided to try and make the switch yesterday. While many of the scientific ecosystem packages like numpy, scipy, pandas, and matplotlib were all ready for 3.5 (a boon in part thanks to the addition of the
@
operator for matrix multiplication in numpy), PySide became the dependancy that prevented me from upgrading.I discovered that while the official PyQt4 and PyQt5 downloads don't yet support Python 3.5, there are Windows binaries available through conda and at Christoph Gohlke's site. So it looks like there are Python 3.5 bindings for Qt, just not through PySide yet.
I completely understand that there isn't a lot of manpower available to tackle this, and not much benefit since not many people jump on the latest Python version right away. I just figured since many of the other ecosystems and libraries out there have updated to support 3.5 recently, that it's worth tracking PySide's progress towards Python 3.5 support.
I wish I was capable of helping with this issue, but I'm humbly out of my area of expertise with a task like this.
Thanks!
edit: spelling/wording
The text was updated successfully, but these errors were encountered: