Royer replied to the topic 'INDI and DMK on Ubuntu 18.04' in the forum. 5 years ago

Thank you very much for your answer! I did not know the udev rules. Now I can connect the camera but I experience many troubles when I want to get the video stream or acquire images. The INDI log says:

Driver indi_v4l2_ccd: indi_v4l2_ccd dispatch error: Property CCD_VIDEO_STREAM is not defined in V4L2 CCD.
Driver indi_v4l2_ccd: indi_v4l2_ccd dispatch error: Property CCD_EXPOSURE is not defined in V4L2 CCD.
Driver indi_v4l2_ccd: indi_v4l2_ccd dispatch error: Property CCD_ABORT_EXPOSURE is not defined in V4L2 CCD.
Driver indi_v4l2_ccd: indi_v4l2_ccd dispatch error: Property CCD_EXPOSURE is not defined in V4L2 CCD.
Driver indi_v4l2_ccd: indi_v4l2_ccd dispatch error: Property CCD_ABORT_EXPOSURE is not defined in V4L2 CCD.

Sometimes at connection, I get a warning window saying that the v4l2 driver has crashed. Are there specific settings to do ?

Read More...

Royer created a new topic ' INDI and DMK on Ubuntu 18.04' in the forum. 5 years ago

Hello everyone,

I wan't to use my DMK 31 camera as guider but I don't even manage to connect it to Ubuntu... The camera is actually seen by the system, in Linux log and by entering 'lsusb' in the shell, but I cannot open it with Ekos (it only finds my laptop's webcam). I think that the camera is not recognized as a camera and attributed to a \dev\video# file that I can refer to. Do you have an idea ? Is that a driver problem ?

Thanks.

Read More...

It worked :) !

Many thanks for your help !

Read More...

locate libz.so
/lib/arm-linux-gnueabihf/libz.so.1
/lib/arm-linux-gnueabihf/libz.so.1.2.8

locate cfitsio
/usr/lib/arm-linux-gnueabihf/libcfitsio.so.2
/usr/lib/arm-linux-gnueabihf/libcfitsio.so.2.3.37
/usr/share/doc/libcfitsio2
/usr/share/doc/libcfitsio2/changelog.Debian.gz
/usr/share/doc/libcfitsio2/copyright
/var/lib/dpkg/info/libcfitsio2:armhf.list
/var/lib/dpkg/info/libcfitsio2:armhf.md5sums
/var/lib/dpkg/info/libcfitsio2:armhf.postinst
/var/lib/dpkg/info/libcfitsio2:armhf.postrm
/var/lib/dpkg/info/libcfitsio2:armhf.shlibs
/var/lib/dpkg/info/libcfitsio2:armhf.symbols

So I have added /lib/arm-linux-gnueabihf to the setup.cfg file but I still have the error about library location.
arm-linux-gnueabihf-g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.5/indiclientpython_wrap.o /usr/lib/arm-linux-gnueabihf/libindiclient.a -L /usr/lib -L /usr/lib/arm-linux-gnueabihf -L /lib/arm-linux-gnueabihf -lz -lcfitsio  -o build/lib.linux-armv7l-3.5/_PyIndi.cpython-35m-arm-linux-gnueabihf.so

/usr/bin/ld: cannot find -lz
/usr/bin/ld: cannot find -lcfitsio
collect2: error: ld returned 1 exit status


Read More...

I'm not sure to get what I have to change exactly and why it doesn't work on my Pi. It is a very fresh installation and I just followed the tuto.

My 'setup.cfg' file contains only :

[build_ext]
swig_opts = -v -Wall -c++ -threads -I/usr/include -I/usr/include/libindi
include_dirs = /usr/include:/usr/include/libindi
libraries = z cfitsio nova
library_dirs = /usr/lib:/usr/lib/arm-linux-gnueabihf

And it still not work.

I work on the pyindi-client code files found by :
svn checkout https://svn.code.sf.net/p/pyindi-client/code/trunk ~/pyindi-client-code


Read More...

Ok, I have corrected this but I get a new error :

running install
running build_ext
building '_PyIndi' extension
swigging indiclientpython.i to indiclientpython_wrap.cpp
swig -python -v -Wall -c++ -threads -I/usr/include -I/usr/include/libindi -o indiclientpython_wrap.cpp indiclientpython.i
Language subdirectory: python
Search paths:
   ./
   /usr/include/
   /usr/include/libindi/
   ./swig_lib/python/
   /usr/share/swig3.0/python/
   ./swig_lib/
   /usr/share/swig3.0/
