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?
8 years 5 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
8 years 5 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.
8 years 5 months ago #7684

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

Pyindi-client wrappers problem - INDI Forum
  • Posts: 314
  • Thank you received: 95

Replied by Oleg on topic Pyindi-client wrappers problem


Rendering Error in layout Message/Item: array_keys(): Argument #1 ($array) must be of type array, null given. Please enable debug mode for more information.

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".
8 years 5 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
8 years 5 months ago #7696

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


×

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

Bi-monthly release with minor bug fixes and improvements

  • Posts: 314
  • Thank you received: 95

Replied by Oleg on topic Pyindi-client wrappers problem


Rendering Error in layout Message/Item: array_keys(): Argument #1 ($array) must be of type array, null given. Please enable debug mode for more information.

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?
8 years 5 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
8 years 5 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!
8 years 5 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: 8 years 5 months ago by Oleg.
8 years 5 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


Rendering Error in layout Message/Item: array_keys(): Argument #1 ($array) must be of type array, null given. Please enable debug mode for more information.

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

Time to create page: 0.723 seconds