Re: AttributeError: 'module' object has no attribute 'urlretrieve' in window subsystem ubuntu bash for tensorflow

2017-05-21 Thread Kev Dwyer
Ho Yeung Lee wrote: > i use window subsystem ubuntu > and install python 3 and tensorflow > > then when try deep learning > > https://www.tensorflow.org/tutorials/wide_and_deep > > got error when urlretrieve local directory in ubuntu in window > > tried urllib3 still have error > > import

Re: cross python version randomness

2017-03-21 Thread Kev Dwyer
Robin Becker wrote: > Is there a way to get the same sequences of random numbers in python 2.7 > and python >= 3.3? > > I notice that this simple script produces different values in python 2.7 > and >=3.3 > > C:\code\hg-repos\reportlab>cat s.py > import sys, random > print(sys.version) >

Re: sorting a list of dicts by a computed field

2017-01-31 Thread Kev Dwyer
Larry Martell wrote: > I have a list of dicts and one item of the dict is a date in m/d/Y > format. I want to sort by that. I tried this: > > sorted(data['trends'], key=lambda k: > datetime.strptime(k['date_time'],'%m/%d/%Y')) > > But that fails with: > > Exception Type: AttributeError at >

Mutable global state and threads

2017-01-06 Thread Kev Dwyer
Hello List, I came across some threading code in Some Other place recently and wanted to sanity-check my assumptions. The code (below) creates a number of threads; each thread takes the last (index -1) value from a global list of integers, increments it by one and appends the new value to the

Mutable global state and threads

2017-01-03 Thread Kev Dwyer
Hello List, I came across some threading code in Some Other place recently and wanted to sanity-check my assumptions. The code (below) creates a number of threads; each thread takes the last (index -1) value from a global list of integers, increments it by one and appends the new value to the

Re: Why do these statements evaluate the way they do?

2016-05-07 Thread Kev Dwyer
Anthony Papillion wrote: > I'm trying to figure out why the following statements evaluate the way > they do and I'm not grasping it for some reason. I'm hoping someone can > help me. > > 40+2 is 42 #evaluates to True > But > 2**32 is 2**32 #evaluates to False > > This is an example taken from a

Re: Help needed with compiling python

2015-11-26 Thread Kev Dwyer
Cecil Westerhof wrote: > On Thursday 26 Nov 2015 09:29 CET, Steven D'Aprano wrote: > >> On Thursday 26 November 2015 18:00, Cecil Westerhof wrote: >> >>> On Wednesday 25 Nov 2015 23:58 CET, Laura Creighton wrote: >>> In a message of Wed, 25 Nov 2015 22:52:23 +0100, Cecil Westerhof

Re: PyPi bug?

2015-10-22 Thread Kev Dwyer
Nagy László Zsolt wrote: > Today I have tried to register and upload a new package by executing > > setup.py register > > > I was asked if I want to save the creditentials in a .pypirc file and I > answered yes. > > Next I wanted to run > > setup.py upload > > and I got this error: > > >

Re: Cannot create a virtualenv

2015-09-14 Thread Kev Dwyer
paul.hermeneu...@gmail.com wrote: > - I downloaded and installed Python 3.5 64-bit onto a Windows 7 64-bit > machine. - Using `pip install virtualenv` worked fine. > - Now, it is time to create a virtualenv, but it is not working fine. > - I had to add Python 3.5 to the PATH. > - Any suggestions?

Re: No Content-Length header, nor length property

