Are there any python jobs worked at home from the internet?
Hi,all buddies. Are there any python jobs worked at home from the internet? I want to find a part time job. Please give a clue to this for me. Thanks a lot! -- http://mail.python.org/mailman/listinfo/python-list
How to fix this? Sybase module and character set!!!!
C:\python msMdbPro2.py Traceback (most recent call last): File msMdbPro2.py, line 152, in ? main() File msMdbPro2.py, line 132, in main testSyb = SybaseProc(199477,'10.130.58.154','sa','','zxdb_ecity',173624) File msMdbPro2.py, line 44, in __init__ self.sybdata = Sybase.connect(hostip,user,pwd,databasename) File C:\Python24\lib\site-packages\Sybase.py, line 1087, in connect strip, auto_commit, delay_connect, locking, datetime) File C:\Python24\lib\site-packages\Sybase.py, line 866, in __init__ self.connect() File C:\Python24\lib\site-packages\Sybase.py, line 960, in connect status = conn.ct_connect(self.dsn) File C:\Python24\lib\site-packages\Sybase.py, line 200, in _servermsg_cb raise DatabaseError(_fmt_server(msg)) Sybase.DatabaseError: Msg 2401, Level 11, State 2 Character set conversion is not available between client character set 'iso_1' and server character set 'eucgb'. Msg 2411, Level 10, State 1 No conversions will be done. Msg 2415, Level 10, State 1 Due to previous errors, the language for this session is being forced to 'us_english'. How to change the client(My python program)'s character set from iso_1 to eucgb(Chinese gb2312)? Thanks! -- http://mail.python.org/mailman/listinfo/python-list
About python Sybase module and the database manipulation!
I write a python program which can insert one record into the Sybase databae at a time using the function fetchone(),But I find it runs slowly. So I want speed it up,But I don't know how to manipulate the database more efficiently! Thread or any other methods can do it?? -- http://mail.python.org/mailman/listinfo/python-list
How to process the nested String for sybase sql statement?
now,I want to insert some data to the sybase database, some variable such as i,j,k,name,k,j I have defined before. I write the sql statement here But I meet some errors,How to write this nested String for sql query? For example: import Sybase db = Sybase.connect('boyee','sa','',test'') c = db.cursor() .. values = %d,%d,%d,%s,%d,%d % (i,j,k,name,k,j) c.execute('insert into productinfo(productid,spid,corpid,productname,type1, type2) value(@value)',{'@value':values}) Traceback (most recent call last): File stdin, line 1, in ? File C:\Python24\lib\site-packages\Sybase.py, line 774, in execute self.description = fetcher.start(self.arraysize) File C:\Python24\lib\site-packages\Sybase.py, line 517, in start return self._start_results() File C:\Python24\lib\site-packages\Sybase.py, line 645, in _start_results self._raise_error(Error, 'ct_results') File C:\Python24\lib\site-packages\Sybase.py, line 506, in _raise_error raise exc(text) Sybase.Error: ct_results Any reply is enjoyable,Thank a lot! -- http://mail.python.org/mailman/listinfo/python-list
I compile the Pychm in windows,But meet a lot of errors......
The Error is show as below: D:\Downloads\pychm-0.8.4python setup.py build running build running build_py running build_ext building 'chm._chmlib' extension D:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:D:\Python24\libs /LIBPATH:D:\Python24\PCBuild chm.lib /EXPORT:init_chmlib build\temp.win32-2.4\Release\chm/swig_chm.obj/OUT:build\lib .win32-2.4\chm\_chmlib.pyd /IMPLIB:build\temp.win32- 2.4\Release\chm\_chmlib.lib LIBC.lib(crt0init.obj) : error LNK2005: ___xc_z 已经在 MSVCRT.lib(cinitexe.obj) 中定义 LIBC.lib(crt0init.obj) : error LNK2005: ___xc_a 已经在 MSVCRT.lib(cinitexe.obj) 中定义 LIBC.lib(crt0init.obj) : error LNK2005: ___xi_z 已经在 MSVCRT.lib(cinitexe.obj) 中定义 LIBC.lib(crt0init.obj) : error LNK2005: ___xi_a 已经在 MSVCRT.lib(cinitexe.obj) 中定义 LIBC.lib(crt0init.obj) : warning LNK4006: ___xc_z 已在 MSVCRT.lib(cinitexe.obj ) 中定义;已忽略第二个定义 LIBC.lib(crt0init.obj) : warning LNK4006: ___xc_a 已在 MSVCRT.lib(cinitexe.obj ) 中定义;已忽略第二个定义 LIBC.lib(crt0init.obj) : warning LNK4006: ___xi_z 已在 MSVCRT.lib(cinitexe.obj ) 中定义;已忽略第二个定义 LIBC.lib(crt0init.obj) : warning LNK4006: ___xi_a 已在 MSVCRT.lib(cinitexe.obj ) 中定义;已忽略第二个定义 正在创建库 build\temp.win32-2.4\Release\chm\_chmlib.lib 和对象 build\temp.win 32-2.4\Release\chm\_chmlib.exp LINK : warning LNK4098: 默认库MSVCRT与其他库的使用冲突;使用 /NODEFAULTLIB:l ibrary LINK : warning LNK4098: 默认库LIBC与其他库的使用冲突;使用 /NODEFAULTLIB:lib rary build\lib.win32-2.4\chm\_chmlib.pyd : fatal error LNK1169: 找到一个或多个多重定 义的符号 error: command 'D:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\link .exe' failed with exit status 1169 How to fix this problem??? PS: if someone has compile it successfully in windows,Please send me a copy!!! Thanks a lot!! -- http://mail.python.org/mailman/listinfo/python-list
Can we run a script in gmail when it's openning, for example, the javascript or python script or any other!
I feel like uploading a attachment using remote uploading in gmail. I'm here (command) / / (getting file) [gmail]-(remote) I just send a command to the gmail(where I send a mail and it contains some script which can run directly in gmail),then the script can receive the command and then it can get the file and download it to the gmail space as an attachment. -- http://mail.python.org/mailman/listinfo/python-list
how to remove the blank lines?
The following program have the same function as the linux's command:tail -f logfile.log But it print a lot of blank lines while showing on the stdout. How to fix this problem and let it go ahead always showing the end line as the log file's increasing. #tail.py: import os import sys class Tail: def __init__(self,inputstream): self.inputstream=inputstream def tail(self): self.inputstream.seek(0,2) #??Maybe this is where I'll need fixed,But I don't know how to line=self.inputstream.readline().strip() print line if __name__==__main__: if len(sys.argv)=1: print You must type a log file name sys.exit() arg=file(sys.argv[1],'r+') while(arg): try: t=Tail(arg) t.tail() except KeyboardInterrupt: arg.close() print File closed -- http://mail.python.org/mailman/listinfo/python-list
the mysql for python cann't be install from the source! Help!!
I install the mysqldb module for python,I use: python setup.py build but it tell me cann't find include file my_conf.h' I search the mysql directory but gain none of it! Please help me with it! Thanks a lot! -- http://mail.python.org/mailman/listinfo/python-list
I meet problems while using the py2exe,Please help me!
I want build a python source to .exe file. I use the py2exe and the script file I wrote as below: from distutils.core import setupimport py2exe setup(windows=[main.py],name='palaver',description=palaver is a p2p software,version='0.05',) it build rightly,But when I run the executable file, a problem have turn out: Traceback (most recent call last): File main.py, line 20, in ? File gtkFE\__init__.pyc, line 18, in ? File gtkFE\gtkDialogs.pyc, line 17, in ? File gtk\__init__.pyc, line 45, in ? File gtk\_gtk.pyc, line 12, in ? File gtk\_gtk.pyc, line 10, in __loadImportError: No module named cairo. The cairo module have been installed in my computer.And I can run my program from the python file. What is wrong with this problem,Please help me,a lot of thanks! -- http://mail.python.org/mailman/listinfo/python-list
How to write a python program to export the help document to a file?
How to write a python program to export the help document to a file? for example: I need the os document,I use: import os help(os) then it will show me all about os.But I need it redirect to a file. How to do that? Thanks a lot! -- http://mail.python.org/mailman/listinfo/python-list
How to run python program on the embeded system?
How to run python program on the embeded system? My mobile phone support J2ME,CLDC-1.1,midp-2.0 and I want to let it run python program,but I have no idea how to. Maybe I need write a python compiler which can run on my phone,But it is a complex work. Please help and tell me What can I do,Thanks a lot -- http://mail.python.org/mailman/listinfo/python-list