cx_freeze error

2005-01-29 Thread zyqnews
I am new to Python. I made a script, and compiled it with cx_freeze, but I got the following message from it: [cxfreeze]$./FreezePython hello.py Traceback (most recent call last): File "initscripts/ConsoleKeepPath.py", line 15, in ? exec code in m.__dict__ File "FreezePython.py", line 1, in ? File

nedd help on using Installer

2005-01-29 Thread zyqnews
hello: I am using Install to create a standalone program for linux. What I has done is : [Installer]$cd source/linux [linux]$python Make.py [linux]$make [Installer]$cd ../../ [Installer]$python Configure.py [Installer]$python Makespec.py hello.py [Installer]$python Build.py hello Traceback (most r

Re: cx_freeze error

2005-01-29 Thread zyqnews
There is no any module like "re.py", I just compiled the hello.py it has only one line: print "hello!" Anyone knows how? -- http://mail.python.org/mailman/listinfo/python-list

Re: cx_freeze error

2005-01-29 Thread zyqnews
Thanks for your answer. I tried it and the result is: [cxfreeze]$ python Python 2.2.3 (#1, Oct 15 2003, 23:33:35) [GCC 3.3.1 20030930 (Red Hat Linux 3.3.1-6)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import re >>> re.compile >>> re.__file__ '/usr/lib/py

PyArg_ParseTuple help

2005-07-10 Thread zyqnews
hello all, how to parse the arguments of a c function with PyArg_ParseTuple? The prototype of the c function is : int func(unsigned char * in , int inlen, unsigned char * v, unsigned char * out, int * outlen); The problem is , when the func returns, there will be results in out and outlen. Is

unicode and socket

2005-02-18 Thread zyqnews
hello all, I am new in Python. And I have got a problem about unicode. I have got a unicode string, when I was going to send it out throuth a socket by send(), I got an exception. How can I send the unicode string to the remote end of the socket as it is without any conversion of encode, so the re

Re: unicode and socket

2005-02-18 Thread zyqnews
It's really funny, I cannot send a unicode stream throuth socket with python while all the other languages as perl,c and java can do it. then, how about converting the unicode string to a binary stream? It is possible to send a binary through socket with python? -- http://mail.python.org/mailman/

how to control a USB DISK?

2005-03-02 Thread zyqnews
hello all, I now have a simple project. It is to test the change of use disk, when a new usb disk is plugged into the usb socket, the program will copy a file to the usb disk, then disabled the usb disk to be pulled out safely. I intend to make it with python. Does someone here get any experience