Questions tagged [python-sip]

SIP is a python library used to port native C/C++ APIs into Python. SIP was originally written to manage the complex interfaces required by PyQT; however, it has general usage for anyone wishing to port C/C++ code into Python.

SIP is a python library used to port native C/C++ APIs into Python. SIP was originally written to manage the complex interfaces required by PyQT; however, it has general usage for anyone wishing to port C/C++ code into Python.

138 questions
2
votes
0 answers

Installing PyQt-gpl-5.5.1 and sip for python 3.4.3+

I'm trying to install eric6-6.1.2 which requires PyQt-gpl-5.5.1 which tells me during python3 configure.py Error: Make sure you have a working sip on your PATH or use the --sip argument to explicitly specify a working sip. How do I install sip…
2
votes
2 answers

python2.7 sip endless makefile

This will be my first question. I have searched through the other questions but unfortunately none of them solved my problem(s). I'm running 32-bit Python (2.7) on Win7. I want to install the PyQt4. I have downloaded PyQt-win-gpl-4.11.4.zip and…
selimcan
  • 84
  • 2
  • 9
2
votes
0 answers

Build complications with PyQt4 and SIP; how would I downgrade to Python 2.7.9 from 2.7.10 in a windows 8.1 machine?

I am new to Python and ran into a bizarre build error when trying to compile my installation of PyQt4 which I need to run as it is a dependency to another module. I was using minGW as my compiler and got a difficult and complicated build error, my…
piman
  • 21
  • 4
2
votes
3 answers

Cannot wrap QWebView.load method

I believe it is common practice (at least it is for me) to be able to wrap function calls. For example, as an example, a minimilistic wrapping function looks like: def wrap(fn, *args, **kwargs): return fn(*args, **kwargs) And you could call an…
three_pineapples
  • 11,579
  • 5
  • 38
  • 75
2
votes
0 answers

How to compile (and link) a python module using PyQt (and sip) under windows

I have a C++ project using Qt5 (also compiles with Qt4) which I want to make available in python (preferable 3.4). In order to do this I use PyQt4 (because of the QtXml module which is, as far as I know, not available in PyQt5 anymore) and sip. This…
Daniel
  • 141
  • 1
  • 10
2
votes
1 answer

API 'QString' has already been set to version 1 on Eclipse

I'm getting following error on starting debug session in Eclipse for my code which uses Enthought Mayavi and PyQt as well. Here is the error log in the console. pydev debugger: starting (pid: 2208) Traceback (most recent call last): File…
2
votes
1 answer

PyQt custom widget in c++

Can I write custom Qt widget in pure C++, compile it and use in PyQt? I'm trying to use the ctypes-opencv with qt and I have performance problems with python's code for displaying opencv's image in Qt form.
luacassus
  • 6,540
  • 2
  • 40
  • 58
2
votes
1 answer

SIP Makefile fail (gnuwin and mingw)

I have downloaded the Sip module for python 2.7, created a makefile and tried the make command on the directory with the makefile, but I get this error: Makefile:3: recipe for target 'all' failed mingw32-make[10]: *** [all] Error…
Forsgren
  • 23
  • 1
  • 6
1
vote
1 answer

PyQt4: disable deleting widget after setCentralWidget

I have two custom widgets (two classes based on QtGui.QWidget). In __init__ of QtGui.QMainWindow I create their instances: self.MyWidget1 = MyWidget1() self.MyWidget2 = MyWidget2() There are also two buttons (QtGui.QPushButton) in __init__ part,…
ghostmansd
  • 3,285
  • 5
  • 30
  • 44
1
vote
1 answer

PyQt - how to replace QString with sip API 2

Please show me how to replace this code: import sip sip.setapi("QString", 2) ... text = QString.fromLatin1("

Character: ").arg(self.displayFont.family()) + \ QChar(key) + \ …

linuxoid
  • 1,415
  • 3
  • 14
  • 32
1
vote
2 answers

Installing PyQt 4.9 on CentOS 6.0 Fails

I'm totally fed up with this problem. I'm trying to install PyQt 4.9 on my server running on CentOS 6.0. When I install it, I get like this [root@myserver PyQt]# python3 configure.py -k Determining the layout of your Qt installation... This is the…
Kris
  • 8,680
  • 4
  • 39
  • 67
1
vote
1 answer

initsip() crashes with a corrupted stack

When getting a pointer to the sip API: sip_API = reinterpret_cast( PyCapsule_Import("sip._C_API", 0)); a crash is reported in initsip(). Also, when constructing C++ classes using boost.Python, a strange error is…
Neil G
  • 32,138
  • 39
  • 156
  • 257
1
vote
1 answer

Syntax error in sip file in Autodesk Python FBX bindings

Im trying to install Autodesk FBX SDK and it requires you to build bindings using sip. When I run the command python PythonBindings.py Python3_x64, it runs the command => RUN COMMAND : "/home/user1/miniconda3/envs/rl37/bin/sip" -o -t FBX_X64…
uniqueid
  • 175
  • 1
  • 10
1
vote
2 answers

Problem importing sip after successful installation

Using python 3.6 in a virtual environment created by python3 -m venv env_name I need to use the python sip module. I activate the venv by source env_name/bin/activate I install this successfully by pip install sip which results in Installing…
Morten Nissov
  • 392
  • 3
  • 13
1
vote
0 answers

Error using sip.isdeleted() after changing from Python 2 to Python 3

I tried to update my code from python 2.7 to 3.7.4. Additonally, the matplotlib backend changed from qt4 to qt5. In the code, I check using sip.isdeleted() if the canvas of the matplotlib is deleted or not as a workaround for the wrapped C/C++…