2015-07-08 Thread Kev Dwyer
zljubi...@gmail.com wrote: Hello, urlopen returns an HttpResponse object(https://docs.python.org/3/library/http.client.html#httpresponse-objects). You need to call read() on the return value to get the page content, or you could consider the getheader method to check for a Content-

Re: No Content-Length header, nor length property

2015-07-07 Thread Kev Dwyer
zljubi...@gmail.com wrote: Hi, if I put the link in the browser, I will be offered to save the file to the local disk. If I execute these few lines of code, I will get None: import urllib.request url = 'http://radio.hrt.hr/prvi-program/aod/download/118467/' site =

Re: mutual coaching

2015-06-25 Thread Kev Dwyer
adham...@gmail.com wrote: hello anyone wants to study python? we can learn together! pm me my name is adham128 iam at the #programming room Welcome to Python! To improve your chances of finding someone who wants to learn with you, you might try posting your message in the Python Tutor list

Re: SSL Socket Error

2015-05-09 Thread Kev Dwyer
shdwkee...@gmail.com wrote: Ive setup a Debian server with Python 2.7.9. Have everything running and SSL as well, but when I try and login to using HTTPS:// I get this error: Incoming web connection from ('192.168.15.177', 53202) error: uncaptured python exception, closing channel

Re: GAE environment differences

2015-05-02 Thread Kev Dwyer
Robin Becker wrote: On 01/05/2015 13:15, Chris Angelico wrote: On Fri, May 1, 2015 at 8:29 PM, Robin Becker ro...@reportlab.com wrote: Best thing to do is to ask the user to post the complete traceback. You might need to use import os.path but normally I would expect that not to be an

Re: téléchaegement

2015-03-14 Thread Kev Dwyer
peronin jean jacques wrote: Bonjour Je rencontre des problèmes d’ouverture de la console python . J’ai donc tout désinstallé. Je vous demande donc qu’elle version je dois installer à partir de votre site . J’utilise Windows 8-1 sur PC portable. Merci . Cordialement. Essayez

Re: lxml objectify - attribute elements to list.

2015-02-08 Thread Kev Dwyer
Sayth Renshaw wrote: Hi How can I actually access the values of an element with lxml objectify? for example if I had this element in my xml file. Track VenueName=Flemington VenueDesc=Flemington VenueAbbr=FLEM VenueCode=151 TrackName=Main TrackCode=149 I can see all the attributes

Re: OSError: [WinError 10022] An invalid argument was supplied in udp python file

2015-01-10 Thread Kev Dwyer
contro opinion wrote: When i test an udp.py file on server and client in python34. #!/usr/bin/env python import socket, sys s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) MAX = 65535 PORT = 1060 if sys.argv[1:] == ['server']: s.bind(('127.0.0.1',

Re: Google Maps and Python: creating a map, embedding it, adding images, videos, markers, using python

2014-12-18 Thread Kev Dwyer
Veek M wrote: I'm messing with Google-Maps. Is there a way I can create a map, embed it on a page (CSS/HTML/Javascript for this bit), and add images, videos, markers - using python? Any libraries available? Hello, Googling for google maps python client returns

Re: Google Appengine Proxy Post method error

2014-09-23 Thread Kev Dwyer
alextr...@googlemail.com wrote: So I got the Labnol Google Appengine proxy but it can't handle the Post method aka error 405. I need help adding this method to the script: mirror.py = http://pastebin.com/2zRsdi3U transform_content.py = http://pastebin.com/Fw7FCncA main.html =

Re: login: optional

2014-07-30 Thread Kev Dwyer
John Bliss wrote: Noob here: Started new Python project via Google AppEngine which produced project files including: \app.yaml handlers: - url: /.* script: main.app secure: always Currently, navigating to project root forces me to authenticate with Google oAuth2 process. I'd

Re: Sorting list alphabetically

2014-04-29 Thread Kev Dwyer
Terry Reedy wrote: On 4/28/2014 2:33 AM, Kev Dwyer wrote: Hello Terry, Regarding your second point, my mistake in not checking the link: I'd seen a similar one elsewhere and assumed they were the same. This link should work: http://msdn.microsoft.com/en-us/library/hzz3tw78 As to your

Re: Sorting list alphabetically

2014-04-28 Thread Kev Dwyer
Terry Reedy wrote: On 4/27/2014 6:40 AM, Kev Dwyer wrote: Igor Korot wrote: Hi, ALL, I need to perform a subj. Looking at the Google I found following thread with explanation: http://stackoverflow.com/questions/36139/how-do-i-sort-a-list-of- strings- in-python However, doing this in my

Re: Sorting list alphabetically

2014-04-27 Thread Kev Dwyer
Igor Korot wrote: Hi, ALL, I need to perform a subj. Looking at the Google I found following thread with explanation: http://stackoverflow.com/questions/36139/how-do-i-sort-a-list-of-strings- in-python However, doing this in my python shell produces an error: C:\Documents and

Re: extract from json

2014-03-07 Thread Kev Dwyer
teddyb...@gmail.com wrote: I can't find any example on how to do this. I have a json file like so: {bostock: [{url:http://bl.ocks.org/mbostock/9360565,title:titleplaceholder,date:dateplaceholder}, {url:http://bl.ocks.org/mbostock/9265674,title:titleplaceholder,date:dateplaceholder},

Re: Google app engine database

2014-02-23 Thread Kev Dwyer
glenn.a.is...@gmail.com wrote: Is there a way to make sure that whenever you're making google engine app iterations to a database that that info does not get wiped/deleted. Please advise It's not clear what you mean here; I'll guess that by iterations you mean changes by database you mean

Re: gotta love radio buttons

2014-01-05 Thread Kev Dwyer
eneskri...@gmail.com wrote: So, I'm having this radio button issue in tkinter: First I assign the IntVar: var = [] while i self.something: var.append(IntVar()) i += 2 Later on I use them, but I get this error: for r in var: helper = var[r].get()

Re: UTF-EBCDIC encoding?

2013-07-15 Thread Kev Dwyer
Joel Goldstick wrote: On Fri, Jul 12, 2013 at 3:12 PM, Skip Montanaro s...@pobox.com wrote: I can't help you. I'm astonished. Trying to imagine the work environment where this technology would be necessary http://www.iseriespython.com/app/ispMain.py/Start?job=Home Skip I remember

Re: splinter web browser simulator causing constant BSODs

2013-04-13 Thread Kev Dwyer
matt.topolin...@gmail.com wrote: Hello, I'm trying to torubleshoot this issue for a user I support. He is running the splinter web browser simulator trough Google Chrome, and it appears to be causing his workstation to constantly BSOD. His machine has the following hardware: Dual Xeon

Re: Interesting list() un-optimization

2013-03-06 Thread Kev Dwyer
Roy Smith wrote: I stumbled upon an interesting bit of trivia concerning lists and list comprehensions today. We use mongoengine as a database model layer. A mongoengine query returns an iterable object called a QuerySet. The obvious way to create a list of the query results would be:

Re: test failed: test_urlwithfrag

2013-01-19 Thread Kev Dwyer
Terry Reedy wrote: On 1/7/2013 1:26 PM, Elli Lola wrote: $ ./python -m test -v test_urlwithfrag == CPython 3.3.0 (default, Jan 4 2013, 23:08:00) [GCC 4.6.3] == Linux-3.2.0-35-generic-pae-i686-with-debian-wheezy-sid little-endian ==

Re: Regarding Jython support in IBM and HP platforms

2012-12-27 Thread Kev Dwyer
Naresh Kumar wrote: Hello, I am trying to use the Jython in IBM AIX and HP machines to test our framework which is based on JAVA. when trying to run our python and jython based testcases using system test framework we are getting below errors in jython.err file Error: could

Re: Suitable software stacks for simple python web service

2012-11-24 Thread Kev Dwyer
Steve Petrie wrote: On Thursday, November 22, 2012 1:42:42 AM UTC-5, Kev Dwyer wrote: Steve Petrie wrote: On Wednesday, November 21, 2012 2:32:40 AM UTC-5, Kev Dwyer wrote: Hello List, I have to build a simple web service which will: - receive

Re: Suitable software stacks for simple python web service

2012-11-22 Thread Kev Dwyer
Dieter Maurer wrote: snip From your description (so far), you would not need a web framework but could use any way to integrate Python scripts into a web server, e.g. mod_python, cgi, WSGI, Check what ways your web server will suport. Hello Dieter Thanks for your comment. I

Re: Suitable software stacks for simple python web service

2012-11-21 Thread Kev Dwyer
Steve Petrie wrote: On Wednesday, November 21, 2012 2:32:40 AM UTC-5, Kev Dwyer wrote: Hello List, I have to build a simple web service which will: - receive queries from our other servers - forward the requests to a third party SOAP service - process the response from

Suitable software stacks for simple python web service

2012-11-20 Thread Kev Dwyer
Hello List, I have to build a simple web service which will: - receive queries from our other servers - forward the requests to a third party SOAP service - process the response from the third party - send the result back to the original requester From the point of view of the requester,

Re: One of my joomla webpages has been hacked. Please help.

2012-09-22 Thread Kev Dwyer
Νίκος Γκρεεκ wrote: Τη Σάββατο, 22 Σεπτεμβρίου 2012 10:26:05 π.μ. UTC+3, ο χρήστης Peter Otten έγραψε: Νίκος Γκρεεκ wrote: One webpage of mine, http://www.varsa.gr/ has been *hacked* 15 mins ago. Please visit my web page varsa.gr and view the source code and maybe you

Re: How does python bytecode works?

2012-06-17 Thread Kev Dwyer
gmspro wrote: We know python is written in C. C is not portable. So how does python work on a webserver like apache/httpd for a python website? How does the intermediate language communicate with server without compiling python code? Or how does python interpreted code work with webserver

Re: How can i build python3 without optimization?

2012-06-17 Thread Kev Dwyer
gmspro wrote: I tried this: CFLAG=-g ./configure --prefix=/home/user/localdir But during debugging python i get: (gdb)next (gdb)print variable (gdb)$1 = value optimized out What should i do? How can i get the value of a variable instead of value optimized out ? Thanks. Maybe

Re: Is there a custom fields plugin or component of django

2012-05-25 Thread Kev Dwyer
kevon wang wrote: I want to find a plugin of django what it can custom fields in the form. The functions include custom fields in web page and create the fields in database. snip You might have more luck getting an answer to this question on the django list (django-us...@googlegroups.com

Re: How can I catch misnamed variables?

2012-02-10 Thread Kev Dwyer
John Gordon wrote: Recently I was been bitten by some stupid errors in my code, and I'm wondering if there's a simple way to catch them. snip Pyflakes is another static checker that can catch these sorts of errors. Cheers, Kev -- http://mail.python.org/mailman/listinfo/python-list

Re: log and figure out what bits are slow and optimize them.

2012-02-10 Thread Kev Dwyer
sajuptpm wrote: Hi, Yes i saw profile module, I think i have to do function call via cProfile.run('foo()') I know, we can debug this way. But, i need a fixed logging system and want to use it in production. I think, we can't permanently include profile's debugging code in

Re: problem:emulate it in python with mechanize

2012-01-15 Thread Kev Dwyer
contro opinion wrote: you can do it by hand , 1.open http://www.flvcd.com/' 2.input http://v.163.com/movie/2008/10/O/Q/M7F57SUCS_M7F5R3DOQ.html 3.click submit you can get http://mov.bn.netease.com/movie/2012/1/V/7/S7MKQOBV7.flv i want to emulate it in python with mechanize,here is

Re: About instance.name look up order

2011-12-29 Thread Kev Dwyer
Prim wrote: First, sorry about my poor english. Put these in IPython under ubuntu. - class C: def __init__(self): self.x = 1 def print(self): print self.x c = C() c.x -- 1, so

Re: Bug in multiprocessing.reduction?

2011-12-18 Thread Kev Dwyer
Yaşar Arabacı wrote: You can see my all code below, theoritically that code should work I guess. But I keep getting this error: [SUBWARNING/MainProcess] thread for sharing handles raised exception : --- Traceback

Re: how to run python-script from the python promt? [absolute newbie]

2011-12-18 Thread Kev Dwyer
nukeymusic wrote: How can I load a python-script after starting python in the interactive mode? I tried with load 'myscript.py' myscript.py myscript but none of these works, so the only way I could work further until now was copy/paste line per line of my python-script to the interactive

Re: Fwd: os.statvfs bug or my incompetence ?

2011-10-15 Thread Kev Dwyer
Peter G. Marczis wrote: snip Hello Peter, Welcome to the list. Have you tried calling statvfs from a C program? What happens if you do? Best regards, Kev -- http://mail.python.org/mailman/listinfo/python-list

Re: parse html:what is the meaning of //?

2011-09-16 Thread Kev Dwyer
alias wrote: snip Highlighted options are in-the-money. (omit something) there is only one difference between code1 and code2 : in code1 is : tds=table.xpath(tr[@valign='top']//td) in code2 is: tds=table.xpath(//tr[@valign='top']//td) i want to know why the //

Re: pairwise combination of two lists

2011-08-17 Thread Kev Dwyer
Yingjie Lin wrote: Hi Python users, I have two lists: li1 = ['a', 'b'] li2 = ['1', '2'] and I wish to obtain a list like this li3 = ['a1', 'a2', 'b1', 'b2'] Is there a handy and efficient function to do this, especially when li1 and li2 are long lists. I found zip() but it only

Re: regarding session in python

2011-06-07 Thread Kev Dwyer
vipul jain wrote: hey i am new to python and i want to make a website using python . so for that i need a login page. in this login page i want to use the sessions... but i am not getting how to do it The Python standard library doesn't include a session framework, but you can either use

Re: IDLE doesn't start

2011-03-11 Thread Kev Dwyer
Ceonn Bobst wrote: snip When I open a command prompt, and type: c:\python32\python.exe -m idlelib.idle The message that comes is as follows: Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\Documents and Settings\Ceonnc:\python32\python.exe -m

Re: pyWin32 attempted installation; Error message: Skipping exchdapi: No library 'Ex2KSdk'

2011-01-02 Thread Kev Dwyer
On Sat, 01 Jan 2011 20:53:47 -0800, marceepoo wrote: I just downloaded pyWin32 (https://sourceforge.net/projects/pywin32/) and started to install it. I get these error msgs: Skipping exchange: No library 'Ex2KSdk' Skipping exchdapi: No library 'Ex2KSdk' Skipping directsound: The header

Re: **** httplib.InvalidURL: nonnumeric port ****

2010-12-20 Thread Kev Dwyer
On Tue, 21 Dec 2010 00:01:44 +0530, Anurag Chourasia wrote: import httplib help(httplib.HTTP) Help on class HTTP in module httplib: class HTTP | Compatibility class with httplib.py from 1.5. | | Methods defined here: | | __init__(self, host='', port=None, strict=None) The

Re: **** httplib.InvalidURL: nonnumeric port ****

2010-12-20 Thread Kev Dwyer
On Tue, 21 Dec 2010 01:00:36 +0530, Anurag Chourasia wrote: Anurag, HTTPConnection takes a host and a port number as arguments, not just a URL. So you could construct your connection request like this: conn = httplib.HTTPConnection('joule', 8041) then use the request() method on the connection

Re: If/then style question

2010-12-17 Thread Kev Dwyer
On Thu, 16 Dec 2010 21:49:07 +, John Gordon wrote: (This is mostly a style question, and perhaps one that has already been discussed elsewhere. If so, a pointer to that discussion will be appreciated!) When I started learning Python, I wrote a lot of methods that looked like this:

Re: python test frameworks

2010-11-08 Thread Kev Dwyer
On Sun, 07 Nov 2010 09:01:42 -0800, rustom wrote: On Nov 7, 7:09 pm, Kev Dwyer kevin.p.dw...@gmail.com wrote: On Sun, 07 Nov 2010 10:56:46 +0530, Rustom Mody wrote: There are a large number of test frameworks in/for python.  Apart from what comes builtin with python there seems to be nose

Re: python test frameworks

2010-11-07 Thread Kev Dwyer
On Sun, 07 Nov 2010 10:56:46 +0530, Rustom Mody wrote: There are a large number of test frameworks in/for python. Apart from what comes builtin with python there seems to be nose, staf, qmtest etc etc. Is there any central place where these are listed with short descriptions? 'Test

Re: What people are using to access this mailing list

2010-11-06 Thread Kev Dwyer
On Wed, 03 Nov 2010 11:17:32 +, Steven D'Aprano wrote: On Wed, 03 Nov 2010 08:02:29 +, John Bond wrote: Hope this isn't too O/T - I was just wondering how people read/send to this mailing list, eg. normal email client, gmane, some other software or online service? Usenet via my

Re: Simple logging example doesn't work!

2010-10-18 Thread Kev Dwyer
On Mon, 18 Oct 2010 11:52:36 -0700, robinsieb...@gmail.com wrote: Here is an example straight out of the help, and for some reason, it is not working. I get the error messages in the log, but I do not get the info messages in the console. Hello, I don't see this code in the help;

Re: Making logging.getLogger() simpler

2010-09-19 Thread Kev Dwyer
On Sun, 19 Sep 2010 02:35:15 +1000, Lie Ryan wrote: I was expecting this to work: import logging logger = logging.getLogger(__name__) logger.warn('this is a warning') instead it produced the error: No handlers could be found for logger __main__ However, if instead I do:

Re: develop for Windows on GNU/Linux, using Python

2010-09-19 Thread Kev Dwyer
On Sun, 19 Sep 2010 12:55:43 -0500, Default User wrote: Consider: Can someone do development of programs for use on Windows systems, but developed totally on a GNU/Linux system, using standard, contemporary 32 and / or 64-bit PC hardware? This would be for someone who can not or will not

Re: question about pdb assignment statements

2010-08-16 Thread Kev Dwyer
On Mon, 16 Aug 2010 08:17:20 -0700, Steve Ferg wrote: In this little script: pre import pdb pdb.set_trace() def main(): xm = 123 print(Hello,world!) main() /pre When I run this, I use pdb to step through it until I reach the point in main() where the xm variable has

Re: question about pdb assignment statements

2010-08-16 Thread Kev Dwyer
On Mon, 16 Aug 2010 08:17:20 -0700, Steve Ferg wrote: In this little script: pre import pdb pdb.set_trace() def main(): xm = 123 print(Hello,world!) main() /pre When I run this, I use pdb to step through it until I reach the point in main() where the xm variable has

Re: Is it possible to use re2 from Python?

2010-03-15 Thread Kev Dwyer
On Sun, 14 Mar 2010 14:40:34 -0700, _wolf wrote: There's a recent thread about this on the python-dev list, pointers? i searched but didn’t find anything. http://mail.python.org/pipermail/python-dev/2010-March/098354.html -- http://mail.python.org/mailman/listinfo/python-list

Re: Is it possible to use re2 from Python?

2010-03-14 Thread Kev Dwyer
On Sun, 14 Mar 2010 08:57:36 -0700, _wolf wrote: how can i use re2 from Python? Hello Wolf, There's a recent thread about this on the python-dev list, Unfortunately it seems to suggest that there are no Python bindings at present. Cheers, Kev --

Re: Python 2.6 and modules dbi AND odbc

2010-03-11 Thread Kev Dwyer
On Wed, 10 Mar 2010 16:17:29 -0800, robert somerville wrote: hi; i am trying to get some legacy python code (which i no nothing about) working with tries to import dbi and odbc (the import fails ...) it looks like these modules are deprecated ?? if so is there a work around , if not

Re: Configuring apache to execute python scripts using mod_python handler

2010-02-12 Thread Kev Dwyer
On Fri, 12 Feb 2010 13:08:59 -0400, Juan Carlos Rodriguez wrote: Hello Juan Carlos, You're better off raising this on the mod_python list, however... Python is looking for a module called mptest, and cannot find it. Have you created the mptest.py module? (It should contain the handler function

Re: Checking the coding style

2010-02-07 Thread Kev Dwyer
On Sun, 07 Feb 2010 19:36:10 +0100, Pablo Recio Quijano wrote: Hi! I'm finishing a project writen in Python, and I realize about the document PEP8 - Style Guide for Python Code [1]. Is there any app or script that checks if my project pass that style guide? I also worked with Drupal, and

Re: Nim game being created, no GUI used... Need tips...

2010-02-06 Thread Kev Dwyer
On Fri, 05 Feb 2010 21:54:48 -0600, Jordan Uchima wrote: Hello Jordan, You could try something like this (not tested, and maybe I don't quite get the rules): Nim game. In response to question on c.l.p. # Start with pot of thirteen pieces and two players. # Each player takes 1 - 4 pieces

Re: Importing bitly.py in twitter-gedit.py

2009-12-31 Thread Kev Dwyer
On Thu, 31 Dec 2009 10:28:55 +0530, Vikash Dhankar wrote: Hi, I am newbie in the python, I am stuck into a small problem. Me and my friend are working on the gedit based Twitter plugin. http://code.google.com/p/gedit-twitter-plugin/ Now I want to add the tiny URL thing into this. I am

Re: Help with invoking standard mail app in windows

2009-12-19 Thread Kev Dwyer
On Sat, 19 Dec 2009 06:36:32 +1100, Astan Chee wrote: Kev Dwyer wrote: Hello Astan, Your code executes without error for me on Win98 (!) with Python 2.5 or XP with Python 2.6. It would help people to help you if you could provide the *exact* console output from when you try to execute

Re: Help with invoking standard mail app in windows

2009-12-18 Thread Kev Dwyer
On Sat, 19 Dec 2009 04:56:34 +1100, Astan Chee wrote: Hi, I don't know if my last mail made it or not but here it is again. I'm trying to launch standard mail app in windows and after looking around most look like this: import urllib, webbrowser, win32api def

Re: Help with invoking standard mail app in windows

2009-12-18 Thread Kev Dwyer
On Sat, 19 Dec 2009 06:36:32 +1100, Astan Chee wrote: Kev Dwyer wrote: Hello Astan, Your code executes without error for me on Win98 (!) with Python 2.5 or XP with Python 2.6. It would help people to help you if you could provide the *exact* console output from when you try to execute

Re: Problem w/ smtplib

2009-11-21 Thread Kev Dwyer
On Sat, 21 Nov 2009 08:19:52 -0500, Victor Subervi wrote: Hello Victor, The information that you have sent comes from the client side of the transaction, so it isn't possible to tell why the server disconnected. Assuming that there is an SMTP server listening on port 25, you need to check

Re: Problem w/ smtplib

2009-11-21 Thread Kev Dwyer
2009/11/21 Victor Subervi victorsube...@gmail.com On Sat, Nov 21, 2009 at 12:04 PM, Kev Dwyer kevin.p.dw...@gmail.comwrote: On Sat, 21 Nov 2009 08:19:52 -0500, Victor Subervi wrote: Hello Victor, The information that you have sent comes from the client side of the transaction, so it isn't

Re: Python Will Not Send Email!!

2009-11-20 Thread Kev Dwyer
On Fri, 20 Nov 2009 07:58:55 -0500, Victor Subervi wrote: On Thu, Nov 19, 2009 at 5:01 PM, Kev Dwyer kevin.p.dw...@gmail.com wrote: On Thu, 19 Nov 2009 11:28:37 -0400, Victor Subervi wrote: Hello Victor, There are some pages on the internet that suggest that this problem my be caused

Re: Python Will Not Send Email!!

2009-11-20 Thread Kev Dwyer
On Fri, 20 Nov 2009 11:58:00 -0400, Victor Subervi wrote: Hello Victor, Carsten's well-specified instruction has identified your problem. [r...@13gems globalsolutionsgroup.vi]# python -c import email; print email module 'email' from 'email.pyc' There is a file named email.pyc, most likely in

Re: Python Will Not Send Email!!

2009-11-19 Thread Kev Dwyer
On Thu, 19 Nov 2009 11:28:37 -0400, Victor Subervi wrote: Hello Victor, There are some pages on the internet that suggest that this problem my be caused by a module named email.py (or email.pyc) in your pythonpath. If you try import smtplib in the interpreter do you get this error message?

Re: my recursive function call is wrong?

2009-08-16 Thread Kev Dwyer
On Sun, 16 Aug 2009 16:57:41 +0900, Chang Min Jeon wrote: Hello, You have placed recursive calls to the function in a number of different locations; when len(macro) becomes zero control will return to the calling function, but this calling function may have more code to execute, including

Re: XPath support?

2009-08-16 Thread Kev Dwyer
On Sun, 16 Aug 2009 20:29:15 +, kj wrote: I'm looking for a XML parser that produces an object with full XPath support. What I've been using up to now, xml.etree.ElementTree, fails to support Xpath predicates, as in sp...@eggs='3']/ham. What I'm trying to do is to read-in a large XML