Re: The application has failed to start because the application configuration is incorrect
Hi! I have a similar problem, with Python 2.6.1 and pywin32. Since python 2.6.1. Return to 2.6: OK ; re-install 2.6.1: the problem return. No solution to this day. The problem is known, but not resolved In the expectation, I stay in 2.6 @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Re: Executing WinXP commands using os module
Hi! Try: os.system(start cmd /css checkout $\projectName\file -Yusername,password -c'Test comment' ) (not tested ; it's directly from my memory) @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Re: Windows Tablet RealTimeStylus in Python
Hi! I use Internet-Explorer like (as?) GUI. Then, I insert Active-X components (from Tablet-PC, native or SDK). Another solution: create a .HTA, and use PythonScript (version ActiveScripting of Python, who become with pyWin32). @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Re: Free Download - Microsoft Windows 7 Beta
Hi! I downloaded W7 two days ago, directly on MSDN (Microsoft), and not on a bizarre, unknown site, and doubtful. Python 2.6 run OK. But the problem (well known) with Python 2.6.1 is always present. @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Re: python is great
python is great. No. Python is VERY GREAT !!! -- http://mail.python.org/mailman/listinfo/python-list
Re: join a samba domain
Hi! If you are under Vista, you must change the LSA parameter. See: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa LMCompatibilityLevel try with value 1 or 0 And use a Samba not too old. @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Re: PIL on 3.x?
Hi! Fredrik Lundh (Pythonware ; the author of PIL (and ElementTree, and many other things)) had, in the past, often give answers. To me, like to others people. @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Re: check whether a JPG is completed?
Hi! Sometimes, PIL give an error. With try: Except:, you can get info. Sometimes, non error, but the Jpeg is not correct. Difficult, in this case, to get info. Therefore, the answer is: not in all cases. @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Re: pymssql for python 2.6 ?
Hi! Look at http://www.mayukhbose.com/python/ado/ado-connection.php That run OK with Python 2.6 @-salutations -- MCI -- http://mail.python.org/mailman/listinfo/python-list
Re: PIL on 3.x?
Hi! This info is interesting for many people. IMO, it's a good idea to write the question in this newsgroup. @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Re: ActivePython 2.6.1.1 and 3.0.0.0 released!
Hi! M. Hammond said (wrote) said that the work is enormous, because modifications of the C architecture of Python 3 was largely modified. (sorry for my bad english) -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Re: Finding Default Page Name using urllib2
Hi! Can I do this in python? No. The default page is a property of the web-server ; and it is not client side. Examples : for Apache, it's index.html or index.htm ; but if PHP is installed, index.php is also possible. for APS, it's init.htm (between others possibilites). etc. @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Re: [ANN] Data Plotting Library DISLIN 9.4
Merci beaucoup. Thanks. -- http://mail.python.org/mailman/listinfo/python-list
Re: [ANN] Data Plotting Library DISLIN 9.4
Hello! version 9.4 of DISLIN Thanks! I like Dislin. But... I don't found the release (binary/win) for Python 2.6... -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Re: self signing a py2exe windows executable
Hi! Very interesting. Roger, thank you very much super enormous!!! @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Re: python sms
Hi! You can manage Skype from Python('s scripts), for use the functionalities of Skype to send SMS. @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Re: how to search multiple textfiles ? (Python is slow ?)
Hi ! Thanks for return. Some infos: from a long time, I found that it's often more fast to use windows's command, instead of develop in high level language (and also, low level...) FINDSTR is fast. OK. But internal commands are more fast. Example : DIR (with all his options) And it's faster to read the result via a Pipe. Thus, I use frequently this sort of function: import os def cmdone(repstart, commande, moderetour=LIST): os.chdir(repstart) sret=''.join(os.popen(commande)) if moderetour.upper() == STR: return sret else: return sret.split('\n') print cmdone('D:\\dev\\python','findstr /N /I ponx *.py','STR') print print cmdone('D:\\dev\\python','dir *.jpg /B') Sorry for my bad english, and have a good day... -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Re: how to search multiple textfiles ?
Hi! On Windows, you can use the (standard) command findstr Example: findstr /n /s /I strsearched *.py @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Re: Not fully OO ?
Bonjour ! AMHA, ceux qui ont écrit ce texte ont une mauvaise idée de ce que sont les variables en Python. Ils ont sans doute trop en tête les notions des variables en C ou en Basic, et ne se sont pas penchés sur les spécificités de Python. @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Re: Launch an application and continue the script's execution
Hi ! Replace: os.startfile(launch_trace.bat) by os.startfile('start cmd /c launch_trace.bat') and le tour est joué. @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Re: Launch an application and continue the script's execution
Hi! More easy: os.system('cmd /c c:\\temp.bat') @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Re: running exe file
Hi! See: system( startfile( subprocess( spawn( etc. @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Re: mmap and ctypes
Hi! See here: http://www.ponx.org/download/CD/COMdll/autoitmmap.dll @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Re: Python COM
Hi! Example, with Pywin32: import win32com.client moncom = win32com.client.Dispatch('MyCOM1.AdvMethod') moncom.IAdvMethod(... See Pywin32 here: http://sourceforge.net/projects/pywin32/ @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Re: Python with Ecmascript
Hi! Is there a way to do similar things on linux? I think no. Because these tech use COM. And COM don't exist under xxnux. But: - look if XPCOM, or dBus) can help you - search with the word MOZLAB, who work a solution (plugin) for drive Firefox, from an external software. Good luck! -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Re: pythoncom InternetExplorer.Application don't work in vista || firefox pythoncom ?
H... I have a similary problem, in another circumstances. It's often a problem of configuration of IE (for news customers). But, it is not easy, because IE has many parameters. Good luck! Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Re: Python with Ecmascript
Hi! Ecmascript (Jscript) is Active-Scripting compliant. With PyWin32, you can : - call JScript functions (with parameters) - define pieces of code ( run it) Another way, is to drive Internet-Explorer (via COM). You can set the IE-Windows as invisible, and connect the motor of execution (of JScript). Then, you can : - call JScript functions, with parameters et return ; variables, but also array (= lists) - connect to JScripts's objects (for read/write) - write new functions in JScript - etc. @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Re: pythoncom InternetExplorer.Application don't work in vista || firefox pythoncom ?
Hi! Your code run OK for me (Vista Ultimate). This other version run also OK : def webbrowser(url=None): import win32com.client, time ie=win32com.client.Dispatch('InternetExplorer.Application') while ie.Busy==True: time.sleep(0.125) ie.Top = 0 ie.Left = 0 ie.Height = 400 ie.Width = 400 ie.AddressBar = False ie.MenuBar = False ie.Resizable = False ie.StatusBar = False ie.ToolBar = False ie.Visible = 1 return ie w = webbrowser() w.Navigate('http://www.google.nl') @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Re: PIL(Py Image lib), show() not showing picture...
Hi! Which OS? On Vista, you MUST reconfig the aperçu images et télécopies (in french ; sorry, I don't know the english translation). @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Re: Scripting SAP GUI (Windows)
Hi! Linux is much better place You confuse proselitism and objectivity... @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Re: Scripting SAP GUI (Windows)
Hi! You can use Autoit. Bad conception language ; but many good tools, for identify windows, process, send keystrokes, emulate mouse, etc. (Autohotkey is make on Autoit 2 ; Autoit is actually in version 3). Good trick : Autoit-X is a COM server, with the most importants functions of Autoit (nor GUI) ; and Autoit-X can be driven from Python+PyWin32. *sorry for my bad english* Michel Claveau PS : http://www.autoitscript.com/autoit3/ ( look also forums) -- http://mail.python.org/mailman/listinfo/python-list
Re: Merging ordered lists
Hi! Use set (union). Example: la=[2,1,3,5,4,6] lb=[2,8,6,4,12] #compact: print list(set(la).union(set(lb))) #detail: s1 = set(la) s2 = set(lb) s3 = s1.union(s2) print list(s3) @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Re: Python is slow
Bonsoir ! Perso, je pense que des précisions comme celles de Bruno sont très utiles, car elles évitent les dérives, et l'apparition de langages bâtards, et impurs (pythonesquement parlant). Non aux Pythons OGM !!! Toutefois, iles est dommage que je comprenne pas l'anglais, et donc pas vraiment son message/discours... @+ Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Idea for P3K
Hi! print become a function ; OK I thought: and why the affection (=) would not become, also, a function? Examples: a = 123return 123 b,c = 543.21, LOLreturn (543.21, LOL) @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Re: Idea for P3K
Hi! I don't often feel like using this word Look at languages like OCAML or F # @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Re: [ANN] Data Plotting Library DISLIN 9.3
Hi, Thanks! I like DISLIN (even if I use it very little). @+ -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Re: [ANN]: Python-by-Example updates
Hi! Good! Thanks. I found a bad link, for traceback module @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Python plus
After IronPython, Python + iron : http://www.golfermania.com/SnakeEyes/PYTHON-PLUS-IRON.jpg ;o) Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Re: List open files
Salut ! Finalement, tu as obtenu plus de réponses sur le NG français. Comme quoi, la vérité n'est pas toujours ailleurs... @+ -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Re: List open files
Hi! OpenFiles.exe OK, on a standard CPU/windows. On a server, use:Net File @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Re: placing a Python com object into Excel
Hi! Perso, I started from excelAddin.py (in C:\Python25\Lib\site-packages\win32com\demos). And, I'm happy with the result (who run OK with Excel 2000, XP, 2007). @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Re: Python-PHP bridge?
Hi! Only under Windows, you can use PHPscript. It's the active-scripting release of PHP. With it, you can send PHP's functions (source), and call these functions (with parameters). With the same method, you can also use, from Python, VBscript, Jscript, PerlScript, RubyScript. @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Re: Internet Explorer 8 beta release
Hi! compliance with the W3C standard Ouarf! Ouarf! which navigator has been compatible with CSS-3, left for several years? And, it's only ONE point... @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Pb with 2.5.2 PyScripter
Hi, all! Since the install of Python 2.5.2, Pyscripter (1.9.9.1) close for each error. Is it only me? Or another guys have the same thing? @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Re: Python COM automation - Controlling Microsoft Agent
Whaoouuu! A young newbie! Thanks... for others youngs newbies. -- http://mail.python.org/mailman/listinfo/python-list
Re: Pb with 2.5.2 PyScripter
Re! An exemple. With this script: a=123 b=456 d=a+b+c (note than 'c' is not defined). When I run, inside Pyscripter, the error-dialog is showed, and, one second after, PyScripter is closed. This problem is present since Python 2.5.2. I search, for know if it's a problem only on my computer, or a more general problem. Thanks by advance for your(s) answer(s). @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Re: Pb with 2.5.2 PyScripter
Hi! Thank you for return. I will uninstall+reinstall Pyscripter. @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Re: Pb with 2.5.2 PyScripter
Hi! Problem solved, after reset layouts. Thanks, all! Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Re: urllib supports javascript
Hi! javascript support need more details: - only the (abstract) language? - or, also, visuals aspects? On Windows, you can use,easily, the language (JScript). Example: import win32com.client js=win32com.client.Dispatch('ScriptControl') js.language='jscript' src=function jmul2(x){ r=(x++)*2; return r; } js.addcode(src) print js.eval(jmul2(111);) # = 222 This simple example show how define use a function in Javascript code. By the same way, you can mixer javascript, perlscript, vbscript, rubyscript, phpscript, etc. Now, for the visual aspect of the question, you must work differently. On way is to work in HTA (HTml Application). Inside HTA, there are a simili-browser, able to render HTML code, and run Javascript Pythonscript (a bit different from PythonC). Here un example: hta:application windowstate=normal caption=no singleinstance=yes / html head script language=Python def Init(): self.resizeTo(360,360) self.moveTo(110,10) def meteo(num): obj = document.getElementById('METEODIV') st = 'a href=http://ponx.org/ponx/guie.htm;img src=http://meteo.region-nord.com/webmestre/prev/j'+num+'.jpg alt=prevision meteo style=border:none /a' obj.innerHTML = st /script /head body bgColor=#FF background= scroll=no onload=Init(); FORM nbsp;nbsp; input ID=bt1 name=bt1 type=button style=width:100px VALUE=Aujourd'hui onmousedown=meteo('1') / input ID=bt2 name=bt2 type=button style=width:100px VALUE=Demain onmousedown=meteo('2') / input ID=bt3 name=bt3 type=button style=width:100px VALUE=Après-Demain onmousedown=meteo('3') /br blockquote DIV id=METEODIVMMEETTEEOO/DIV /blockquote /FORM script language=Python meteo('1') /script /body /html Warning: ActiveScripting must be authorized (inside IE) Another way is to drive Interne-Explorer from Python. it's possible to call ( return) Javascript functions code, from Python, with parameter. It's more complicated, but with more possibilities. For PLUIE, it's the way which I chose. @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Re: GUI development with 3D view
Hi! no idea how it works with windows. On XP: fine. On Vista: very difficult... @+ MCI -- http://mail.python.org/mailman/listinfo/python-list
Re: GUI development with 3D view
Re! On Vista, OpenGL depend of (releases of) video-cards. Some cards don't support OpenGL = problem! Some cards have native openGL support = good (dream?) Some cards need update (drivers) @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Re: PIL + show() + Vista
Hi! Sorry, I don't understand english. But, with Babelfish-translation, I recovered essence... (you should learn French ; yes! yes! yes!) I'm glad you found a solution Thank you for your solicitude if that executable doesn't honour the wait I have just try on another CPU, with a very new Vista-premium (configuration of exit of factory). The assoc est made with the WindowsPhotoGallery.exe who don't respect the WAIT universally is the solution. The universal solution, it's... you! With forthcoming once. -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Re: PIL + show() + Vista
Hi, Tim! You are right, for shimgvw.dll (on XP / 2000, or some Vista). But others Vista (ou users practice) had associate images with WindowsPhotoGallery.exe. But shimgvw.dll already exist. I found that this line: command = 'start %s /wait %s\\System32\\rundll32.exe %s\\System32\\shimgvw.dll ImageView_Fullscreen %s del /f %s ' % (title,os.environ['SYSTEMROOT'],os.environ['SYSTEMROOT'],file,file) launch a Photo Gallery who respect the WAIT. For me (and my users), it's a solution. Perhaps others PIL's users can read that with interest. Have a good day. Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Re: PIL + show() + Vista
Re! I have found the problem. On Vista, the Windows-Photo-Galery (soft default displayer) don't wait. Even with START /WAIT (in Image.py _showxv), it don't wait. Then, like the preview don't wait, the (next) DEL run prior the end of the launch of the software ; and Windows-Photo-Galery don't found the file... I don't have a good solution. For force view of image, it's possible to delete the DEL /F %s part ; but that will involve many BMP/temporary files. @+ sorry for my bad english Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Re: PIL + show() + Vista
Hi! Not a true solution ; because people who don't have IrfanView don't use it. @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Re: PIL + show() + Vista
Re! I have found a (very) poor solution: in Image.py, inside _showxv function, replace command = start /wait %s del /f %s % (file, file) by command = 'start %s /wait %s\\System32\\mshta.exe %s del /f %s ' % (title,os.environ['WINDIR'],file,file) For zoom in preview, use Ctrl+mouse_roller (good english term?) or Ctrl + Ctrl - Ctrl 0 (keyboard) This solution will be replace by Fredrick Lundh, when he awakes... ;-))) @+ Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
PIL + show() + Vista
Hi! This code: import Image img = Image.open(rD:\ParisNude.jpg) img.show() Don't run on my Vista computer. I have a solution: import Image,os img = Image.open(rD:\FLundhNoNude.jpg) os.startfile(img.filename) It's only in my case? It's censure? ;-) PIL does not approve humour? A solution soon? @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Re: Writing event handler for dropdown list in python
Hi! Please, specify which way you chose, for Python (client-side): wxpython, active-scripting, qt, pluie, other... @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Re: Is there pointer * in Python?
Hi! like in C Why think to C? Why not Cobol? APL? Intercal? For think right in Python, forget C, forget others languages, think inside Python... Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Re: Python in HTML Application (HTA)
Hi! I give a solution in the french newsgroup. Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Re: [ANN] Data Plotting Library DISLIN 9.2
Thanks! I play with this library, for fun ; with success. -- http://mail.python.org/mailman/listinfo/python-list
Re: PyS60
Hi! I am also interested by Python on Symbian-series 60 @+ Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Re: How to free memory ( ie garbage collect) at run time with Python 2.5.1(windows)
Hi! I've send the soft. But, I have no news ; good news? @+ Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Re: SCF released to GPL
Salut ! Le deuxième envoi aurait pu être en français. Cela aurait évité le doublon, tout en maintenant le message. @+ Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Re: How to free memory ( ie garbage collect) at run time with Python 2.5.1(windows)
Re! Sended by direct (private) e-mail @+ Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Re: How to free memory ( ie garbage collect) at run time with Python 2.5.1(windows)
Aïe! gmail said : illegal attachment (because .exe?) I will try to send a zipped-file... @+ Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Re: Seek the one billionth line in a file containing 3 billion lines.
Hi! Create a index (a file with 3,453,299,000 tuples : line_number + start_byte) ; this file has fix-length lines. slow, OK, but once. Then, for every consult/read a specific line: - direct acces read on index - seek at the fisrt byte of the line desired @+ Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Re: IDEs for COM scripting: C# v. Python v. Iron Python v. JPython
Hi! I love the typing assist I get when using C# in VS2005 to write COM clients. But this run only for static-COM-servers. Dynamic-COM-servers are not supported by these assists. And, all COM-servers builds with Python are dynamic-COM-server. And also, dynamic-COM-server is a marvelous way for developpment. @-salutations Michel Claveau PS : C# can use dynamic COM servers, with late binding -- http://mail.python.org/mailman/listinfo/python-list
Re: python 3.0 or 3000 ....is it worth waiting??? Newbie Question
Hi! Python 3000 doesn't include many significant changes to the language One exemple : non-Ascii characters in identifiers (= no significatif change?) Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Re: automatical pdf generating
Is it possible to use Python to realized the above process? I know there is a module named reportlab. Possible? Yes! -- http://mail.python.org/mailman/listinfo/python-list
Re: PEP 3107 and stronger typing (note: probably a newbie question)
Hi! Given that one can add/replace/remove methods and attributes dynamically either on a per-class or per-instance basis, and even dynamically change the class of an object, I fail to see how static typechecking could be meaningfull. Et toc ! -- http://mail.python.org/mailman/listinfo/python-list
Re: Invisible processes in Win2K
Hi! When you lock (the cpu), interactive mode is off. You can try to use services, who run independently of sessions. But... -- http://mail.python.org/mailman/listinfo/python-list
Re: Controlling Firefox with Python
Hi! See Mozlab: http://dev.hyperstruct.net/mozlab and give a report, please. Thank you in advance. Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Re: Python, Dutch, English, Chinese, Japanese, etc.
Et le klingon ? Please, don't forget klingons SVP, n'oubliez pas les klingons ;o) -- http://mail.python.org/mailman/listinfo/python-list
Re: Bug? import cp1252
Hi! I suspect that's there's some invisible character in the file No ; because I reproduce the problem, on another CPU, with typing from scratch. I can't reproduce this -- Python 2.5.1, Windows XP Pro SP2 I'm sorry. Perhaps my french windows is a co-factor? Perhaps my locale has Or my local influence? I had try on four computer, with the same problem. Fortunately, write in UTF-8 delete the problem... -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Bug? import cp1252
Hi! I've a problem with these 2 scripts: file aaa.py (write in ANSI/cp1252): # -*- coding: cp1252 -*- compo={} compo['pxrtf']= { 'fichier': pxrtf.py, 'description': Génération de fichiers RTF } file bbb.py (write in ANSI/cp1252): # -*- coding: cp1252 -*- import aaa With run bbb.py, I see: Traceback (most recent call last): File D:\dev\python\bbb.py, line 3, in module import aaa File D:\dev\python\aaa.py, line 3 ^ SyntaxError: invalid syntax (run directly aaa.py give no problem) (Python 2.5.1 + win_XP-SP2_french) BUT, if I write the file aaa.py in UTF-8, with 1st line:# -*- coding: utf-8 -*- the problem is removed (file bbb.py stay in ANSI/cp1252) Bug? or am I wrong? @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Windows, subprocess.Popen encodage
Hi! From long time, I have problems with strings return, in Windows, by subprocess.Popen / stdout.read() Last night, I found, by hazard, than if the second byte equal 0, it's, perhaps, the solution. With a code like this: p=subprocess.Popen(u850(cmd /u/c tdata=p.stdout.read() if ord(tdata[1])==0: data=tdata.decode('utf-16') else: data=tdata.decode('cp850') Diffrents scripts seem run OK. I had try with: - common dir - dir on unicode-named-files - ping - various commands But, I don't found anything, in any documentations, on this. Sombody can confirm? Am I misled? Am I right? * sorry for my bad english* @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Re: SilverLight, a new way for Python?
Re! it can do much more than active scripting. Hummm Perhaps. But, with ActiveScripting, I can define functions class in Python, Ruby(script), Jscript, VBscript, Perl. I can call these functions/objects directly from Python, and share many objects ( libraries). I am not sure to find these features in SilverLight. Have you at least run the demos? Yes, I downloaded two demos, and run-it. I had look (quickly) the code. It's run. But it's too few for call that a true try. However, these demos are nice fun. Another thing: I have VS-2005. I had install the plug-in SilverLight/VS ; OK, but I don't found it in VS. Perhaps because I use a french version? (sorry, I don't speak english). This soft is young. I will wait some times, for read messages realizations from new users. @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Tcl-tk 8.5?
Hi! See http://wiki.tcl.tk/10630 Any plan to integrate Tcl 8.5 in standard Python? @+ MCI -- http://mail.python.org/mailman/listinfo/python-list
Re: python and activeX control
Bonsoir ! Flagrant délit de manque de confiance dans les newsgroups français en vue... Ha ! Ha ! Ha ! Bonne chance avec les US... -- http://mail.python.org/mailman/listinfo/python-list
Re: pluie documentation in english
Bonjour ! Avec Internet-Explorer 6 : Dans Internet-explorer, par le menu, faire : Outils + Options_internet Aller sur le dernier onglet (Avancé), et cocher : autoriser le contenu actif (désolé pour le français, mais mon anglais est vraiment trop mauvais). Et, merci pour l'info, ça m'a permis d'ajouter un item à la F.A.Q. @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Re: Opening Photoshop EPS with PIL?
.eps == vector ; not bitmap -- http://mail.python.org/mailman/listinfo/python-list
Re: Object Oriented Database with interface for Pyhton
Hi! http://www.sqlalchemy.org/ No. sqlalchemy is an object-oriented-interface(or wrapper) Alfaeco want an Object-Oriented-Database (like Jasmin, Caché, etc.) @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Re: Mocking OpenOffice in python?
Hi! Under windows, I drive OOo, from Python, via COM/OLE-automation. It's run OK, but some bugs, in the OOo-COM-Python, had stop my devloppements... However, this way is usable (only on Win, ok?) @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Re: Graphviz Python Binding for Python 2.5 on Windows?
Hi! You can also use/call GraphViz by COM. It's run OK with P2.3 - 2.4 2.5 @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Re: bluetooth on windows.......
Hi! try to find a PyBluez version already built for your Python 2.5 On the site : http://org.csail.mit.edu/pybluez/release/PyBluez-0.9.1.win32-py2.5.exe -- http://mail.python.org/mailman/listinfo/python-list
Re: Count nb call of a function, without global var or decorator
Re! I can do : def ff(): this=ff try: this.count=this.count+1 except: this.count=1 a=1 b=2 c=a+b ff() fa=ff ff() fa() print ff.count But that use, inside the function, the litteral name of the function; and I want no use litteral name (inside) @+ Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Re: Count nb call of a function, without global var or decorator
Re! why you didn't use an iterator? If the iterator is extern (to the function), it's like decorator, or global var. If it is internal, it's huge, compare to this.count=this.count+1 (or this.count+=1) @+ Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Re: generate tuples from sequence
Hi! r=iter(range(9)) print zip(r,r,r) But, it's few like Peter... -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Pb ReportLab (ttfonts.py)
Hi! I try to generate PDF from Python 2.5 + ReporLab_lib, and, I have: C:\Python25\reportlab\pdfbase\ttfonts.py:407: DeprecationWarning: struct integer overflow masking is deprecated stm.write(pack(LLL, checksum, offset, len(data))) C:\Python25\reportlab\pdfbase\ttfonts.py:419: DeprecationWarning: struct integer overflow masking is deprecated stm.write(pack('L', checksum)) (note : the same script run Ok with Python 2.4.3) One idea? Thanks you by advance Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Re: Pb ReportLab (ttfonts.py)
Hi! Does the PDF generation work? Those are just warnings. Yes, it run. Yes it's only warning But, it's wincing... @-salutations MCI -- http://mail.python.org/mailman/listinfo/python-list
Re: Pb ReportLab (ttfonts.py)
Hi! You are right. I had suppose than ReportLab folks read this NG. No luck... for instant. MCI -- http://mail.python.org/mailman/listinfo/python-list
Pb subprocess
Hi! This code : p=subprocess.Popen(chaine, shell=True, stdout=subprocess.PIPE, stdin=subprocess.PIPE, stderr=subprocess.PIPE) data=p.stdout.read() Run OK, except when stdout.read() give unicode data, with char255 (this give many ?) How read real unicode data in stdout.read() ? Thanks for all anwers Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Re: Pb subprocess
Solved. Thank to Amaury. Solution : change (in register), Command Processor, for to force using of CMD /U/C Then, STDOUT is in utf-16 (but win-console stay in cp850) HGD Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Python 2.5 ; Effbot console ; thank ; pb release.
Hi! (***sorry for my approximative english***) A few months ago, I needed a console, under Windows. After several research, I selected the console of EffBot. Thank you very much, Fredrik Lundh, for this small tool, quite practical and which repaired me well. Then, Python 2.5 arrived. Many modules/libraries was adapted to Python 2.5 But, it missed the console of EffBot. Patiently, I visited the site of EffBot regularly. Then, I started to corrode me the nails. Then, I questioned myself: with each new version of Python, certain libraries are never adapted/compiled. For the professional developments, it is a major risk. For (the evolution of) Python, it is an obstacle. The rebuilding of libraries (not-standard) is not (under Windows) very easy, and not very standard. To facilitate this possibility (of rebuilding) could be an objective, intended to improve perenniality of Python. What do you think of that? ( While waiting, for the console, I ended up writing my (perso) small module. Therefore, THANK YOU, Fredrik, FOR NOR TO HAVE COMPILED a version for P-2.5, because: - that made me become aware of brittleness, in time, of the external bookshops; - that forced me to write a trick of which I will be used again myself. ) @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Re: COM Error -- Urgent help
Hi! .func( is not defined... @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
News on versions modules for Python-2.5?
Hi, all! Any news, on release Python-2.5 for many modules/lib? Some exemples: Console (Effbot) SciPy Iconvcodec DirectPython SendKeys Dislin PyGame Twain etc. And who can confirm that these modules are independent of Python version? ReportLab Pyrex ComTypes PythonNet Gmpy Kodos Candygram Venster etc. (tip: I am on windows, and I don't can/know compile any module) Thanks by advance, and sorry for eventuals troubles (and for my super english)... Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Re: windev vs python SOS
Re-Bonjour ! J'avais écrit, dans le message précédent, que la société PC-Soft avait eu des difficultés financières, il y a plusieurs années. Comme je n'ai pas eu l'occasion de vérifier cette information, (et à la demande de la société PC-Soft), je demande donc aux lecteurs de considérer cette information comme nulle. Concentrez-vous sur le reste du message. @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Re: Looking for a python IDE
Hi! Perso, I like komodo. But : - littles pb with (very) big scripts - slow to start - no french version... @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Re: Hardlinks on NTFS
Hi! Here, a copy of a message send on anither newsgroup (by me). Summary on hardlink junction-point. *** Sorry, this text is in french ; but command links are good. *** Synthèse sur les hardlinks et les points de jonction. - Les hardlinks sont des alias sur des fichiers. - Les points de jonction sont des alias sur des répertoires. A) Hardlink Pour créer des hardlinks, le mieux est d'utiliser fsutil.exe Tapez fsutil create hardlink [Entrée] pour voir la syntaxe Fsutil n'est pas fourni avec W2K, mais le fichier de XP fonctionne très bien. Pour connaître la liste des hardlinks, il existe hlscan.exe , fourni avec le Windows-resource-kit Quelques infos de plus, par l'aide de windows, en cherchant hardlink B) Point de jonction Un point de jonction permet de considérer un volume, une unité, ou un répertoire, comme un sous-répertoire. Il s'agit alors d'un alias, avec répercussion instantanée des modifications. Dans un DIR, les points de jonction apparaissent avec JONCTION à la place de REP Pour créer un point de jonction, il existe linkd.exe , fourni avec le Windows-resource-kit Linkd.exe permet aussi le suppression des points de jonction (mais RD fonctionne aussi bien) Pour une aide sur linkd : linkd /? (fallait y penser, hein!) Un article MS sur les points de jonction : http://support.microsoft.com/Default.aspx?kbid=205524 Quelques renseignements dans l'aide de windows, à point jonction (glossaire). Chercher aussi lecteur monté Faites de beaux rêves. Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list