×

INDI Library v1.9.9 Released (30 Nov 2022)

Bi-monthly INDI Library released with new drivers and bug fixes.

Pyindi-client wrappers problem

  • 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: 6 years 7 months ago by Oleg.
6 years 7 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".
6 years 7 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
6 years 7 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
6 years 7 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?
6 years 7 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
6 years 7 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!
6 years 7 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: 6 years 7 months ago by Oleg.
6 years 7 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
6 years 7 months ago #7703

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

  • Posts: 15
  • Thank you received: 0
With your last suggestion it worked! :) thank you so much! just a thing... the following step is not very clear for me (sorry, I'm new to this kind of things :S )

6. install ws4py:
sudo mkdir /opt/ws4py
sudo chown user:user /opt/ws4py # !!! you must change user on your system login!

at the end of the 5. step, I'm currently in the libindipython dir. Shall I have to change the dir or follow the step as I read them? and I don't understand # !!! you must change user on your system login! ... Sorry again :dry:
6 years 7 months ago #7704

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

  • Posts: 15
  • Thank you received: 0
I just realised your comment :woohoo: sorry, just a lapsus :silly:
6 years 7 months ago #7705

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

What is you system login?
You can use the terminal command:
whoami

See my system login in attached picture:
You can try my open project Astronomy Linux
The following user(s) said Thank You: Emanuele
6 years 7 months ago #7706
Attachments:

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

Time to create page: 0.810 seconds