From bestellungen at menne-lothmann.com Wed Jan 2 14:09:42 2019 From: bestellungen at menne-lothmann.com (Bestellungen Menne) Date: Wed, 2 Jan 2019 14:09:42 +0100 Subject: [PySide] Qt 5.12: QAbstractItemModel::createIndex method input parameter Message-ID: Hello, I use Qt for Python and subclassed QAbstractItemModel to create a model for my treeView. For the data structure I used nodes. Each node has a parent and a childList to represent the data structure. When I call the createIndex method I passed as the third argument the node itself, which worked fine. After upgrading from Qt for Python 5.11.2 to 5.12 it gives an error, that it expects other input parameter. Here is the error: TypeError: 'PySide2.QtCore.QAbstractItemModel.createIndex' called with wrong argument types: PySide2.QtCore.QAbstractItemModel.createIndex(int, int, Node) Supported signatures: PySide2.QtCore.QAbstractItemModel.createIndex(int, int, quintptr = 0) PySide2.QtCore.QAbstractItemModel.createIndex(int, int, void = nullptr) Can someone explain this? Thanks Daniel -------------- next part -------------- An HTML attachment was scrubbed... URL: From perso.olivier.barthelemy at gmail.com Tue Jan 22 11:06:56 2019 From: perso.olivier.barthelemy at gmail.com (Olivier B.) Date: Tue, 22 Jan 2019 11:06:56 +0100 Subject: [PySide] Multiple PySide for Multiple Qt in a same python install? Message-ID: I am preparing to build an new Qt version. So i will build a new PySide2 with it. So the problem will happen of having multiple PySide versions useable in python depending on the Qt i want to use. The Python install also has a matplotlib module, which uses PySide2 as backend I did not manage to install PySide2 outside of python site-packages/PySide2 using setup.py, so i manually move it and use pth files so each PySide version will have its own storage folder. But then, i would like that python loads the proper PySide depending on the current Qt i choose to use. I have a QT_VERSION environment variable during python sessions. I could maybe add a different site dir in PySide's sitecustomize.py that i created, that depends on that QT_VERSION What means do you people have in place to switch Qt/PySide2 versions? From Cristian.Maureira-Fredes at qt.io Tue Jan 22 11:16:57 2019 From: Cristian.Maureira-Fredes at qt.io (=?iso-8859-1?Q?Cristi=E1n_Maureira-Fredes?=) Date: Tue, 22 Jan 2019 10:16:57 +0000 Subject: [PySide] Multiple PySide for Multiple Qt in a same python install? In-Reply-To: References: Message-ID: Hello Oliver, it sounds that your setup could get some improvement by using Virtual environments [1]. Have you consider to have different environment for different purposes? Then, you can just activate what you want Cheers [1] https://virtualenv.pypa.io/en/latest/ ________________________________________ From: PySide on behalf of Olivier B. Sent: 22 January 2019 11:06:56 To: pyside at qt-project.org Subject: [PySide] Multiple PySide for Multiple Qt in a same python install? I am preparing to build an new Qt version. So i will build a new PySide2 with it. So the problem will happen of having multiple PySide versions useable in python depending on the Qt i want to use. The Python install also has a matplotlib module, which uses PySide2 as backend I did not manage to install PySide2 outside of python site-packages/PySide2 using setup.py, so i manually move it and use pth files so each PySide version will have its own storage folder. But then, i would like that python loads the proper PySide depending on the current Qt i choose to use. I have a QT_VERSION environment variable during python sessions. I could maybe add a different site dir in PySide's sitecustomize.py that i created, that depends on that QT_VERSION What means do you people have in place to switch Qt/PySide2 versions? _______________________________________________ PySide mailing list PySide at qt-project.org https://lists.qt-project.org/listinfo/pyside From rgaddi at highlandtechnology.com Tue Jan 22 14:54:15 2019 From: rgaddi at highlandtechnology.com (Rob Gaddi) Date: Tue, 22 Jan 2019 05:54:15 -0800 Subject: [PySide] Multiple PySide for Multiple Qt in a same python install? In-Reply-To: References: Message-ID: <674364e9-a662-b09e-a6c0-17ca21537a7c@highlandtechnology.com> I'm going to have a fairly large migration project from PySide to PySide2 one of these days, and so have started looking into similar things.  There's a project called QtPy https://pypi.org/project/QtPy/ that looks like it addresses this pretty nicely.  Haven't used it yet so I can't speak to it. On 1/22/19 2:06 AM, Olivier B. wrote: > I am preparing to build an new Qt version. So i will build a new > PySide2 with it. So the problem will happen of having multiple PySide > versions useable in python depending on the Qt i want to use. > The Python install also has a matplotlib module, which uses PySide2 as backend > > I did not manage to install PySide2 outside of python > site-packages/PySide2 using setup.py, so i manually move it and use > pth files so each PySide version will have its own storage folder. > > But then, i would like that python loads the proper PySide depending > on the current Qt i choose to use. > I have a QT_VERSION environment variable during python sessions. I > could maybe add a different site dir in PySide's sitecustomize.py that > i created, that depends on that QT_VERSION > > What means do you people have in place to switch Qt/PySide2 versions? > _______________________________________________ > PySide mailing list > PySide at qt-project.org > https://lists.qt-project.org/listinfo/pyside From owlbrudder at gmail.com Fri Jan 25 08:51:52 2019 From: owlbrudder at gmail.com (Doug Hutcheson) Date: Fri, 25 Jan 2019 17:51:52 +1000 Subject: [PySide] Latest git download will not compile Message-ID: <25f5f2d74100b504c9d60fc649cafb8eb3b936ea.camel@gmail.com> I have googled for this without success. I am new to the list and do not know how to search it - my apologies if this is a known issue. I am trying to compile this project for the first time, so perhaps I am doing something stupid. In pyside-setup/sources/shiboken2/, I run cmake . and the script issues the following message: CMake Error at generator/CMakeLists.txt:29 (add_executable): Cannot find source file: shiboken2/cppgenerator.cpp Sure enough, there is no such file on my machine. The problem seems to stem from this block starting at line 6 of generator/CMakeLists.txt: set(shiboken2_SRC generator.cpp shiboken2/cppgenerator.cpp shiboken2/headergenerator.cpp shiboken2/overloaddata.cpp shiboken2/shibokengenerator.cpp main.cpp ) None of the files listed for the shiboken2 directory exist. What have I done wrong? All help gratefully received.Doug -------------- next part -------------- An HTML attachment was scrubbed... URL: From alexandru.croitor at qt.io Fri Jan 25 11:17:03 2019 From: alexandru.croitor at qt.io (Alexandru Croitor) Date: Fri, 25 Jan 2019 10:17:03 +0000 Subject: [PySide] Latest git download will not compile In-Reply-To: <25f5f2d74100b504c9d60fc649cafb8eb3b936ea.camel@gmail.com> References: <25f5f2d74100b504c9d60fc649cafb8eb3b936ea.camel@gmail.com> Message-ID: Hi, can you provide a link to the source archive you used? In the meantime, you could simply use git to clone the pyside-setup repo, and checkout the 5.12 branch. -> git clone --recursive https://code.qt.io/pyside/pyside-setup On 25. Jan 2019, at 08:51, Doug Hutcheson > wrote: I have googled for this without success. I am new to the list and do not know how to search it - my apologies if this is a known issue. I am trying to compile this project for the first time, so perhaps I am doing something stupid. In pyside-setup/sources/shiboken2/, I run cmake . and the script issues the following message: CMake Error at generator/CMakeLists.txt:29 (add_executable): Cannot find source file: shiboken2/cppgenerator.cpp Sure enough, there is no such file on my machine. The problem seems to stem from this block starting at line 6 of generator/CMakeLists.txt: set(shiboken2_SRC generator.cpp shiboken2/cppgenerator.cpp shiboken2/headergenerator.cpp shiboken2/overloaddata.cpp shiboken2/shibokengenerator.cpp main.cpp ) None of the files listed for the shiboken2 directory exist. What have I done wrong? All help gratefully received. Doug _______________________________________________ PySide mailing list PySide at qt-project.org https://lists.qt-project.org/listinfo/pyside -------------- next part -------------- An HTML attachment was scrubbed... URL: From owlbrudder at gmail.com Sat Jan 26 00:12:41 2019 From: owlbrudder at gmail.com (Doug Hutcheson) Date: Sat, 26 Jan 2019 09:12:41 +1000 Subject: [PySide] Latest git download will not compile In-Reply-To: <3994ddce20d0bc1b9ea0205a56bd289d6832b279.camel@gmail.com> References: <25f5f2d74100b504c9d60fc649cafb8eb3b936ea.camel@gmail.com> <3994ddce20d0bc1b9ea0205a56bd289d6832b279.camel@gmail.com> Message-ID: <4725e74bb9d96307b7041cb780015fac3d3cb01c.camel@gmail.com> Hi Alexandru. The problem seems to be entirely up to me, so I am sorry for troubling everyone. I had been checking out version 5.12, when I find my Qt version is 5.11. Apart from the build script not recognising the -- parallel option, everything seems to be compiling correctly now. I am embarrassed to have made such an obvious mistake. (Crawls back under rock, mumbling) I will post again if anything breaks during the compile session. Doug On Sat, 2019-01-26 at 06:22 +1000, Doug Hutcheson wrote: > Hi Alexandru. > My git command, as copied from my terminal history, was:git clone -- > recursive https://code.qt.io/pyside/pyside-setup > I repeated this several time over the last week or so, including on > Friday 25th January (our time - UTC+10), so I'm sure I have the > latest version. > I am glad that at least I have been using the correct command. > Regards,Doug. > On Fri, 2019-01-25 at 10:17 +0000, Alexandru Croitor wrote: > > Hi, can you provide a link to the source archive you used? > > > > > > > > In the meantime, you could simply use git to clone the pyside-setup > > repo, and checkout the 5.12 branch. > > > > > > > > -> git clone --recursive https://code.qt.io/pyside/pyside-setup > > > > > > > > > On 25. Jan 2019, at 08:51, Doug Hutcheson > > > wrote: > > > > > > > > > > > > I have googled for this without success. I am new to the list and > > > do not know how to search it - my apologies if this is a known > > > issue. > > > > > > > > > > > > I am trying to compile this project for the first time, so > > > perhaps I am doing something stupid. > > > > > > > > > > > > In pyside-setup/sources/shiboken2/, I run cmake . and the script > > > issues the following message: > > > > > > > > > > > > > > > CMake Error at generator/CMakeLists.txt:29 (add_executable): > > > Cannot find source file: > > > > > > > > > > > > shiboken2/cppgenerator.cpp > > > > > > > > > > > > > > > Sure enough, there is no such file on my machine. > > > > > > > > > > > > The problem seems to stem from this block starting at line 6 of > > > generator/CMakeLists.txt: > > > > > > > > > > > > > > > set(shiboken2_SRC > > > generator.cpp > > > shiboken2/cppgenerator.cpp > > > shiboken2/headergenerator.cpp > > > shiboken2/overloaddata.cpp > > > shiboken2/shibokengenerator.cpp > > > main.cpp > > > ) > > > > > > > > > > > > > > > None of the files listed for the shiboken2 directory exist. > > > > > > > > > > > > What have I done wrong? All help gratefully received. > > > Doug > > > > > > > > > _______________________________________________ > > > > > > PySide mailing list > > > > > > PySide at qt-project.org > > > > > > https://lists.qt-project.org/listinfo/pyside > > > > > > > > > > > > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From alexandru.croitor at qt.io Sat Jan 26 00:13:03 2019 From: alexandru.croitor at qt.io (Alexandru Croitor) Date: Fri, 25 Jan 2019 23:13:03 +0000 Subject: [PySide] Latest git download will not compile In-Reply-To: <3994ddce20d0bc1b9ea0205a56bd289d6832b279.camel@gmail.com> References: <25f5f2d74100b504c9d60fc649cafb8eb3b936ea.camel@gmail.com> , <3994ddce20d0bc1b9ea0205a56bd289d6832b279.camel@gmail.com> Message-ID: Consider keeping the conversation public by also CC-ing the list, in case somebody else has some insight. It is a bit unclear to me what you wish to achieve by calling cmake manually on the shiboken project. Which project do you wish to compile? Just shiboken? Also PySide2? Did you follow the guide at https://wiki.qt.io/Qt_for_Python/GettingStarted ? Which branch of the repo are you using? In any case when I checkout the 5.12 branch, the files you mentioned are present for me. I guess you should provide more info about what you wish to achieve, and the sequence of commands you used to do it. ________________________________ From: Doug Hutcheson Sent: Friday, January 25, 2019 9:22:39 PM To: Alexandru Croitor Subject: Re: [PySide] Latest git download will not compile Hi Alexandru. My git command, as copied from my terminal history, was: git clone --recursive https://code.qt.io/pyside/pyside-setup I repeated this several time over the last week or so, including on Friday 25th January (our time - UTC+10), so I'm sure I have the latest version. I am glad that at least I have been using the correct command. Regards, Doug. On Fri, 2019-01-25 at 10:17 +0000, Alexandru Croitor wrote: Hi, can you provide a link to the source archive you used? In the meantime, you could simply use git to clone the pyside-setup repo, and checkout the 5.12 branch. -> git clone --recursive https://code.qt.io/pyside/pyside-setup On 25. Jan 2019, at 08:51, Doug Hutcheson > wrote: I have googled for this without success. I am new to the list and do not know how to search it - my apologies if this is a known issue. I am trying to compile this project for the first time, so perhaps I am doing something stupid. In pyside-setup/sources/shiboken2/, I run cmake . and the script issues the following message: CMake Error at generator/CMakeLists.txt:29 (add_executable): Cannot find source file: shiboken2/cppgenerator.cpp Sure enough, there is no such file on my machine. The problem seems to stem from this block starting at line 6 of generator/CMakeLists.txt: set(shiboken2_SRC generator.cpp shiboken2/cppgenerator.cpp shiboken2/headergenerator.cpp shiboken2/overloaddata.cpp shiboken2/shibokengenerator.cpp main.cpp ) None of the files listed for the shiboken2 directory exist. What have I done wrong? All help gratefully received. Doug _______________________________________________ PySide mailing list PySide at qt-project.org https://lists.qt-project.org/listinfo/pyside -------------- next part -------------- An HTML attachment was scrubbed... URL: From owlbrudder at gmail.com Sat Jan 26 01:33:58 2019 From: owlbrudder at gmail.com (Doug Hutcheson) Date: Sat, 26 Jan 2019 10:33:58 +1000 Subject: [PySide] Latest git download will not compile In-Reply-To: References: <25f5f2d74100b504c9d60fc649cafb8eb3b936ea.camel@gmail.com> ,<3994ddce20d0bc1b9ea0205a56bd289d6832b279.camel@gmail.com> ,<09ebe5b0f52b2bc05649ab2c4d52e940e4b55711.camel@gmail.com> Message-ID: <348bca6896af2c401b8a4c4613d1fec81ab680b8.camel@gmail.com> Thanks Alexandru. For the benefit of the group, I will repeat an explanation of my goal I sent directly to Alexandru by mistake, instead of to the list. I am aiming to build a Linux (Fedora 29) PyQt5 interface to PyQt5RPT, using the shiboken2 generator. This will no doubt be a long and painful learning process, but I am willing to try. "8-) Regards,Doug On Fri, 2019-01-25 at 23:57 +0000, Alexandru Croitor wrote: > Hi, > > > > No worries. > > > > Currently there are no official examples on how to generate bindings > for a separate "Qt" library. > > > > There's only a regular C++ library binding example at > "examples/samplebinding/", and an example for generating bindings for > custom Qt classes as part of a main C++ application > "examples/scriptableapplication/". > > > > So you'll have to dissect them and make sense of to combine bits and > pieces from both. Another source of inspiration are the shiboken > tests and the main PySide modules. > > > > Regards, > Alexandru. > > > From: Doug Hutcheson > > Sent: Saturday, January 26, 2019 12:21:43 AM > > To: Alexandru Croitor > > Subject: Re: [PySide] Latest git download will not compile > > > > > > > Hi Alexandru. > > > > You will see my response to the list. I am really sorry for troubling > you. > > > > I had a forty-year career as a software developer (now retired), so > making such a silly mistake is embarrassing to me. > > > > I am building from source so I can get the generator, so I can > generate python3 interfaces to PyQtRPT - the report writer. It seems > to have some bugs, so I want to develop my own API for it. > > > > Kind regards, > Doug > > > > On Fri, 2019-01-25 at 23:13 +0000, Alexandru Croitor wrote: > > Consider keeping the conversation public by also CC-ing the list, > > in case somebody else has some insight. > > > > > > > > It is a bit unclear to me what you wish to achieve by calling cmake > > manually on the shiboken project. > > > > > > > > Which project do you wish to compile? Just shiboken? Also PySide2? > > Did you follow the guide at > > https://wiki.qt.io/Qt_for_Python/GettingStarted ? > > > > > > > > Which branch of the repo are you using? > > > > > > In any case when I checkout the 5.12 branch, the files you > > mentioned are present for me. > > > > > > > > I guess you should provide more info about what you wish to > > achieve, and the sequence of commands you used to do it. > > > > > > > > > > > > > > > > > > From: Doug Hutcheson > > > > Sent: Friday, January 25, 2019 9:22:39 PM > > > > To: Alexandru Croitor > > > > Subject: Re: [PySide] Latest git download will not compile > > > > > > > > Hi Alexandru. > > > > > > > > My git command, as copied from my terminal history, was: > > git clone --recursive https://code.qt.io/pyside/pyside-setup > > > > > > > > I repeated this several time over the last week or so, including on > > Friday 25th January (our time - UTC+10), so I'm sure I have the > > latest version. > > > > > > > > I am glad that at least I have been using the correct command. > > > > > > > > Regards, > > Doug. > > > > > > > > On Fri, 2019-01-25 at 10:17 +0000, Alexandru Croitor wrote: > > > Hi, can you provide a link to the source archive you used? > > > > > > > > > > > > In the meantime, you could simply use git to clone the pyside- > > > setup repo, and checkout the 5.12 branch. > > > > > > > > > > > > -> git clone --recursive https://code.qt.io/pyside/pyside-setup > > > > > > > > > > > > > On 25. Jan 2019, at 08:51, Doug Hutcheson > > > > wrote: > > > > > > > > > > > > > > > > > > > > I have googled for this without success. I am new to the list > > > > and do not know how to search it - my apologies if this is a > > > > known issue. > > > > > > > > > > > > > > > > I am trying to compile this project for the first time, so > > > > perhaps I am doing something stupid. > > > > > > > > > > > > > > > > In pyside-setup/sources/shiboken2/, I run cmake . and the > > > > script issues the following message: > > > > > > > > > > > > > > > > > > > > CMake Error at generator/CMakeLists.txt:29 (add_executable): > > > > Cannot find source file: > > > > > > > > > > > > > > > > shiboken2/cppgenerator.cpp > > > > > > > > > > > > > > > > > > > > Sure enough, there is no such file on my machine. > > > > > > > > > > > > > > > > The problem seems to stem from this block starting at line 6 of > > > > generator/CMakeLists.txt: > > > > > > > > > > > > > > > > > > > > set(shiboken2_SRC > > > > generator.cpp > > > > shiboken2/cppgenerator.cpp > > > > shiboken2/headergenerator.cpp > > > > shiboken2/overloaddata.cpp > > > > shiboken2/shibokengenerator.cpp > > > > main.cpp > > > > ) > > > > > > > > > > > > > > > > > > > > None of the files listed for the shiboken2 directory exist. > > > > > > > > > > > > > > > > What have I done wrong? All help gratefully received. > > > > Doug > > > > > > > > > > > > _______________________________________________ > > > > > > > > PySide mailing list > > > > > > > > PySide at qt-project.org > > > > > > > > https://lists.qt-project.org/listinfo/pyside > > > > > > > > > > > > > > > > > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cristian.Maureira-Fredes at qt.io Sat Jan 26 15:28:57 2019 From: Cristian.Maureira-Fredes at qt.io (=?iso-8859-1?Q?Cristi=E1n_Maureira-Fredes?=) Date: Sat, 26 Jan 2019 14:28:57 +0000 Subject: [PySide] Latest git download will not compile In-Reply-To: <348bca6896af2c401b8a4c4613d1fec81ab680b8.camel@gmail.com> References: <25f5f2d74100b504c9d60fc649cafb8eb3b936ea.camel@gmail.com> ,<3994ddce20d0bc1b9ea0205a56bd289d6832b279.camel@gmail.com> ,<09ebe5b0f52b2bc05649ab2c4d52e940e4b55711.camel@gmail.com> , <348bca6896af2c401b8a4c4613d1fec81ab680b8.camel@gmail.com> Message-ID: Be careful not to mix bindings and binding generators: PyQt5 uses sip. PySide2 uses shiboken. And when using shiboken, take into consideration to follow one of the existing examples: https://code.qt.io/cgit/pyside/pyside-setup.git/tree/examples/scriptableapplication https://code.qt.io/cgit/pyside/pyside-setup.git/tree/examples/samplebinding Cheers ________________________________________ From: PySide on behalf of Doug Hutcheson Sent: 26 January 2019 01:33:58 To: Alexandru Croitor Cc: pyside at qt-project.org Subject: Re: [PySide] Latest git download will not compile Thanks Alexandru. For the benefit of the group, I will repeat an explanation of my goal I sent directly to Alexandru by mistake, instead of to the list. I am aiming to build a Linux (Fedora 29) PyQt5 interface to PyQt5RPT, using the shiboken2 generator. This will no doubt be a long and painful learning process, but I am willing to try. "8-) Regards, Doug On Fri, 2019-01-25 at 23:57 +0000, Alexandru Croitor wrote: Hi, No worries. Currently there are no official examples on how to generate bindings for a separate "Qt" library. There's only a regular C++ library binding example at "examples/samplebinding/", and an example for generating bindings for custom Qt classes as part of a main C++ application "examples/scriptableapplication/". So you'll have to dissect them and make sense of to combine bits and pieces from both. Another source of inspiration are the shiboken tests and the main PySide modules. Regards, Alexandru. ________________________________ From: Doug Hutcheson Sent: Saturday, January 26, 2019 12:21:43 AM To: Alexandru Croitor Subject: Re: [PySide] Latest git download will not compile Hi Alexandru. You will see my response to the list. I am really sorry for troubling you. I had a forty-year career as a software developer (now retired), so making such a silly mistake is embarrassing to me. I am building from source so I can get the generator, so I can generate python3 interfaces to PyQtRPT - the report writer. It seems to have some bugs, so I want to develop my own API for it. Kind regards, Doug On Fri, 2019-01-25 at 23:13 +0000, Alexandru Croitor wrote: Consider keeping the conversation public by also CC-ing the list, in case somebody else has some insight. It is a bit unclear to me what you wish to achieve by calling cmake manually on the shiboken project. Which project do you wish to compile? Just shiboken? Also PySide2? Did you follow the guide at https://wiki.qt.io/Qt_for_Python/GettingStarted ? Which branch of the repo are you using? In any case when I checkout the 5.12 branch, the files you mentioned are present for me. I guess you should provide more info about what you wish to achieve, and the sequence of commands you used to do it. ________________________________ From: Doug Hutcheson Sent: Friday, January 25, 2019 9:22:39 PM To: Alexandru Croitor Subject: Re: [PySide] Latest git download will not compile Hi Alexandru. My git command, as copied from my terminal history, was: git clone --recursive https://code.qt.io/pyside/pyside-setup I repeated this several time over the last week or so, including on Friday 25th January (our time - UTC+10), so I'm sure I have the latest version. I am glad that at least I have been using the correct command. Regards, Doug. On Fri, 2019-01-25 at 10:17 +0000, Alexandru Croitor wrote: Hi, can you provide a link to the source archive you used? In the meantime, you could simply use git to clone the pyside-setup repo, and checkout the 5.12 branch. -> git clone --recursive https://code.qt.io/pyside/pyside-setup On 25. Jan 2019, at 08:51, Doug Hutcheson > wrote: I have googled for this without success. I am new to the list and do not know how to search it - my apologies if this is a known issue. I am trying to compile this project for the first time, so perhaps I am doing something stupid. In pyside-setup/sources/shiboken2/, I run cmake . and the script issues the following message: CMake Error at generator/CMakeLists.txt:29 (add_executable): Cannot find source file: shiboken2/cppgenerator.cpp Sure enough, there is no such file on my machine. The problem seems to stem from this block starting at line 6 of generator/CMakeLists.txt: set(shiboken2_SRC generator.cpp shiboken2/cppgenerator.cpp shiboken2/headergenerator.cpp shiboken2/overloaddata.cpp shiboken2/shibokengenerator.cpp main.cpp ) None of the files listed for the shiboken2 directory exist. What have I done wrong? All help gratefully received. Doug _______________________________________________ PySide mailing list PySide at qt-project.org https://lists.qt-project.org/listinfo/pyside From owlbrudder at gmail.com Sat Jan 26 22:08:53 2019 From: owlbrudder at gmail.com (Doug Hutcheson) Date: Sun, 27 Jan 2019 07:08:53 +1000 Subject: [PySide] Latest git download will not compile In-Reply-To: References: <25f5f2d74100b504c9d60fc649cafb8eb3b936ea.camel@gmail.com> ,<3994ddce20d0bc1b9ea0205a56bd289d6832b279.camel@gmail.com> ,<09ebe5b0f52b2bc05649ab2c4d52e940e4b55711.camel@gmail.com> , <348bca6896af2c401b8a4c4613d1fec81ab680b8.camel@gmail.com> Message-ID: <02ad87bfde72c29e0e41b0c79dfaa1a7f953270f.camel@gmail.com> Thank you for the helpful post Cristián. I am still working to understand how all these things work together, so you have certainly added to my knowledge.Cheers, Doug On Sat, 2019-01-26 at 14:28 +0000, Cristián Maureira-Fredes wrote: > Be careful not to mix bindings and binding generators: > PyQt5 uses sip.PySide2 uses shiboken. > And when using shiboken, take into consideration to follow one of the > existing examples: > https://code.qt.io/cgit/pyside/pyside-setup.git/tree/examples/scriptableapplication id="-x-evo-selection-end-marker"> > https://code.qt.io/cgit/pyside/pyside-setup.git/tree/examples/samplebinding > > Cheers > ________________________________________From: PySide < > pyside-bounces at qt-project.org> on behalf of Doug Hutcheson < > owlbrudder at gmail.com>Sent: 26 January 2019 01:33:58To: Alexandru > CroitorCc: pyside at qt-project.org > Subject: Re: [PySide] Latest git download will not compile > Thanks Alexandru. > For the benefit of the group, I will repeat an explanation of my goal > I sent directly to Alexandru by mistake, instead of to the list. > I am aiming to build a Linux (Fedora 29) PyQt5 interface to PyQt5RPT, > using the shiboken2 generator. This will no doubt be a long and > painful learning process, but I am willing to try. "8-) > Regards,Doug > On Fri, 2019-01-25 at 23:57 +0000, Alexandru Croitor wrote: > Hi, > > No worries. > > Currently there are no official examples on how to generate bindings > for a separate "Qt" library. > > There's only a regular C++ library binding example at > "examples/samplebinding/", and an example for generating bindings for > custom Qt classes as part of a main C++ application > "examples/scriptableapplication/". > > So you'll have to dissect them and make sense of to combine bits and > pieces from both. Another source of inspiration are the shiboken > tests and the main PySide modules. > > Regards, > Alexandru. > ________________________________From: Doug Hutcheson < > owlbrudder at gmail.com>Sent: Saturday, January 26, 2019 12:21:43 AMTo: > Alexandru CroitorSubject: Re: [PySide] Latest git download will not > compile > Hi Alexandru. > You will see my response to the list. I am really sorry for troubling > you. > I had a forty-year career as a software developer (now retired), so > making such a silly mistake is embarrassing to me. > I am building from source so I can get the generator, so I can > generate python3 interfaces to PyQtRPT - the report writer. It seems > to have some bugs, so I want to develop my own API for it. > Kind regards,Doug > On Fri, 2019-01-25 at 23:13 +0000, Alexandru Croitor wrote: > Consider keeping the conversation public by also CC-ing the list, in > case somebody else has some insight. > > It is a bit unclear to me what you wish to achieve by calling cmake > manually on the shiboken project. > > Which project do you wish to compile? Just shiboken? Also PySide2? > Did you follow the guide at > https://wiki.qt.io/Qt_for_Python/GettingStarted ? > Which branch of the repo are you using? > In any case when I checkout the 5.12 branch, the files you mentioned > are present for me. > I guess you should provide more info about what you wish to achieve, > and the sequence of commands you used to do it. > > ________________________________From: Doug Hutcheson < > owlbrudder at gmail.com>Sent: Friday, January 25, 2019 9:22:39 PMTo: > Alexandru CroitorSubject: Re: [PySide] Latest git download will not > compile > Hi Alexandru. > My git command, as copied from my terminal history, was:git clone -- > recursive https://code.qt.io/pyside/pyside-setup > > I repeated this several time over the last week or so, including on > Friday 25th January (our time - UTC+10), so I'm sure I have the > latest version. > I am glad that at least I have been using the correct command. > Regards,Doug. > On Fri, 2019-01-25 at 10:17 +0000, Alexandru Croitor wrote:Hi, can > you provide a link to the source archive you used? > In the meantime, you could simply use git to clone the pyside-setup > repo, and checkout the 5.12 branch. > -> git clone --recursive https://code.qt.io/pyside/pyside-setup > > On 25. Jan 2019, at 08:51, Doug Hutcheson o:owlbrudder at gmail.com>> wrote: > I have googled for this without success. I am new to the list and do > not know how to search it - my apologies if this is a known issue. > I am trying to compile this project for the first time, so perhaps I > am doing something stupid. > In pyside-setup/sources/shiboken2/, I run cmake . and the script > issues the following message: > CMake Error at generator/CMakeLists.txt:29 (add_executable): Cannot > find source file: > shiboken2/cppgenerator.cpp > Sure enough, there is no such file on my machine. > The problem seems to stem from this block starting at line 6 of > generator/CMakeLists.txt: > set(shiboken2_SRCgenerator.cppshiboken2/cppgenerator.cppshiboken2/hea > dergenerator.cppshiboken2/overloaddata.cppshiboken2/shibokengenerator > .cppmain.cpp) > None of the files listed for the shiboken2 directory exist. > What have I done wrong? All help gratefully > received.Doug_______________________________________________PySide > mailing listPySide at qt-project.org > https://lists.qt-project.org/listinfo/pyside > > _______________________________________________PySide mailing > listPySide at qt-project.org > https://lists.qt-project.org/listinfo/pyside -------------- next part -------------- An HTML attachment was scrubbed... URL: