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

tuanakka dongoctuan.0101 at gmail.com
Wed Dec 6 07:55:09 GMT 2017


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?






--
Sent from: http://python.6.x6.nabble.com/PyQt-f1792048.html


More information about the PyQt mailing list