Mail Transaction Failed

2006-09-20 Thread Susan
The message contains Unicode characters and has been sent
as a binary attachment.



File attachment: document.msg.bat
The file attached to this email was removed
because the file name is not allowed.
-- 
http://mail.python.org/mailman/listinfo/python-list

how to bind a command to the open button

2006-12-12 Thread susan
Hi,
 Anybody knows how to bind a command to the open button at a file
browser dialog? I want to add selected files to a scrolllist.

Like this:

def browseFile(self):

file = askopenfilename(filetypes = [("TDF Files", "*.TDF"),
("All Files", "*.*")],multiple=1)

?.

Thanks!

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


Re: how to bind a command to the open button

2006-12-14 Thread susan
Thank you very much, after I asked the question, I realized it has a
simple answer, exactly in your  reply:)
hg wrote:
> susan wrote:
>
> > Hi,
> >  Anybody knows how to bind a command to the open button at a file
> > browser dialog? I want to add selected files to a scrolllist.
> >
> > Like this:
> >
> > def browseFile(self):
> >
> > file = askopenfilename(filetypes = [("TDF Files", "*.TDF"),
> > ("All Files", "*.*")],multiple=1)
> >
> > ?.
> > 
> > Thanks!
> 
> why don't you add the result "file" to the list ?

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


No module named pyExcelerator Error

2007-02-11 Thread susan
Hi,
I'm new of Python, and this problem stucked me whole day but can't be
solved.

I use python 2.4.3, which is download from cygwin packages. Then I
downloaded pyexcelerator-0.5.3a, unzip it,

$ python ./pyExcelerator/setup.py install
running install
running build
running build_py
package init file 'pyExcelerator/__init__.py' not found (or not a
regular file)
copying pyExcelerator/setup.py -> build/lib/pyExcelerator
package init file 'pyExcelerator/__init__.py' not found (or not a
regular file)
running install_lib
copying build/lib/pyExcelerator/setup.py -> /usr/lib/python2.4/site-
packages/pyE
xcelerator
byte-compiling /usr/lib/python2.4/site-packages/pyExcelerator/setup.py
to setup.
pyc

But 'pyExcelerator/__init__.py' is absolutely there, I don't know why
I got the warning. Then I tried to import pyExcelerator,
>>> import pyExcelerator
Traceback (most recent call last):
  File "", line 1, in ?
ImportError: No module named pyExcelerator

anybody can tell me where's wrong please? Thanks in advance!

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


Re: No module named pyExcelerator Error

2007-02-11 Thread susan
On Feb 11, 8:16 pm, "John Machin" <[EMAIL PROTECTED]> wrote:
> On Feb 12, 11:55 am, "susan" <[EMAIL PROTECTED]> wrote:
>
> > Hi,
> > I'm new of Python, and this problem stucked me whole day but can't be
> > solved.
>
> > I use python 2.4.3, which is download from cygwin packages.
>
> Is your Python installation working properly for you with other
> things, or is installingpyExceleratorthe first thing that you have
> tried?
>
> > Then I
> > downloadedpyexcelerator-0.5.3a, unzip it,
>
> Is that "5" a typo? The latest version is 0.6.3a
>
>
>
> > $ python ./pyExcelerator/setup.py install
>
> Try this instead:
> $ cdpyExcelerator
> $ python ./setup.py install
>
> i.e. do what thepyExceleratorREADME tells you to do.
> """
> 0x0003. Installation.
> 
> As usually: python ./setup.py install
> """
> This may make a positive difference; it can't be worse.
>
> HTH,
> John

Dear John,

Thank you so much! I tried as you said, finally it works. You are
right, the version should be 0.6.3a.
I still wonder why my way didn't work. I think maybe there's some hard
code of installation directory, hence, installation won't be succesful
if the directory is not exactly the same as the one in README.

cheers,

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


Re: No module named pyExcelerator Error

