|
From: Michael F. <fuz...@vo...> - 2009-02-16 14:29:58
|
mai...@op... wrote:
> Zitat von Michael Foord <fuz...@vo...>:
>
>> Hello Stephan,
>>
>> Can you provide a config file that shows the problem? I'm not willing to
>> download and run a VM image just to diagnose this. Does the config file
>> show the same problem when read from Linux / Windows or Mac OS X ?
>
> i have attached the file
Hmm...
[GCC 4.0.1 (Apple Computer, Inc. build 5363)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from configobj import ConfigObj
>>> c = ConfigObj('elisa_0_5_6.conf')
>>> c
ConfigObj({'general': {'version': '0.5.17', 'install_date':
'2008-11-07', 'frontends': "['frontend1']", 'disabled_plugins': '[]',
'database': 'sqlite:/storage/.elisa-0.5/elisa.db'}, 'frontend1':
{'frontend': 'pigment.pigment_frontend:PigmentFrontend', 'theme':
'elisa.plugins.poblesec', 'controller_path': '/poblesec'},
'directories': {'video': "['*default*']", 'pictures': "['*default*']",
'music': "['*default*']"}})
>>> d = open(c.filename).read()
>>> d
"[general]\nversion = '0.5.17'\ninstall_date = '2008-11-07'\nfrontends =
['frontend1']\ndisabled_plugins = []\n# database connection string. see
https://storm.canonical.com/Manual\ndatabase =
'sqlite:/storage/.elisa-0.5/elisa.db'\n\n[frontend1]\nfrontend =
'pigment.pigment_frontend:PigmentFrontend'\ntheme =
'elisa.plugins.poblesec'\ncontroller_path =
'/poblesec'\n\n[directories]\nvideo = ['*default*']\npictures =
['*default*']\nmusic = ['*default*']\n"
>>>
So on Mac OS X I can read the file with ConfigObj fine and the line
endings are '\n' which should be fine on any system. You could repeat
this experiment on the system that shows the problems and see if the
results are the same.
This means that the problem is either with the code using ConfigObj *or*
with the underlying platform.
If you try with ConfigObj(filename, raise_errors=True) then you should
get the full traceback when the first error is hit. This may give a
better idea of what is happening.
All the best,
Michael Foord
>
> stephan
>
>>
>> Michael
>>
>> mai...@op... wrote:
>>> Hi all,
>>>
>>> i have still follow problem (i have written to list last year
>>> http://sourceforge.net/mailarchive/message.php?msg_name=20081118135605.j3stzle65kos8c00%40login-64.hoststar.ch)
>>>
>>>
>>> when i am start elisa with "HOME=/var/log ELISA_DEBUG=5
>>> /usr/bin/elisa" on my self compiled embedded linux distribution i
>>> become error message like this (/storage is now /var/log):
>>>
>>> INFO MainThread application Nov 14 11:56:05
>>> Using config file:
>>> '/storage/.elisa-0.5/elisa_0_5_6.conf' (elisa/core/application.py:202)
>>> DEBUG MainThread config Nov 14 11:56:05
>>> Creating config
>>> '/storage/.elisa-0.5/elisa_0_5_6.conf' (elisa/core/config.py:123)
>>> INFO MainThread config Nov 14
>>> 11:56:05 Using
>>> '/storage/.elisa-0.5/elisa_0_5_6.conf' config file
>>> (elisa/core/config.py:85)
>>> WARN MainThread application Nov 14 11:56:06
>>> Config format error
>>> in /storage/.elisa-0.5/elisa_0_5_6.conf: Parse error in value at line
>>> 2.;Parse error in
>>> value at line 3.;Parse error in value at line 4.;Parse error in value
>>> at line 5.;Parse
>>> error in value at line 7.;Parse error in value at line 10.;Parse error
>>> in value at line
>>> 11.;Parse error in value at line 12.;Parse error in value at line
>>> 15.;Parse error in
>>> value at line 16.;Parse error in value at line 17.
>>> (elisa/core/application.py:211)
>>> LOG MainThread logobserver Nov 14
>>> 11:56:06 Failure
>>>
>>> my /var/log is read/writeable and the configfile will be created
>>> and is valid.
>>>
>>> i dont know where is the problem, can you help me to find the error?
>>>
>>> you can download a qemu image of the distribution (ca 31MB) from
>>> http://sources.openelec.tv/OpenELEC.bin.tar.bz2
>>>
>>> start this - if you have qemu installed - with ./start.sh and it will
>>> boot. then you have Xorg with a minimal terminal. When you set
>>> HOME=/var/log you can loopmount the image and you can work with elisas
>>> configfile. when you have questions or need additional software to
>>> debug write me to list.
>>>
>>> i hope we can find the error
>>>
>>> Stephan
>>>
>>>
>>>
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>>
>>> Open Source Business Conference (OSBC), March 24-25, 2009, San
>>> Francisco, CA
>>> -OSBC tackles the biggest issue in open source: Open Sourcing the
>>> Enterprise
>>> -Strategies to boost innovation and cut costs with open source
>>> participation
>>> -Receive a $600 discount off the registration fee with the source
>>> code: SFAD
>>> http://p.sf.net/sfu/XcvMzF8H
>>> _______________________________________________
>>> Configobj-develop mailing list
>>> Con...@li...
>>> https://lists.sourceforge.net/lists/listinfo/configobj-develop
>>>
>>
>>
>> --
>> http://www.ironpythoninaction.com/
>> http://www.voidspace.org.uk/blog
>>
>>
>>
>> ------------------------------------------------------------------------------
>>
>> Open Source Business Conference (OSBC), March 24-25, 2009, San
>> Francisco, CA
>> -OSBC tackles the biggest issue in open source: Open Sourcing the
>> Enterprise
>> -Strategies to boost innovation and cut costs with open source
>> participation
>> -Receive a $600 discount off the registration fee with the source
>> code: SFAD
>> http://p.sf.net/sfu/XcvMzF8H
>> _______________________________________________
>> Configobj-develop mailing list
>> Con...@li...
>> https://lists.sourceforge.net/lists/listinfo/configobj-develop
>>
>>
>
>
>
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
> -Strategies to boost innovation and cut costs with open source participation
> -Receive a $600 discount off the registration fee with the source code: SFAD
> http://p.sf.net/sfu/XcvMzF8H
> ------------------------------------------------------------------------
>
> _______________________________________________
> Configobj-develop mailing list
> Con...@li...
> https://lists.sourceforge.net/lists/listinfo/configobj-develop
>
--
http://www.ironpythoninaction.com/
http://www.voidspace.org.uk/blog
|