On Thu, Feb 3, 2011 at 8:51 PM, Gerhard Lausser
<gerhard.laus...@consol.de>wrote:

> Hi,
>
> i can't launch Shinken anymore with a Python2.4 (still the default under
> CentOS 5.*)
>
> Traceback (most recent call last):
>  File
> "/opt/python-2.4.6/lib/python2.4/site-packages/nose-1.0.0-py2.4.egg/nose/l
> oader.py", line 389, in loadTestsFromName
>    module = self.importer.importFromPath(
>  File
> "/opt/python-2.4.6/lib/python2.4/site-packages/nose-1.0.0-py2.4.egg/nose/i
> mporter.py", line 39, in importFromPath
>    return self.importFromDir(dir_path, fqname)
>  File
> "/opt/python-2.4.6/lib/python2.4/site-packages/nose-1.0.0-py2.4.egg/nose/i
> mporter.py", line 86, in importFromDir
>    mod = load_module(part_fqname, fh, filename, desc)
>  File
> "/var/lib/hudson/jobs/Shinken-Multiplatform/workspace/PYTHONVERS/24/label/
> ubuntu/test/test_config.py", line 26, in ?
>    from shinken_test import *
>  File
> "/var/lib/hudson/jobs/Shinken-Multiplatform/workspace/PYTHONVERS/24/label/
> ubuntu/test/shinken_test.py", line 23, in ?
>    from shinken.objects.config import Config
>  File "../shinken/objects/__init__.py", line 23
>    from .item import Item, Items
>         ^
> SyntaxError: invalid syntax
>
> It's a problem with the . I think. Relative import is from 2.6 if I
remember right.


> If this takes a lot of effort to fix....do you think we should drop
> support for Python2.4 at all?
>
No :)
(my prod is in 2.4, and 80% of current production environnements are still
in 2.4 or 2.5 :) ).

Let take this as a bug. What if we remove the . ?


Jean

>
> Gerhard
>
>
> ------------------------------------------------------------------------------
> The modern datacenter depends on network connectivity to access resources
> and provide services. The best practices for maximizing a physical server's
> connectivity to a physical network are well understood - see how these
> rules translate into the virtual world?
> http://p.sf.net/sfu/oracle-sfdevnlfb
> _______________________________________________
> Shinken-devel mailing list
> Shinken-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/shinken-devel
>
------------------------------------------------------------------------------
The modern datacenter depends on network connectivity to access resources
and provide services. The best practices for maximizing a physical server's
connectivity to a physical network are well understood - see how these
rules translate into the virtual world? 
http://p.sf.net/sfu/oracle-sfdevnlfb
_______________________________________________
Shinken-devel mailing list
Shinken-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/shinken-devel

Reply via email to