dolguldur replied to the topic 'Problem importing PyIndi' in the forum. 2 years ago

There seems to be other things that are not right with 1.8.8 and 1.8.9:
Here is what I get trying to install pyindi with version older than 0.2.6 ie 0.2.5 and earlier :

pip install pyindi-client==0.2.5; python -c "import PyIndi"
:

/usr/include/libindi/indiproperty.h:42: Error: Syntax error in input(3).
error: command 'swig' failed with exit status 1


At this line, there is a macro:
class Property
{
    DECLARE_PRIVATE(Property)
public:
    Property();

The macro is defined in indiutility.h
#define DECLARE_PRIVATE(Class) \
    inline Class##Private* d_func() { return reinterpret_cast<Class##Private *>(getPtrHelper(d_ptr)); } \
    inline const Class##Private* d_func() const { return reinterpret_cast<const Class##Private *>(getPtrHelper(d_ptr)); } \
    friend class Class##Private;

I think this is breaking swig

Read More...