Preprocessing...
Starting language-specific parse...
/usr/include/libindi/baseclient.h:33: Warning 322: Redundant redeclaration of 'MAXRBUF',
/usr/include/libindi/indibase.h:8: Warning 322: previous declaration of 'MAXRBUF'.
/usr/include/libindi/baseclient.h:229: Warning 325: Nested struct not currently supported (BLOBMode ignored)
/usr/include/libindi/basedevice.h:30: Warning 322: Redundant redeclaration of 'MAXRBUF',
/usr/include/libindi/indibase.h:8: Warning 322: previous declaration of 'MAXRBUF'.
Processing types...
C++ analysis...
/usr/include/libindi/baseclient.h:55: Warning 403: Class 'INDI::BaseClient' might be abstract, no constructors generated,
/usr/include/libindi/indibase.h:78: Warning 403: Method INDI::BaseMediator::newDevice(INDI::BaseDevice *) might not be implemented.
Processing nested classes...
Generating wrappers...
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include -I/usr/include/libindi -I/usr/include/python3.5m -c indiclientpython_wrap.cpp -o build/temp.linux-armv7l-3.5/indiclientpython_wrap.o -std=c++11
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
arm-linux-gnueabihf-g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.5/indiclientpython_wrap.o /usr/lib/arm-linux-gnueabihf/libindiclient.a -lz -lcfitsio -lnova -o build/lib.linux-armv7l-3.5/_PyIndi.cpython-35m-arm-linux-gnueabihf.so
/usr/bin/ld: cannot find -lz
/usr/bin/ld: cannot find -lcfitsio
/usr/bin/ld: cannot find -lnova
collect2: error: ld returned 1 exit status
error: command 'arm-linux-gnueabihf-g++' failed with exit status 1

It seems to be a similar error as the one I have seen on this topic : indilib.org/forum/general/2047-problems-...di.html?limitstart=0
But I don't see how it has been solved.

Thank you again for your help :)

Read More...

Thank you for your answer !

I have done what you said and I got this after typing python3 setup.py install --user :

running install
running build_ext
building '_PyIndi' extension
swigging indiclientpython.i to indiclientpython_wrap.cpp
swig -python -v -Wall -c++ -threads -I/usr/include -I/usr/include/libindi -o indiclientpython_wrap.cpp indiclientpython.i
Language subdirectory: python
Search paths:
   ./
   /usr/include/
   /usr/include/libindi/
   ./swig_lib/python/
   /usr/share/swig3.0/python/
   ./swig_lib/
   /usr/share/swig3.0/
Preprocessing...
Starting language-specific parse...
/usr/include/libindi/baseclient.h:33: Warning 322: Redundant redeclaration of 'MAXRBUF',
/usr/include/libindi/indibase.h:8: Warning 322: previous declaration of 'MAXRBUF'.
/usr/include/libindi/baseclient.h:229: Warning 325: Nested struct not currently supported (BLOBMode ignored)
/usr/include/libindi/basedevice.h:30: Warning 322: Redundant redeclaration of 'MAXRBUF',
/usr/include/libindi/indibase.h:8: Warning 322: previous declaration of 'MAXRBUF'.
Processing types...
C++ analysis...
/usr/include/libindi/baseclient.h:55: Warning 403: Class 'INDI::BaseClient' might be abstract, no constructors generated,
/usr/include/libindi/indibase.h:78: Warning 403: Method INDI::BaseMediator::newDevice(INDI::BaseDevice *) might not be implemented.
Processing nested classes...
Generating wrappers...
Traceback (most recent call last):
  File "setup.py", line 110, in <module>
    "Topic :: Scientific/Engineering :: Astronomy"
  File "/usr/lib/python3.5/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/usr/lib/python3.5/distutils/dist.py", line 955, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python3.5/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "setup.py", line 61, in run
    self.run_command('build_ext')
  File "/usr/lib/python3.5/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python3.5/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/usr/lib/python3/dist-packages/setuptools/command/build_ext.py", line 49, in run
    _build_ext.run(self)
  File "/usr/lib/python3.5/distutils/command/build_ext.py", line 338, in run
    self.build_extensions()
  File "/usr/lib/python3.5/distutils/command/build_ext.py", line 447, in build_extensions
    self._build_extensions_serial()
  File "/usr/lib/python3.5/distutils/command/build_ext.py", line 472, in _build_extensions_serial
    self.build_extension(ext)
  File "/usr/lib/python3/dist-packages/setuptools/command/build_ext.py", line 174, in build_extension
    _build_ext.build_extension(self, ext)
  File "/usr/lib/python3.5/distutils/command/build_ext.py", line 532, in build_extension
    depends=ext.depends)
  File "/usr/lib/python3.5/distutils/ccompiler.py", line 574, in compile
    self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
  File "/usr/lib/python3.5/distutils/unixccompiler.py", line 118, in _compile
    extra_postargs)
TypeError: can only concatenate list (not "str") to list

Did it worked ?

