wxPython, py2exe, UnicodeDecodeError

2008-10-21 Thread artasis
Hello! I've write wizard based on wxPython package and wanted to
compile it to exe via py2exe. All works fine, all compile fine, but
when I start wizard.exe - my compiled script - I'm getting an error:

Traceback (most recent call last):
  File "init.py", line 484, in 
  File "init.py", line 87, in __init__
  File "wx\wizard.pyc", line 349, in __init__
  File "encodings\cp1251.pyc", line 15, in decode
UnicodeDecodeError: 'charmap' codec can't decode byte 0x98 in position
60: character maps to 

what's going wrong? Google could not give me answer on it :-(
--
http://mail.python.org/mailman/listinfo/python-list


Re: wxPython, py2exe, UnicodeDecodeError

2008-10-21 Thread artasis
UPDATE: Forgot - yes, I'm using cyrillic text in my script, but it all
encoded in utf8
--
http://mail.python.org/mailman/listinfo/python-list


Re: wxPython, py2exe, UnicodeDecodeError

2008-10-21 Thread artasis
pardon me for my stupidy, problem was in utf8 encoding. Changing all
strings encode to unicode solve that problem
--
http://mail.python.org/mailman/listinfo/python-list


use php in python httpservers

2008-05-05 Thread artasis
Hi, that is my task:
I need to create python webserver-like extension(dll) which will run
php and python scripts as plugins.
I have no problems with dll creating and run python scripts, but I
cannot understand how to run php(CLI is not a solution).
Is there a way to solve this problem? I've thought to implement php to
HTTPServer-like python module, but as I see it's impossible. Solutions
with creating intermediate C-based module is allowed, but better
without them :).
AFAIK, php5ts.dll is that what I must use but how integrate it to
python webserver? that is a question
--
http://mail.python.org/mailman/listinfo/python-list


Re: use php in python httpservers

2008-05-06 Thread artasis
On May 5, 3:48 pm, Jeff <[EMAIL PROTECTED]> wrote:
> ctypes?

hm..may you explain it?
--
http://mail.python.org/mailman/listinfo/python-list


Re: use php in python httpservers

2008-05-07 Thread artasis
On May 6, 3:00 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > Hi, that is my task:
> > I need to create python webserver-like extension(dll) which will run
> > php and python scripts as plugins.
> > I have no problems with dll creating and run python scripts, but I
> > cannot understand how to run php(CLI is not a solution).
> > Is there a way to solve this problem? I've thought to implement php to
> > HTTPServer-like python module, but as I see it's impossible. Solutions
> > with creating intermediate C-based module is allowed, but better
> > without them :).
> > AFAIK, php5ts.dll is that what I must use but how integrate it to
> > python webserver? that is a question
>
> http://www.amazon.com/Extending-Embedding-PHP-Developers-Library/dp/0...
>
> Might be of help.
>
> And maybe the roadsend PHP-compiler.
>
> Diez
thanks! great book! this would help with Jeff recommendations to use
ctypes

--
http://mail.python.org/mailman/listinfo/python-list