opensand team mailing list archive
-
opensand team
-
Mailing list archive
-
Message #00015
Re: Python issue during Open Sand platform installation
Hello Andy,
My answer in the text.
> In the beginning I would like say "Thank you" for latest update for
> installation manual. They are some new information which I was
> counting on.
Thank you :)
> However I still have an issue which in my opinion is
> connected to Python itself. For last few days I was looking an answer
> for a question what is wrong with my virtaula machine with ubuntu
> 10.04 i386. I have 3 of them for a basic setting of OpenSAND
> infrastructure. Whenever I try to install components of the system
> (at the moment demon and manager) I hit the wall either with the
> packages or the source code.
>
> 1. Installation of a daemon from packages
>
> According to the OpenSAND manual user has to install daemon first. As
> a result (for previous and present version of manual guide) there is
> a small issue with network I presume.
>
> * Shutting down the OpenSAND Daemon
> sand-daemon
> * /var/run/sand-daemon/pid does not exist
> [fail]
That error message appears if the daemon service is restarted while the
daemon is not running. It should be fixed. Could you please open a new
ticket in the bugtracker? See instructions given in [1]. Give a clear
description of the problem and the way to reproduce it.
[1] http://opensand.org/developer/bugtracker.php#report
> During first installation of a daemon it partly fails - I haven't seen
> configuration panel (maybe daemon use default settings which sounds
> quite reasonable) but as a user I can use command for reconfiguration
> (full example in attached log file - log.txt)
>
> andyg@andyg-laptop:~/opensand/packages$ sudo dpkg-reconfigure
> opensand-daemon
> * Shutting down the OpenSAND Daemon
> sand-daemon
> * /var/run/sand-daemon/pid does not exist
> [fail]
>
> invoke-rc.d: initscript opensand-daemon, action "stop" failed.
> * Removing configuration for the OpenSAND
> network
> # Configure OpenSAND network for satellite
> [ OK ]
>
> rsyslog start/running, process 3268
> * Configuring the OpenSAND
> network [ OK ]
> * Starting the OpenSAND Daemon sand-daemon [ OK ]
>
> Similar problem appears with new version of manual (section 2 in a
> log file for a daemon installation from packages) but I think that
> whenever user reach an access to configuration panel of a daemon and
> enter proper network settings, then there will be no problem with
> network configuration in future attempts for demon installation.
You should have been prompted for the configuration. Did you already
have installed/configured the package before on that system?
Could you please try to reproduce the problem on another system?
> Problem with * /var/run/sand-daemon/pid does not exist [fail]
> appears all the time (full example in attached log file - log.txt)
> even when I try to install some plug-ins for the manager (check
> section 3 of this report).
See my explanation above :)
> 2. Installation of a manager from packages
>
> After successful installation of a daemon it's time for manager.
> Installation goes smooth till I want to use command $ sand-manager
>
> andyg@andyg-laptop:~/opensand-0.9.0-deb$ sand-manager
> Traceback (most recent call last):
> File "/usr/bin/sand-manager", line 39, in <module>
> import gtk
> ImportError: No module named gtk
>
> So i tried to import that gtk module but without success which
> represents start of the manager. I even updated my python to version
> 2.7 and install some additional gtk modules from packages but without
> positive result. Results of my update are listed in section 4 of
> created log file.
>
> Here is another example of an issue with a Python which also haven't
> bring me any clue what I can do more in order to fix it. Sorry for
> Polish in the log text. I'm working on converting my terminal to
> English shell version. It looks good till Traceback line shows up.
According to the logs, you somehow fixed the import gtk problem since
the sand-manager complains about missing encapsulation modules. Did you
remember what you tried between the 'import gtk' problem and the
'missing encapsulation modules' one?
The problem about 'missing encapsulation modules' happens because at
least one encapsulation module is required. You need to install one of
them (ATM/AAL5 for example).
Could you please open another ticket in the bugtracker? See instructions
given in [1]. Give a clear description of the problem and the way to
reproduce it.
To avoid Polish, use LANG=C LC_ALL=C before the commands, eg.:
$ LANG=C LC_ALL=C dpkg -i some_package.deb
> andyg@andyg-laptop:~/opensand-0.9.0-deb$ sudo dpkg -i
> libopensand-atm-aal5-plugin_0.9.0_i386.deb
> Zaznaczenie poprzednio niezaznaczonego pakietu
> libopensand-atm-aal5-plugin. (Odczytywanie bazy danych ... 230772
> plików i katalogów obecnie zainstalowanych.)
> Rozpakowanie libopensand-atm-aal5-plugin (z
> libopensand-atm-aal5-plugin_0.9.0_i386.deb) ...
> Konfigurowanie libopensand-atm-aal5-plugin (0.9.0) ...
> Traceback (most recent call last):
> File "/usr/libexec/opensand/atm_support.py", line 39, in <module>
> import debconf
> ImportError: No module named debconf
> * Shutting down the OpenSAND Daemon
> sand-daemon
> * /var/run/sand-daemon/pid does not exist
> [fail]
>
> * Starting the OpenSAND Daemon
> sand-daemon [ OK ]
>
> Przetwarzanie wyzwalaczy dla libc-bin...
> ldconfig deferred processing now taking place
That's strange. You should have the debconf python module. Could you
please send me the result of the following commands:
$ ls /usr/lib/python*/dist-packages/debconf.py
$ python --version
$ sudo python --version
$ env | grep -i python
$ sudo env | grep -i python
> 3. Installation of a daemon from sources
>
> When my attempts for SAND installation based on packages failed last
> week (short report delivered on 15th of August) I decide to give
> another shot with source packages downloaded through Bazaar. It's
> definitely longer approach but very educational. Unfortunately I hit
> a wall when I had to build daemon with following result:
>
> andyg@andyg-laptop:~/opensand/opensand-daemon$ python setup.py build
> Traceback (most recent call last):
> File "setup.py", line 2, in <module>
> from setuptools import setup, find_packages
> ImportError: No module named setuptools
I re-wrote that part this morning. Did you installed the dependencies
listed by [2]?
[2]http://opensand.org/support/wiki/doku.php?id=installation_manual#install_required_build_tools
> It was a first time that I had an impression that there is something
> wrong with my Python installation. So i decide to update it but as
> you can see also in section above that move haven't solve this issue.
I think so. The previous commands will maybe help us to understand the
problem.
Regards,
Didier
Follow ups
References