[PyQt] sipconfig module not found
Declan Hegarty
declan.hegarty at gmail.com
Thu Jul 7 09:21:10 BST 2016
Just to make sure I'm not completely heading down the rabbit hole here - I
see the following on the PyQt5 download page:
>> "Before you can build PyQt5 you must have already built and installed SIP
<https://www.riverbankcomputing.com/software/sip/download>"
I assume that because I'm not trying to build PyQt5 from source (I'm
installing a binary package), there is no requirement to build SIP. If
that assumption is wrong, then I'll need to revisit.
I also note the following from a previous mail on this list:
*>> sipconfig.py is deprecated and does not support PyQt5*
I guess I have two options here. Either stick with PyQt5 and get a handle
on what the build system looks like without using the sipconfig module, or
revert to PyQt4 and try re-following the Riverbank tutorials, continuing to
use sipconfig.py. As per my original mail, I'm trying to expose an
existing C++ API to Python. Some of that API uses classes which inherit
from QObject, which is why I thought SIP looked like the best bet to create
the bindings. I'm not looking for bang up-to-date bindings to the latest
Qt classes though, so it's likely that PyQt4 will be more than enough for
my purposes......I'm just slightly reluctant to use a build system which
appears to have been superseded.
Declan.
On Wed, Jul 6, 2016 at 10:13 AM, Declan Hegarty <declan.hegarty at gmail.com>
wrote:
> Hello,
>
> I've been looking into using SIP as a way to bind an existing C++ API to
> Python. I've installed using the PyQt5 binaries (OS is Windows 7), and in
> that installation I can see sip.exe at the following location:
>
> \Programs\Python\Python35-32\Lib\site-packages\PyQt5
>
> If I add that to my PATH environment variable and type sip -help in a
> command prompt I can see the usage hints - so looks like the installation
> is OK.
>
> In trying to follow the SIP tutorial "A Simple C++ Example" in the
> Riverbank reference guide, I hit an issue using the suggested configure.py
> script which tries to import the module sipconfig. I don't see
> sipconfig.py anywhere in the installation directory.
>
> I've seen reference to this issue in previous posts, and the following
> reply from Phil Thompson:
>
> >> The recommended solution is to use the configure.py from QScintilla (the
> >> current snapshot is best) and read the comments. It's been designed to
> >> be reused.
>
> >> Phil
>
> I've downloaded QScintilla and can see the configure.py script there, but I'm lost as to how to deploy that in the context of the tutorial example mentioned above. Can anybody help?
>
>
> Many thanks.
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20160707/26d65d0f/attachment.html>
More information about the PyQt
mailing list