×

INDI Library v2.0.6 is Released (02 Feb 2024)

Bi-monthly release with minor bug fixes and improvements

Pyindi-client wrappers problem

  • Posts: 15
  • Thank you received: 0
Dear all

I'm trying to follow the steps on sourceforge.net/p/pyindi-client/wiki/Home/ , but when I try to cmake ../swig-indi-python it returns me the following error:
emalabro@emalabro-VirtualBox:~/libindipython$ cmake ../swig-indi-python
-- Found PythonInterp: /usr/bin/python (found version "2.7.10")
CMake Error at /usr/share/cmake-3.2/Modules/FindPackageHandleStandardArgs.cmake:138 (message):
Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS)
Call Stack (most recent call first):
/usr/share/cmake-3.2/Modules/FindPackageHandleStandardArgs.cmake:374 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-3.2/Modules/FindPythonLibs.cmake:205 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:14 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/emalabro/libindipython/CMakeFiles/CMakeOutput.log".

Any suggestion?
7 years 11 months ago #7673

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

  • Posts: 314
  • Thank you received: 95

Replied by Oleg on topic Pyindi-client wrappers problem


sudo apt-get install python-dev
You can try my open project Astronomy Linux
The following user(s) said Thank You: Jean-Luc
7 years 11 months ago #7682

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

  • Posts: 226
  • Thank you received: 88
Thanks Oleg, I've added in the wiki to install python-dev and libindi-dev.
By the way I just tested using python2.7 under Fedora 22 and swig 3.0, that was ok.
If someone has made a complete step-by-step install procedure under Ubuntu, I could put it in the wiki.
7 years 11 months ago #7684

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

  • Posts: 314
  • Thank you received: 95

Replied by Oleg on topic Pyindi-client wrappers problem

Ok. My current OS is Ubuntu 15.10 (64 bit).

1. at first, you have to install INDI and libindi-dev:
sudo apt-get install libindi-dev

2. also, you need the svn:
sudo apt-get install subversion

3. you have to install swig3.0:
sudo apt-get install swig3.0

4. Python binding in the swig-indi/swing-indi-python directory. To build and install:
svn co http://pyindi-client.googlecode.com/svn/trunk/swig-indi/swig-indi-python
mkdir libindipython
cd libindipython
cmake ../swig-indi-python
make
sudo make install

5. install cherrypy version 3:
sudo apt-get install python-cherrypy3

6. install ws4py:
sudo mkdir /opt/ws4py
sudo chown user:user /opt/ws4py # !!! you must change user on your system login!
cd /opt/ws4py
git clone https://github.com/Lawouach/WebSocket-for-Python.git 
cd WebSocket-for-Python
sudo python setup.py install
7. install and run the websocket server:
svn co http://pyindi-client.googlecode.com/svn/trunk/pyindi-ws
cd pyindi-ws
python indi_simple_html_cherrypy_server.py

8. run an indiserver somewhere:
indiserver -p 7680 indi_simulator_telescope indi_simulator_ccd  # you can change port number 7680

9. open your browser:
You can try my open project Astronomy Linux
The following user(s) said Thank You: Emanuele
Last edit: 7 years 11 months ago by Oleg.
7 years 11 months ago #7685
Attachments:

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

  • Posts: 15
  • Thank you received: 0
Ok then, I followed your steps but I still get an error at cmake ../swig-indi-python

emalabro@emalabro-VirtualBox:~/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/swig3.0 (found version "3.0.2")
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython2.7.so (found version "2.7.10")
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.28")
-- checking for module 'libindi'
-- found libindi, version 1.2.0
-- Could NOT find INDI (missing: INDI_MAIN_LIBRARIES) (found version "1.2.0")
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
CFITSIO_INCLUDE_DIR (ADVANCED)
used as include directory in directory /home/emalabro/swig-indi-python
used as include directory in directory /home/emalabro/swig-indi-python
CFITSIO_LIBRARIES (ADVANCED)
linked by target "_PyIndiDriver" in directory /home/emalabro/swig-indi-python

-- Configuring incomplete, errors occurred!
See also "/home/emalabro/libindipython/CMakeFiles/CMakeOutput.log".
7 years 11 months ago #7689

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

  • Posts: 314
  • Thank you received: 95

Replied by Oleg on topic Pyindi-client wrappers problem

I don't see the CFITSIO in your case.

Look at my case:

oleh@oleh:~$ 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.
oleh@oleh:~$ mkdir libindipython
oleh@oleh:~$ cd libindipython
oleh@oleh:~/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/swig3.0 (found version "3.0.2")
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython2.7.so (found version "2.7.10")
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.28")
-- checking for module 'libindi'
-- found libindi, version 1.2.0
-- Could NOT find INDI (missing: INDI_MAIN_LIBRARIES) (found version "1.2.0")
-- Found CFITSIO 3.37: /usr/lib/x86_64-linux-gnu/libcfitsio.so
-- Configuring done
-- Generating done
-- Build files have been written to: /home/oleh/libindipython
oleh@oleh:~/libindipython$
You can try my open project Astronomy Linux
7 years 11 months ago #7696

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

  • Posts: 314
  • Thank you received: 95

Replied by Oleg on topic Pyindi-client wrappers problem

You can try install the CFITSIO from its sources:
wget ftp://heasarc.gsfc.nasa.gov/software/fitsio/c/cfitsio_latest.tar.gz
tar xvzf cfitsio_latest.tar.gz
cd cfitsio
./configure --prefix=/usr/local
make
sudo make install
You can try my open project Astronomy Linux
7 years 11 months ago #7697

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

  • Posts: 15
  • Thank you received: 0
Ok as soon as possible I will try this. This passage has to be done before anything else or there's no problem of temporal succession?
Is it possible to use Ekos virtual machine to do the steps?
7 years 11 months ago #7698

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

  • Posts: 314
  • Thank you received: 95

Replied by Oleg on topic Pyindi-client wrappers problem

Hmm... I don't use Ekos virtual machine :(
You can try install last CFITSIO in any case.
You can try my open project Astronomy Linux
7 years 11 months ago #7699

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

  • Posts: 15
  • Thank you received: 0
CFTSIO will be good for Ubuntu 15.10? I'm currently using a virtual machine. anyway, even in Ekos returns an analogue problem at the same step. :unsure: I'll reply as soon I'll try to install CFTSIO :)

Thanks for all!
7 years 11 months ago #7700

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

  • Posts: 314
  • Thank you received: 95

Replied by Oleg on topic Pyindi-client wrappers problem


My current OS is Ubuntu 15.10 (64 bit).

P.S. Check these packages on your Ekos virtual machine:
You can try my open project Astronomy Linux
Last edit: 7 years 11 months ago by Oleg.
7 years 11 months ago #7701
Attachments:

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

  • Posts: 314
  • Thank you received: 95

Replied by Oleg on topic Pyindi-client wrappers problem

P.P.S. try it:
sudo apt-get install libcfitsio3-dev
You can try my open project Astronomy Linux
7 years 11 months ago #7703

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

Time to create page: 0.949 seconds