×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

Problems with installing Python wrappers for INDI

  • Posts: 7
  • Thank you received: 1
Hi

I am trying to install Python wrappers for INDI in Raspberry pi Jessie, but keep getting the same error message after the command “make” :

/home/pi/Desktop/libindipython/indidriverpythonPYTHON_wrap.cxx: In function ‘void ISNewBLOB(const char*, const char*, int*, int*, char**, char**, char**, int)’:
/home/pi/Desktop/libindipython/indidriverpythonPYTHON_wrap.cxx:5843:90: error: ‘PyString_FromStringAndSize’ was not declared in this scope
PyList_SetItem(pValue, i, PyString_FromStringAndSize(*(blobs + i), *(blobsizes + i)));
^
CMakeFiles/_PyIndiDriver.dir/build.make:62: recipe for target 'CMakeFiles/_PyIndiDriver.dir/indidriverpythonPYTHON_wrap.cxx.o' failed
make[2]: *** [CMakeFiles/_PyIndiDriver.dir/indidriverpythonPYTHON_wrap.cxx.o] Error 1
CMakeFiles/Makefile2:95: recipe for target 'CMakeFiles/_PyIndiDriver.dir/all' failed
make[1]: *** [CMakeFiles/_PyIndiDriver.dir/all] Error 2
Makefile:117: recipe for target 'all' failed
make: *** [all] Error 2

I have been following the instruction in the following links :

indilib.org/download/category/6-raspberry-pi.html
indilib.org/develop/tutorials/151-time-l...ith-indi-python.html

What am I doing Wrong?
8 years 4 months ago #5976

Please Log in or Create an account to join the conversation.

  • Posts: 7
  • Thank you received: 1
Hi again

Tried to install Python wrappers for INDI in raspberry pi Ubuntu, here I get the following error messages:

/home/lars/Skrivebord/swig-indi-python/indiclientpython.i:43: Error: Unable to find 'indibasetypes.h'
CMakeFiles/_PyIndi.dir/build.make:53: recipe for target 'indiclientpythonPYTHON_wrap.cxx' failed
make[2]: *** [indiclientpythonPYTHON_wrap.cxx] Error 1
CMakeFiles/Makefile2:60: recipe for target 'CMakeFiles/_PyIndi.dir/all' failed
make[1]: *** [CMakeFiles/_PyIndi.dir/all] Error 2
Makefile:116: recipe for target 'all' failed
make: *** [all] Error 2



Here is a screen dump from my terminal:

lars@lars-desktop:~/Skrivebord$ svn co pyindi-client.googlecode.com/svn/trunk/s...ndi/swig-indi-python
A swig-indi-python/python_simulator_ccd.py
A swig-indi-python/test-indidriver.py
A swig-indi-python/test-indiclient.py
A swig-indi-python/indidriverpython.i
A swig-indi-python/cmake_modules
A swig-indi-python/cmake_modules/FindCFITSIO.cmake
A swig-indi-python/cmake_modules/FindINDI.cmake
A swig-indi-python/tutorial_four_sk.xml
A swig-indi-python/indiclientpython.i
A swig-indi-python/CMakeLists.txt
Checked out revision 32.
lars@lars-desktop:~/Skrivebord$ mkdir libindipython
lars@lars-desktop:~/Skrivebord$ cd libindipython/
lars@lars-desktop:~/Skrivebord/libindipython$ cmake ../swig-indi-python/
-- The C compiler identification is GNU 5.2.1
-- The CXX compiler identification is GNU 5.2.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found SWIG: /usr/bin/swig2.0 (found version "2.0.12")
-- Found PythonLibs: /usr/lib/arm-linux-gnueabihf/libpython3.4m.so (found version "3.4.3+")
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.28")
-- checking for module 'libindi'
-- found libindi, version 1.0.0
-- Found INDI: /usr/include/libindi (found version "1.0.0")
-- Found CFITSIO 3.37: /usr/lib/arm-linux-gnueabihf/libcfitsio.so
-- Configuring done
-- Generating done
-- Build files have been written to: /home/lars/Skrivebord/libindipython
lars@lars-desktop:~/Skrivebord/libindipython$ make
[ 25%] Swig source
Language subdirectory: python
Search paths:
./
/usr/include/python3.4m/
/usr/include/libindi/
/usr/include/
/home/lars/Skrivebord/swig-indi-python/
./swig_lib/python/
/usr/share/swig2.0/python/
./swig_lib/
/usr/share/swig2.0/
Preprocessing...
/home/lars/Skrivebord/swig-indi-python/indiclientpython.i:43: Error: Unable to find 'indibasetypes.h'
CMakeFiles/_PyIndi.dir/build.make:53: recipe for target 'indiclientpythonPYTHON_wrap.cxx' failed
make[2]: *** [indiclientpythonPYTHON_wrap.cxx] Error 1
CMakeFiles/Makefile2:60: recipe for target 'CMakeFiles/_PyIndi.dir/all' failed
make[1]: *** [CMakeFiles/_PyIndi.dir/all] Error 2
Makefile:116: recipe for target 'all' failed
make: *** [all] Error 2
8 years 4 months ago #5986