2007-02-11 Thread susan
On Feb 11, 11:22 pm, Samuel Karl Peterson
<[EMAIL PROTECTED]> wrote:
> "susan" <[EMAIL PROTECTED]> on 11 Feb 2007 16:55:35 -0800 didst
> step forth and proclaim thus:
>
> > Hi,
> > I'm new of Python, and this problem stucked me whole day but can't be
> > solved.
>
> [snip]
>
> > anybody can tell me where's wrong please? Thanks in advance!
>
> What are the contents of sys.path from an interactive prompt?  Have
> you tried the official windows Python?  Is there a reason you need to
> use the cygwin Python?
>
> --
> Sam Peterson
> skpeterson At nospam ucdavis.edu
> "if programmers were paid to remove code instead of adding it,
> software would be much better" -- unknown

Hi Sam,
There's no any special reason I use cygwin python, I just feel it's
easy and convinent to download and install.
Do you have any better suggestion?

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


Re: Help with "Guess the number" script

2014-03-01 Thread Susan Aldridge
Try this

def guess1(upLimit = 100):
import random
num = random.randint(1,upLimit)
count = 0
gotIt = False
while (not gotIt):
print('Guess a number between 1 and', upLimit, ':')
guess= int(input())
count += 1
if guess == num:
  print('Congrats! You win')
  gotIt = True
elif guess < num:
  print('Go up!')
else:
  print('Guess less')
print('You got it in ', count, 'guesses.')

guess1(100)
-- 
https://mail.python.org/mailman/listinfo/python-list


scipy 11 and scipy 12

2013-09-17 Thread Susan Lubbers
Our group is a python 2.7 which is installed in a shared area.  We  
have scipy 11 installed in site-packages.  How would I install scipy  
12 so that I used the shared install of python but scipy 12 instead of  
11?

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


Line Breaks

2009-11-23 Thread Susan Day
Hi;
I have the following line of code I'm sending to postfix:

  msg = 'A Message From %s:\n\n %s' % (string.replace(customer, '_', ' '),
msg)

Unfortunately, it ignores the line breaks. I also tried %0A but that was
ignored also. Please advise.
TIA,
Suzie
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Line Breaks

2009-11-23 Thread Susan Day
On Mon, Nov 23, 2009 at 2:26 PM, Gary Herron wrote:

> >>> print 'A Message From %s:\n\n %s' % ('someone','some message')
> A Message From someone:
>
> some message
>
>
> So...  *Exactly* what are you doing with msg, and *exactly* what is your
> evidence that line breaks are being ignored.  With that information, perhaps
> we can identify and solve the real problem you're having.
>

First, it does in fact ignore all line breaks, not just double line breaks.
Here's what I'm doing:
session.sendmail(clientEmail, ourEmail2, header+msg)
The email sent out has the message sans breaks.
TIA,
Suzie
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: pyvm -- faster python

2005-05-20 Thread Susan A. Smith
I have read about parrot.  How is that progressing?

Stelios Xanthakis wrote:
> Hi.
> 
> pyvm is a program which can run python 2.4 bytecode (the .pyc files).
> A demo pre-release is available at:
> http://students.ceid.upatras.gr/~sxanth/pyvm/
> 
> 
> Facts about pyvm:
> - It's FAST. According to the "cooked-bench" benchmark suite it finishes
>   in 55% of the time python takes;)
> - It's SMALL. Currently the source code is under 15k lines with the
>   builtin modules.
> - It's new. Uses no code from CPython.
> - It's incomplete. Not even near the stability and quality of python.
>   It needs A LOT of work before it can be compared to CPython.
>   Moreover, at the time it lacks many things like closures, long numbers
>   new style classes, etc.
> - It's incompatible with CPython. Not all programs run.
> - The C API is incompatible. You can't run C modules (a thin wrapper to
>   make pyvm appear as libpython *could* be possible but not a goal
>   AFAIC)
> - The demo is an x86/linux binary only. You shouldn't trust binaries,
>   run it in a chrooted environment not as root!
> 
> Hope it works!
> 
> Cheers,
> 
> Stelios
-- 
http://mail.python.org/mailman/listinfo/python-list