Alignak-monitoring-contrib / alignak-backend

Backend for alignak (REST API for configuration, retention, livestate, logs) based on Python Eve
GNU Affero General Public License v3.0
11 stars 4 forks source link

Script cfg_to_backend exception ... #2

Closed mohierf closed 9 years ago

mohierf commented 9 years ago

Catching this exception will be more friendly for new users:

shinken@webui:~/alignak-backend/tools$ python cfg_to_backend.py
Traceback (most recent call last):
  File "cfg_to_backend.py", line 25, in <module>
    from alignak.objects.config import Config
ImportError: No module named alignak.objects.config
mohierf commented 9 years ago

The script cfg_to_backend imposes to install Alignak and all its dependencies for simply being able to import a flat files configuration ... it would be very interesting to find an alternate solution!

@ddurieux : do you think it should be possible to isolate the Alignak Config class and make it an independent importable library ?

ddurieux commented 9 years ago

Not possible because will require all objects classes :/

mohierf commented 9 years ago

Ok, so an independent lib with Config and objects classes ? Anyway, it will be lighter than installing a complete Alignak ...