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

How to fix this error: the PyQt5.QtCore module failed to register with the sip module

I am trying to use the API of my investment company(kiwoom). There is an instruction on how to use API so I was just replicating it. But the following codes keep giving me an error message that: the PyQt5.QtCore module failed to register with the…
Eun-Ji Kim
  • 19
  • 3
1
vote
1 answer

No local packages or working download links found for SIP, in the Appveyor Windows Containers, when testing python 3.5

For continuous integrations, we test our scripts for Windows OS with appveyor, as usual after each push in GitHub. The tests are launched for python 3.5, 3.6 and 3.7. For 3.6 and 3.7 all is working fine. For 3.5, the test falls due to no SIP…
servoz
  • 606
  • 9
  • 22
1
vote
1 answer

How can I make a python module of two or more C++/Qt classes using SIP?

I have two C++/Qt classes (A.h, A.cpp, B.h, B.cpp): class A : public QObject { // bla-bla }; class B : public A { // bla-bla }; And I want to use in Python classes A and B something like this: import mymodule class MyB(mymodule.B): …
Alex
  • 33
  • 1
  • 8
1
vote
1 answer

Running PyQt4 script more than once inside REAPER results in SIP error

Some Context: REAPER is a Digital Audio Workstation that has an extensive scripting API with Lua, Python, C/C++ and EEL bindings. I haven't found much information regarding how it handles Python internally. On the surface the configuration involves…
meta
  • 11
  • 1
  • 3
1
vote
0 answers

Python(PyQt5) how to use SIP wrapper for C++(Qt5) on win10?

I'm try use SIP wrapper C++ for Python, but it's fail.How can I solov it? My softwares' version: - QT 5.9.1 MSVC2015 - PYQT 5.9.1 - PYTHON 3.6.4 - SIP 4.19.8 //foo.h #ifndef FOO_H #define FOO_H #if defined(FOO_LIBRARY) #define…
JH Lin
  • 11
  • 2
1
vote
5 answers

GNS3 sip/qt error

Have installed GNS3 on my Linux (Debian Strech) and getting below error message, please help, installed from package, OS updated. qt and sip at their newest version on my machine (installed). Fail update installation: No module named 'sip'…
M0rph3us
  • 31
  • 1
  • 5
1
vote
0 answers

Python SIP extension for Qt C++: how to handle QVector signal argument

I'm new to Python/SIP and need to create a Python binding for a Qt/C++ library using it. The class header looks like this: class MyClass : public QObject { Q_OBJECT ... signals: void message(QString msg); void…
BananaJoh
  • 11
  • 2
1
vote
0 answers

binding C++ protobuf message to python

I have a C++ API. The API uses Google protobuf to receive message. Now I want to wrap C++ API to python. In python code, I will create protobuf message (same proto file as C++ API) and call C++ API to send. I am using Python SIP to wrap C++ API.…
Do Ngoc Tuan
  • 33
  • 1
  • 9
1
vote
1 answer

Segmentation fault when using PyQt4 with python3

I receive a segmentation fault when importing PYQt4 with python (3.5.2) using ubuntu 16.04. For instance, the following code produce a segmentation fault: import PyQt4.QtCore I imagine that there are mismatches whith some modules installations...…
1
vote
0 answers

Installing sip for Python on Windows 10

I have a new machine (windows 10) and am running Python 2.7.13 (64 bit). I have managed to install a couple of modules, but now am having an issue with sip, which I need before I can install PyQt4. I downloaded the zip file, extracted the folder to…
PyHulk
  • 56
  • 2
  • 8
1
vote
1 answer

Slot (pointer to method member) as argument to method in SIP

I have a C++ class defined with a method which has a sol (pointer to member method) as argument: MyClass : public QDialog, private Ui::MyClassBase { Q_OBJECT public: MyClass( QWidget *parent = nullptr ); void connectValueChanged( const…
Denis Rouzaud
  • 2,412
  • 2
  • 26
  • 45
1
vote
0 answers

How do I forward fisrt n calls to one phone number and then next n calls to another phone number in sip voip?

I have a vonage business account in which I receive hundreds of calls per minute. I want to outsource my process to different organizations so that they can handle those calls. In this I want to make a system in which make list of phone numbers of…
1
vote
2 answers

Python/SIP Specification File - kwargs and NULL

Just starting to dig into SIP. I have a .h file that contains the following public method: void Allocate(int width, int height, int pitch, bool withHost, float *devMem = NULL, float* hostMem = NULL); I have created a corresponding .sip file: 1…
Jzl5325
  • 3,898
  • 8
  • 42
  • 62
1
vote
0 answers

recipe for target 'main.o' failed

I am trying to install SIP to be able to install PyQt on my Windows system. I'm following a guide "https://riverbankcomputing.com/pipermail/pyqt/2010-May/026642.html" but @ step 8 Then launch : C:\MinGW\bin\mingw32-make.exe I'm receiving following…
tim_p
  • 31
  • 1
  • 6
1
vote
1 answer

Python 2.7 crashes when importing PyQt4.QtDeclarative or PyQt4.Qt on Ubuntu

Some time ago (months?) the program rqt_plot started crashing on startup (SIGSEGV) on my machine. I finally tracked it down a little deeper and found that the problem occurs while python is trying to import PyQt4.QtDeclarative. Unfortunately I…
aldo
  • 2,927
  • 21
  • 36