Please Log in or Create an account to join the conversation.

Looks like the project moved to sourceforge. Let me see if it's working still.
8 years 4 months ago #6004

Please Log in or Create an account to join the conversation.

  • Posts: 49
  • Thank you received: 20
Hi Lars,

as knro mentioned, the project moved to sourceforge. The updated install instructions are in the project wiki: sourceforge.net/p/pyindi-client/wiki/Home/
Works fine on my Thinkpad with Linux Mint 17 and the INDI PPA.

I tried it some weeks ago with my Raspberry Pi on Raspbian Jessie but the CMake script had some problems to find the right INDI version (see my ticket: sourceforge.net/p/pyindi-client/tickets/2/).
You have to replace the swig-indi-python/cmake_modules/FindINDI.cmake by this file: sourceforge.net/p/indi/code/HEAD/tree/tr...dules/FindINDI.cmake
And I also had to add the Python 2.7 path to cmake:
cmake -D PYTHON_LIBRARY=/usr/lib/arm-linux-gnueabihf/libpython2.7.so -D PYTHON_INCLUDE_DIR=/usr/include/python2.7/ ../swig-indi-python/

So the updated instruction for Raspbian Jessie should be:
# download SVN repo
svn co svn://svn.code.sf.net/p/pyindi-client/code/trunk/swig-indi/swig-indi-python/
# update FindINDI.cmake
wget http://sourceforge.net/p/indi/code/HEAD/tree/trunk/cmake_modules/FindINDI.cmake?format=raw -O swig-indi-python/cmake_modules/FindINDI.cmake
# change to build directory
mkdir libindipython
cd libindipython
# execute cmake with python2.7 path
cmake -D PYTHON_LIBRARY=/usr/lib/arm-linux-gnueabihf/libpython2.7.so -D PYTHON_INCLUDE_DIR=/usr/include/python2.7/ ../swig-indi-python/
# build and install
make
sudo make install
Last edit: 8 years 4 months ago by fehlfarbe.
8 years 4 months ago #6006

Please Log in or Create an account to join the conversation.

  • Posts: 7
  • Thank you received: 1
It worked, I got swig-indi-python working in Jessie. Thanks a lot :)
But I still get the same error in ubuntu make.

I also tried to make timelapse.py file from your description, but I can't get it to work. Is there somewhere I can download timelapse.py file?
8 years 4 months ago #6012

Please Log in or Create an account to join the conversation.

  • Posts: 49
  • Thank you received: 20
Do you use the INDI PPA on your Ubuntu machine? The Make script finds INDI 1.0.0 but the current version is 1.1.0.
You can see your version by starting indiserver:
kolbe@edgi ~ $ indiserver
2015-11-30T11:12:37: startup: indiserver 
Usage: indiserver [options] driver [driver ...]
Purpose: server for local and remote INDI drivers
INDI Library: 1.1.0
Code $Rev$. Protocol 1.7.
Options:
 -l d     : log driver messages to <d>/YYYY-MM-DD.islog
 -m m     : kill client if gets more than this many MB behind, default 64
 -p p     : alternate IP port, default 7624
 -f path  : Path to fifo for dynamic startup and shutdown of drivers.
 -v       : show key events, no traffic
 -vv      : -v + key message content
 -vvv     : -vv + complete xml
driver    : executable or device@host[:port]
If it's version 1.0.0 on your system, try to update with:
sudo apt-get update && sudo apt-get upgrade

What's the problem with the timelapse script? Do you get error messages or just no images?
8 years 4 months ago #6074

Please Log in or Create an account to join the conversation.

  • Posts: 7
  • Thank you received: 1
hi fehlfarbe

I have a QHY5L-IIC camera, which I found out after a long time can not be used for time lapse, as I understand it.
I tested timelapse.py with simulated camera and it works as it should.

Thanks for all the help with ubuntu and Jessie, but until QHY updates the driver for the camera, the project is put on hold.
Last edit: 8 years 4 months ago by Lars Drost.
8 years 4 months ago #6075

Please Log in or Create an account to join the conversation.

Time to create page: 0.593 seconds