I tried to import PyIndi in Python and it raised an error saying that it doesn't find the module :
Traceback (most recent call last):
  File "/home/clement/pyindi-client-code/pip/pyindi-client/PyIndi.py", line 18, in swig_import_helper
    fp, pathname, description = imp.find_module('_PyIndi', [dirname(__file__)])
  File "/usr/lib/python3.5/imp.py", line 296, in find_module
    raise ImportError(_ERR_MSG.format(name), name=name)
ImportError: No module named '_PyIndi'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/clement/pyindi-client-code/pip/pyindi-client/PyIndi.py", line 28, in <module>
    _PyIndi = swig_import_helper()
  File "/home/clement/pyindi-client-code/pip/pyindi-client/PyIndi.py", line 20, in swig_import_helper
    import _PyIndi
ImportError: No module named '_PyIndi'

Maybe there is another step.

Read More...

Hi all,

I am trying to install pyindi-client on my Raspberry Pi 3 following this tuto : indilib.org/support/tutorials/166-instal...on-raspberry-pi.html

I have installed Ubuntu Mate 16.04 on a 64 GB SD card, upgraded all its packages, installed indi-full, everything successfully. But at this step :

pip3 install --user --install-option="--prefix=" pyindi-client
The installation raises an error concerning a missing C++ 2011 compiler.
/usr/lib/python3/dist-packages/pip/commands/install.py:198: UserWarning: Disabling all use of wheels due to the use of --build-options / --global-options / --install-options.
  cmdoptions.check_install_build_global(options)
Collecting pyindi-client
  Downloading pyindi-client-0.2.1.tar.gz
Skipping bdist_wheel for pyindi-client, due to binaries being disabled for it.
Installing collected packages: pyindi-client
  Running setup.py install for pyindi-client ... error
    Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-bbgycfcq/pyindi-client/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-59uuj_nv-record/install-record.txt --single-version-externally-managed --compile --prefix= --user --prefix=:
    running install
    running build_ext
    building '_PyIndi' extension
    swigging indiclientpython.i to indiclientpython_wrap.cpp
    swig -python -v -Wall -c++ -threads -I/usr/include -I/usr/include/libindi -o indiclientpython_wrap.cpp indiclientpython.i
    Language subdirectory: python
    Search paths:
       ./
       /usr/include/
       /usr/include/libindi/
       ./swig_lib/python/
       /usr/share/swig3.0/python/
       ./swig_lib/
       /usr/share/swig3.0/
    Preprocessing...
    Starting language-specific parse...
    /usr/include/libindi/baseclient.h:33: Warning 322: Redundant redeclaration of 'MAXRBUF',
    /usr/include/libindi/indibase.h:8: Warning 322: previous declaration of 'MAXRBUF'.
    /usr/include/libindi/baseclient.h:229: Warning 325: Nested struct not currently supported (BLOBMode ignored)
    /usr/include/libindi/basedevice.h:30: Warning 322: Redundant redeclaration of 'MAXRBUF',
    /usr/include/libindi/indibase.h:8: Warning 322: previous declaration of 'MAXRBUF'.
    /usr/include/libindi/baseclient.h:55: Warning 403: Class 'INDI::BaseClient' might be abstract, no constructors generated,
    /usr/include/libindi/indibase.h:78: Warning 403: Method INDI::BaseMediator::newDevice(INDI::BaseDevice *) might not be implemented.
    Processing types...
    C++ analysis...
    Processing nested classes...
    Generating wrappers...
    creating build
    creating build/temp.linux-armv7l-3.5
    arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include -I/usr/include/libindi -I/usr/include/python3.5m -c indiclientpython_wrap.cpp -o build/temp.linux-armv7l-3.5/indiclientpython_wrap.o
    cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
    In file included from /usr/include/c++/5/thread:35:0,
                     from /usr/include/libindi/baseclient.h:27,
                     from indiclientpython_wrap.cpp:3609:
    /usr/include/c++/5/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
     #error This file requires compiler and library support \
      ^
    In file included from indiclientpython_wrap.cpp:3609:0:
    /usr/include/libindi/baseclient.h:245:5: warning: identifier ‘nullptr’ is a keyword in C++11 [-Wc++0x-compat]
         std::thread *listen_thread=nullptr;
         ^
    In file included from /usr/include/libindi/basedevice.h:23:0,
                     from indiclientpython_wrap.cpp:3610:
    /usr/include/libindi/indistandardproperty.h:65:5: warning: identifier ‘constexpr’ is a keyword in C++11 [-Wc++0x-compat]
         static constexpr const char *CONNECTION = "CONNECTION";
         ^
    In file included from indiclientpython_wrap.cpp:3609:0:
    /usr/include/libindi/baseclient.h:245:10: error: ‘thread’ in namespace ‘std’ does not name a type
         std::thread *listen_thread=nullptr;
              ^
    In file included from /usr/include/libindi/basedevice.h:23:0,
                     from indiclientpython_wrap.cpp:3610:
    /usr/include/libindi/indistandardproperty.h:65:12: error: ‘constexpr’ does not name a type
         static constexpr const char *CONNECTION = "CONNECTION";
                ^
    /usr/include/libindi/indistandardproperty.h:65:12: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
    /usr/include/libindi/indistandardproperty.h:72:7: error: expected nested-name-specifier before ‘SP’
     using SP = StandardProperty;
           ^
    error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1
    
    ----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-bbgycfcq/pyindi-client/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-59uuj_nv-record/install-record.txt --single-version-externally-managed --compile --prefix= --user --prefix=" failed with error code 1 in /tmp/pip-build-bbgycfcq/pyindi-client/
