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
1
vote
1 answer

PyQt4 4.11.4 no longer accepts QBrush(None) or QColor(None)

With PyQt4, I had always been able to initialize QBrush and QColor with None as argument (creates no color etc): QBrush(None) QColor(None) But after I upgraded from 4.11.3 to 4.11.4 (which is a minor upgrade), I found these are no longer…
Angus Yeh
  • 447
  • 3
  • 9
1
vote
0 answers

Different behaviors when using the SIP library in interactive and normal mode

I'm trying to follow the tutorial on this page (I've also added my own simple 'get' method). I'm getting different results whether I use the interactive or normal Python mode. Normal mode word_test.py from word import Word foo = Word("reverse…
1
vote
0 answers

SIP C++ documentation

I have a project in Python which uses SIP to create python wrappers on top of some custom C++ code. Is there any tool which is smart enough to automatically read SIP specification and generate documentation for the Python classes? I have tried pdoc…
Aviral Goel
  • 308
  • 1
  • 3
  • 13
1
vote
1 answer

PyQt4: Why does Python crash on close when using QTreeWidgetItem?

I'm using Python 3.1.1 and PyQt4 (not sure how to get that version number?). Python is crashing whenever I exit my application. I've seen this before as a garbage collection issue, but this time I'm not sure how to correct the problem. This code…
Rini
  • 254
  • 1
  • 10
1
vote
0 answers

SIP/PyQt5: Overloaded functions with same Python signature

SIP/PyQt5 is reporting an error during the parsing of my sip file: __rshift__() has overloaded functions with the same Python signature The offending functions are: QDataStream& operator<<( QDataStream& stream, const…
cmannett85
  • 21,725
  • 8
  • 76
  • 119
1
vote
2 answers

Can't import modules in python: PyQt4 conflicts with SIP

I'm new and my english is not very well, but here I go: I have the newest Arch Linux on my PC and yesterday I tried to install SIP, a Python code generator for wrapping C++ codes. I tried to install SIP and PyQt4 under a virtual enviroment. I got…
user3447702
  • 11
  • 1
  • 3
1
vote
1 answer

Qt C++ code in Python, PyQt4

I need to use dynamic library, writen on Qt/C++ in python code. I found this tool http://pyqt.sourceforge.net/Docs/sip4/using.html#ref-simple-c-example And I have problems with using it. So, I have this files for C++ library hello.h // Define the…
user1113159
  • 645
  • 2
  • 7
  • 14
1
vote
0 answers

SIP Python wrapper for C++

I am new to SIP. I am trying to create a simple python wrapper for a C++ file. Please help me if you have a sample python wrapper for C++. I have got a sample code. But I am getting the error" sip: string.sip:72: This Python slot requires…
1
vote
3 answers

pyqt: unable to find QtCoremod.sip

I'm building a project that depends on pyqt (e.g. VTK with pyqt). I'm getting an error like QtCoremod.sip: No such file (or something similar). What's going wrong?
Stuart Berg
  • 17,026
  • 12
  • 67
  • 99
1
vote
0 answers

ld library errors when building pyqt for maya 2013 on osx 10.6

I am having similar errors to this PyQt configuration and installation error I really need to figure it out rather that use the packages that were offered as a solution to the original posts question (I need control of the Install locations for my…
medwards
  • 11
  • 3
1
vote
1 answer

PyQt configuration and installation error

I'm trying to install PyQt for Maya on my Macbook pro. I've succesfully installed Qt and Sip and I'm failing to install PyQt. The versions I'm using are OSX 10.6.8, Qt 4.7.1 - modified Autodesk Qt, Sip 4.13.2, PyQt 4.9.1 When configuring pyqt it…
0
votes
1 answer

How to compile 64 bit Python library (SIP, for example) at the 32 bit old Mac with py2app?

I need to compile 64 bit libraries for Python (SIP for example) instead 32-bit, compiled by my old 32bit Mac for using to .app bandle at new Macs. Looks like similar question placed here Is it possible to compile a 64 bit executable on a 32 bit…
Michael_XIII
  • 175
  • 1
  • 14
0
votes
0 answers

Problems when binding PyQt5 library using Python SIP

I'm currently trying to integrate my C++ Qt5 library in Python using sip based on this tutorial (section "Using a Real Library"). However, I'm having some problems with the Qt5 sip files when I run sip-install or python -m pip install . Edit: I…
0
votes
0 answers

I'm looking for a SIP client software stack

I'm looking for a SIP client software stack. It will need to be able to send audio files and collect Telephone-events. It is critically important that it supports connections through proxy-servers (Session Border Controllers). There is no need…
user3073001
  • 269
  • 3
  • 13
0
votes
1 answer

How to translate std::list from c++ to python with SIP

I am using SIP version 6.0.1 with python 3.8 and have a given c++11 API. (on Ubuntu 18.04) The goal is to store e.g. custom struct pointers (the structs I also translated with sip) in std::list using python. I constructed a tiny example to make my…