Bug#501207: destar: The same Problem is still in 0.2.2-5.2 in testing

Tzafrir Cohen tzafrir.cohen at xorcom.com
Sat Nov 29 00:41:26 UTC 2008


reassign 501207 python-quixote1
thanks

> And the same error when trying to run it directly:
> 
> 
> $ /usr/sbin/destar
> DeStar 0.2.2, Copyright (C) 2005 by Holger Schurig and contributors.
> 
> DeStar comes with ABSOLUTELY NO WARRANTY. This is free software,
> you are welcome to redistribute it under certain conditions;
> see the included files GPL-2.txt and COPYRIGHT.txt
> 
> Serving application 'page_main' on port 8080
> warning: Computing default hostname
> info: Medusa (V1.11) started at Thu Nov 27 00:13:38 2008
>         Hostname: sweetmorn.cohens.org.il
>         Port:8080
> 
> Traceback (most recent call last):
>   File "/usr/share/destar/python/destar.py", line 139, in <module>
>     pub.run()
>   File "/usr/share/destar/python/Server.py", line 168, in run
>     publisher = self.publishclass(self.approot)
>   File "/var/lib/python-support/python2.5/quixote/publish.py", line 107, in __init__
>     self.root_namespace = _get_module(root_namespace)
>   File "/var/lib/python-support/python2.5/quixote/publish.py", line 32, in _get_module
>     __import__(name)
>   File "/var/lib/python-support/python2.5/quixote/ptl_import.py", line 127, in find_import_module
>     return self.loader.load_module(fullname, stuff)
>   File "/var/lib/python-support/python2.5/quixote/ptl_import.py", line 107, in load_module
>     return _load_ptl(name, filename, file)
>   File "/var/lib/python-support/python2.5/quixote/ptl_import.py", line 72, in _load_ptl
>     code = compile_template(file, filename, output)
>   File "/var/lib/python-support/python2.5/quixote/ptl_compile.py", line 297, in compile_template
>     template.compile()
>   File "/usr/lib/python2.5/compiler/pycodegen.py", line 111, in compile
>     tree = self._get_tree()
>   File "/var/lib/python-support/python2.5/quixote/ptl_compile.py", line 268, in _get_tree
>     tree = parse(self.source, self.filename)
>   File "/var/lib/python-support/python2.5/quixote/ptl_compile.py", line 223, in parse
>     return TemplateTransformer().parsesuite(buf)
>   File "/usr/lib/python2.5/compiler/transformer.py", line 129, in parsesuite
>     return self.transform(parser.suite(text))
>   File "/usr/lib/python2.5/compiler/transformer.py", line 125, in transform
>     return self.compile_node(tree)
>   File "/usr/lib/python2.5/compiler/transformer.py", line 158, in compile_node
>     return self.file_input(node[1:])
>   File "/var/lib/python-support/python2.5/quixote/ptl_compile.py", line 58, in file_input
>     io_imp = ast.From(IO_MODULE, [(IO_CLASS, None)])
> TypeError: __init__() takes at least 4 arguments (3 given)

This is called directly from quixote code. The respective __init__
method is of the class compiler.ast.From . 

According to pydoc it is defined as:

  __init__(self, modname, names, level, lineno=None)

I see no documentation of the "level" argument anywhere.

When I add an extra junk parameter, say:

  io_imp = ast.From(IO_MODULE, [(IO_CLASS, None)], "junk")

The error moves to the next line (which has the same issue.

-- 
               Tzafrir Cohen
icq#16849755              jabber:tzafrir.cohen at xorcom.com
+972-50-7952406           mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir





More information about the Pkg-voip-maintainers mailing list