You are using pip version 8.1.1, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

I have googled the error but my version of GCC and G++ is the 5.4 which natively supports C++ 2011 compilers and since I don't have access to the compilation step, I don't know how to add by default the -std=c++11 or -std=gnu++11 compiler options.

Many thanks for your help !

Read More...

Royer replied to the topic 'Installing INDI on Ubuntu 16.10' in the forum. 7 years ago

Ok, thank you again for your help !

Read More...

Royer replied to the topic 'Installing INDI on Ubuntu 16.10' in the forum. 7 years ago

Excellent ! Thank you very much.

Last question: is INDI fully installed or it is necessary to build it as explained in the GitHub link you've sent to me ?

Read More...

Royer replied to the topic 'Installing INDI on Ubuntu 16.10' in the forum. 7 years ago

After typing "sudo apt-get -o Dpkg::Options::="--force-overwrite" install"

Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run ‘apt-get -f install’ to correct these.
The following packages have unmet dependencies.
 libindi-dev : Depends: libindi1 (= 1.4.1+r3026~201704011202~ubuntu16.10.1) but 1.2.0-2~ubuntu2 is installed
E: Unmet dependencies. Try using -f.
And after typing "sudo apt-get -f -o Dpkg::Options::="--force-overwrite" install"

The forum says that there are too many links in the message, so I send you the code in a .txt attached file.

Has it worked well ?

Oleg, I keep your suggestion in mind, thank you !

Read More...

Royer replied to the topic 'Installing INDI on Ubuntu 16.10' in the forum. 7 years ago

I send you the messages after typing "sudo apt-get -f install" :

Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
libindidriver1 linux-headers-4.8.0-22 linux-headers-4.8.0-22-generic
linux-headers-4.8.0-34 linux-headers-4.8.0-34-generic linux-headers-4.8.0-37
linux-headers-4.8.0-37-generic linux-image-4.8.0-22-generic
linux-image-4.8.0-34-generic linux-image-4.8.0-37-generic
linux-image-extra-4.8.0-22-generic linux-image-extra-4.8.0-34-generic
linux-image-extra-4.8.0-37-generic linux-signed-image-4.8.0-34-generic
linux-signed-image-4.8.0-37-generic ubuntu-core-launcher
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
libindi1
The following packages will be upgraded:
libindi1
1 to upgrade, 0 to newly install, 0 to remove and 5 not to upgrade.
36 not fully installed or removed.
Need to get 0 B/250 kB of archives.
After this operation, 829 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 328157 files and directories currently installed.)
Preparing to unpack .../libindi1_1.4.1+r3026~201704011202~ubuntu16.10.1_amd64.deb ...
Unpacking libindi1:amd64 (1.4.1+r3026~201704011202~ubuntu16.10.1) over (1.2.0-2~ubuntu2) ...
dpkg: error processing archive /var/cache/apt/archives/libindi1_1.4.1+r3026~201704011202~ubuntu16.10.1_amd64.deb (--unpack):
trying to overwrite '/usr/lib/x86_64-linux-gnu/libindidriver.so.1', which is also in package libindidriver1:amd64 1.2.0-2~ubuntu2
Errors were encountered while processing:
/var/cache/apt/archives/libindi1_1.4.1+r3026~201704011202~ubuntu16.10.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

If I try to install any other package, I receive a message after building the dependence tree :
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies.
libindi-dev : Depends: libindi1 (= 1.4.1+r3026~201704011202~ubuntu16.10.1) but 1.2.0-2~ubuntu2 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).


Oleg, is it possible to install your solution on the computer or it is only for a Live DVD use ?

Read More...

Royer replied to the topic 'Installing INDI on Ubuntu 16.10' in the forum. 7 years ago

I have tried to remove INDI packages as suggested but even the removal gives the same missing dependencies error: "[many packages] depend on libindi1 but won't be installed". And if I install INDI again (apt-get install indi-full), the missing dependency appears again with the same message.

Thank you all for your answers.

Read More...