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
0
votes
0 answers

Error in installing sip4.16.3 for PyQt4

I am trying to install PyQt4 on mu ubuntu 14.o4 LTS. The installation manual says that before installing PyQt, sip must be installed having version atleast 4.16 . So, I downloaded the archive and installed it as given here python…
rahulmishra
  • 620
  • 1
  • 13
  • 29
0
votes
0 answers

Qt, PyQt and SIP compatibility issue. (TypeError: 'sip.methoddescriptor' object is not callable)

I've been trying to compile Qt and PyQt for a couple days and couldn't get it work with the software that was working in the previous Qt/PyQt version. The error can be recreate when I do this, from PyQt4 import…
Sun Ltk
  • 1
  • 4
0
votes
1 answer

Why is pyuic4 subclassing object instead of QDialog?

I am newly using PyQt4 on Ubuntu. My problem is that pyuic4 generates code that subclasses object rather than the appropriate widget class, which in this case should be QDialog. I can import PyQt4.Qt in the python interpreter without error, and I…
KJR
  • 3
  • 2
0
votes
1 answer

Adding SIP as a compiler for qmake

I'm trying to integrate PyQt5 binding creation into my qmake build process, I have my SIP file ready and I've setup a compiler for it: SIP_FILES += global/sip/Sy_version.sip sipSourceBuilder.input = SIP_FILES sipSourceBuilder.output_function =…
cmannett85
  • 21,725
  • 8
  • 76
  • 119
0
votes
1 answer

Python pjsua - How to create a custom message?

I'm using pjsua python module, and I don't know how to create a custom message like below: mY'0E@@b,%+&KEEPALIVE sip:user@192.168.0.10 SIP/2.0 Via: SIP/2.0/UDP 192.168.0.10;rport;branch=z9hG4bKPjgdQdo8azxxwRZ9aCVJy5Wdr27fTgDBUy Max-Forwards:…
David Viana
  • 516
  • 2
  • 8
  • 17
0
votes
1 answer

PyQt5 - pyuic5 failed with wrong SIP version

I've faced an issue while using Python3 / PyQt5 on a brand new Qt5 installation My environment is: LSB Version: …
Emmanuel BRUNET
  • 1,286
  • 3
  • 19
  • 46
0
votes
1 answer

Unable to open file for playback: Invalid argument [status=120022]

I am using pjsua python wrapper to make a sip call and play wav file. Below is the code which tries to play the file: # Notification when call's media state has changed. def on_media_state(self): global lib if…
BTR Naidu
  • 1,063
  • 3
  • 18
  • 45
0
votes
1 answer

Troubles installing PyQt4

I'm following this guide. Python is at C:\Python31 PyQt4 is at C:\Python31\pyqt sip is at C:\Python31\sip Qt is at C:\Qt\4.6.0 I followed the instructions on that guide, but when I tried to test it (from PyQt4.Qt install *), it said the module…
Andrew
  • 12,172
  • 16
  • 46
  • 61
0
votes
0 answers

How to make functions in python extension module visible to Emacs?

So, I have some C++ libraries that I want to use with python; they are compiled into a series of .so files, and I can import them just fine. The wrappers from C++ to python for these .so files are generated by SIP. I like to use Emacs as a…
Adam Miller
  • 1,756
  • 1
  • 25
  • 44
0
votes
2 answers

python-sip: How to access a DLL from both Python and C++

I have a C++ GUI, it load a DLL when running. I use SIP to import the DLL in python. I need to embed the python part in the GUI, and some data are needed to exchange between python and C++. For example, in the C++ GUI, I can enter command from a…
sunmooner
  • 13
  • 1
  • 5
0
votes
1 answer

Sip file syntax error

I am creating a SIP file to control the building of multiple .sip files for a project I've been working on. I used one of the files the comes with PyQt as an example on how to build one file that will import other .sip files and build them in one…
jsawatzky
  • 75
  • 7
0
votes
0 answers

Underlying C++ instance of a PyQt4 object isn't deleted at function's end, but it is deleted right after return

I used sip.isdeleted(obj) in the conditions of two conditional breakpoints (the function isdeleted refers to exactly the same object in both cases) - one appears at the last line of a function, and the other appears at the line following the…
Tomer
  • 189
  • 1
  • 3
  • 11
0
votes
0 answers

Error importing PyQt4.QtCore

I've been trying to get some GUI apps based on PyQt to run. Somewhere in the PPython scripts is the following import: from PyQt4.QtCore import * This is the error that I keep getting consistently. RuntimeError: the sip module implements API v8.0 to…
Jaidev Deshpande
  • 3,016
  • 1
  • 16
  • 17
0
votes
1 answer

SIP Python/C++ binding fails to compile for simple example

After successfully compiling a Python/C binding with SIP I wanted to do the same thing with Python/C++. For some reason this doesn't work. Here's the files: fib.cpp #include "fib.h" int fib1(int n) { if (n <= 0) { return 0; } else…
mrdr
  • 95
  • 10
-1
votes
2 answers

Using PyQt4 & sip for shared maya script - how to set up modules?

I want to use PyQt4 and sip in a shared maya script. I figured I can't use pip-install because I would only get these modules locally on my machine. I manually extracted these folders into my script directory. I can import both PyQt4 and sip but I…
Tireless22
  • 31
  • 3
1 2 3
9
10