durusmail: quixote-users: RELEASED: Quixote 2.7b1
RELEASED: Quixote 2.7b1
2009-10-21
RELEASED: Quixote 2.7b1
Daniel Dunbar
2009-12-09
On Wed, Oct 21, 2009 at 3:46 AM, Robert Ladyman  wrote:
> Futher to my own post, the error is triggered with the FAVICON...decode() call
> in
>
> site-packages/quixote/demo/root.ptl
>
> and actually caused by
>
> python2.6/encodings/__init__.py (line 100) (forcing the error, I think).

I don't really get what is going on here, but I have the same issues.
It's more than just encodings, anything which uses import hooks seems
to hit this.

A total hack which does work around this is changing ptl_import.py:133 to be:
--
        def import_wrapper(name, globals={}, locals={}, fromlist=[], level=-1):
            return cimport.import_module(name, globals, locals, fromlist)
        __builtin__.__import__ = import_wrapper
--
but I don't know the negative impact (esp. of dropping the level
argument). Presumably the cimport.import_module should just implement
the expected interface, but I wasn't up for a real patch. :)

 - Daniel

>> Neil,
>>
>> Using python2.6 with this 2.7b1 I still get an "import_module() takes no
>> keyword arguments" error. This is when testing the simple_server and
>> scgi_servers.
>>
>> This is on OpenSuse 11.1
>>
>> RJL
>>
> ers
>>
>
> --
>
> Robert Ladyman
> File-Away Limited, 32 Church Street, Newtyle
> Perthshire, PH12 8TZ SCOTLAND
> Registered in Scotland, Company Number SC222086
> Tel: +44 (0) 1828 898 158
> Mobile: +44 (0) 7732 771 649
> http://www.file-away.co.uk
>
> _______________________________________________
> Quixote-users mailing list
> Quixote-users@mems-exchange.org
> http://mail.mems-exchange.org/mailman/listinfo/quixote-users
>
reply