-
Notifications
You must be signed in to change notification settings - Fork 70
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
Python 3 installation on Linux causes build errors with Python plugin enabled #663
Comments
Please stop making python related issues or at least mark them as feature requests :( We are working hard on actual bugs to get the issue tracker into some kind of shape (we have been over 300 for a long time), these kind of requests are kind of bloating the tracker. Not to mention there are several Python issues already here that would need to be solved for us to get into 3.x support. We just cleaned most of python issues away and just left one issue for python support being rotten (see #652). Python is not coming back as there is no maintainer or anyone who would need the module, it has been like this for 1-2 years now. It's known that PythonQt as a library won't build with 3.x and there is probably very little we can do about it if no one is stepping up to the plate. Sorry for being so blunt but personally I would like to keep the issue tracker clean so its usable also in the future, its already hard to find real issues here with these kind of things laying around. |
That's not the underlying issue. Even if you have 2 and 3 both installed, the build script will always try to use 3. This is a flaw in the build process, not a feature request. Jonne Nauha [email protected] wrote:
Sent from Kaiten Mail. Please excuse my brevity. |
Yeah read my edited answer above. My issues with these kind of "bug reports" is that they will never be worked by anyone and you could see that if you would just search "python" in the current issues and read them once. This will be laying here for years to come and I'm probably the only one ever going to comment on this :P Pyhon stuff in Tundra has been dead for a long long time and imo we should remove (well close) all python related things from the issue tracker as they are not relevant anymore. We could leave the one issue that just summarises "yeah its broken". |
Fair enough; this might be worth looking in to though, is it supports 2 and 3: https://qt-project.org/wiki/PySide |
I think you have mixed projects a bit :) There is Anyhow, PythonQt is a much simpler library it seems but it might have been that it gave us more tools to expose our own QObjects, not just being a Qt wrapper library. At the end of the day we are less interested in Qt itself in scripting than making our Tundra core usable from it. Of course to make core work well Qt must work first. Edit: Just realized you only meant we should look at the lib PySide, in that you are right if we want to bring python back alive :) Seems like PySide also has Qt5 support that seems nice. |
Did this come with the new unified build script? I think I have built on systems with also 3 installed and haven't had this, am not sure though. Anyhow a simple version preference or path config build issue, hopefully simple to fix -- hints are welcome, I may look myself too if get a chance. About use of PythonQt vs PyQt or PySide: the reason was (and is) simply that only PythonQt did what we needed: exposes QObjects with their properties, slots and signals to py. Also PythonQt is made for embedding. PythonQt is basically the same as QtScript but for Py. PyQt is for making Qt apps in Python (so that the main executable and usually the whole app code is in py) and does not implement the C++ autoexposing at all. PySide inherits the same design and feature scope. The PythonQt guy actually asked on the PySide list whether they could add the qmetaobject based autoexposing to PySide too, back when PySide was approaching 1.0 or so, but at least back then they responded that it's out of scope for them. Usually when ppl write py qt apps they don't have any custom c++ code so the static exposing of only qt's own c++ classes suffices. If we move this optional module to a separate repo then ofc issues go there too but I think is fine to resolve this simple build config issue here now. |
I think the issue here is not in PythonQt. As you can see he is building Tundra and it originates from I guess the real fix for this is here https://github.com/realXtend/naali/blob/tundra2/cmake/ConfigurePackages.cmake#L124 when sagase tries to find Or we check if cmake provides a nicer |
2.7 should also be checked for as well, given that 2.6 isn't in modern distros. |
I think this should be moved over to the addons repo. |
Moved to the addons repository, closing. |
Having Python 3 installed on Linux will cause the following build errors:
In file included from /usr/include/python3.2mu/Python.h:67:0, from /home/username/dev/rex/naali-deps/install/include/PythonQtInstanceWrapper.h:45, from /home/username/dev/rex/naali-deps/install/include/PythonQt.h:46, from /home/username/dev/rex/naali/src/Application/PythonScriptModule/StableHeaders.h:10, from /home/username/dev/rex/naali/src/Application/PythonScriptModule/PythonScriptModule.cpp:3: /usr/include/python3.2mu/object.h:402:18: error: expected unqualified-id before ‘;’ token
The text was updated successfully, but these errors were encountered: