[PyQt] [Error] No %Module has been specified for module defined in

Phil Thompson phil at riverbankcomputing.com
Thu Dec 7 00:06:20 GMT 2017


On 6 Dec 2017, at 7:55 am, tuanakka <dongoctuan.0101 at gmail.com> wrote:
> 
> I want to use SIP to wrap a library. But when compile has error like title.
> 
> file PyIpcMessage.sip
> 
> 
> class IpcMessage
> {
> 	%TypeHeaderCode
> 	#include "IpcMessage.pb.h"
> 	using namespace viettel::messages;
> 	%End
> 
> 	public:
> 		IpcMessage();
> 
> 		bool has_msg_id() const;
> 		void clear_msg_id();
> 		int msg_id() const;
> 		void set_msg_id(int value);
> };
> 
> 
> file pygateway.sip
> 
> %Module (name=pygateway)
> 
> #Include PyIpcMessage.sip
> 
> when i run: sip -c . pygateway.sip
> It generates error: sip: No %Module has been specified for module defined in
> PyIpcMessage.sip
> 
> Can you help me?

Works fine for me - once you fix the syntax error.

Phil


More information about the PyQt mailing list