problems opening IDLE

2006-02-09 Thread Bennie Tilma
I'm having trouble with opening the IDLE and running programs. Every time I 
try to open it, it says:
1. Socket error: Connection refused
2. IDLE's subprocess didn't make connection. Either IDLE can't start a 
subprocess or personal firewall software is blocking the connection.

Point is, I allready entered python as an exception to my firewall and when 
I disable it, the messages keep apearing. Can anyone help?

Bennie Tilma

_
Een audiogesprek? Pak Messenger, niet de telefoon 
http://www1.imagine-msn.com/Messenger/Video.aspx

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


problem with opening Python IDLE

2006-02-07 Thread Bennie Tilma
I'm having trouble with opening the python IDLE-program. When I try to start 
it, it gives an errormessage wich states that it can not make a connection, 
possibly because of a firewall. However, adding it to firewalls exeptions or 
even disabeling the firewall has no effect.


These are the errors:
1st. 'Socket error: Connection refused', with the name IDLE subprocess Error
2nd. 'IDLE's subprocess didn't make connection. Either IDLE can't start a 
subprocess or personal firewall software is blocking the connection.


The program I am trying to use is included with this message (it's purpose 
is to get a letter from the user and then pick a letter two places forward 
in the line, alphabetical order).


Bennie Tilma
[EMAIL PROTECTED]

_
Typ je SMS sneller binnen MSN Messenger 
http://www1.imagine-msn.com/Messenger/Expressions.aspx

letter = -1
letter_number = 0
message = []
print 'this program converts all letters into two letters forward'
print 'type 0(zero) to stop and show the message'
while letter != 'stop':
   letter = raw_input("type a letter: ")
   if letter == 'a':
   letter_number = 1
   if letter == 'b':
   letter_number = 2
   if letter == 'c':
   letter_number = 3
   if letter == 'd':
   letter_number = 4
   if letter == 'e':
   letter_number = 5
   if letter == 'f':
   letter_number = 6
   if letter == 'g':
   letter_number = 7
   if letter == 'h':
   letter_number = 8
   if letter == 'i':
   letter_number = 9
   if letter == 'j':
   letter_number = 10
   if letter == 'k':
   letter_number = 11
   if letter == 'l':
   letter_number = 12
   if letter == 'm':
   letter_number = 13
   if letter == 'n':
   letter_number = 14
   if letter == 'o':
   letter_number = 15
   if letter == 'p':
   letter_number = 16
   if letter == 'q':
   letter_number = 17
   if letter == 'r':
   letter_number = 18
   if letter == 's':
   letter_number = 19
   if letter == 't':
   letter_number = 20
   if letter == 'u':
   letter_number = 21
   if letter == 'v':
   letter_number = 22
   if letter == 'w':
   letter_number = 23
   if letter == 'x':
   letter_number = 24
   if letter == 'y':
   letter_number = 25
   if letter == 'z':
   letter_number = 26
   if letter == ' ':
   letter_number = 0
alphabet = [' 
','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z','a','b']

print 'the letter is: ', alphabet[letter_number]
message.append(alphabet[letter_number])
print message

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

Re: how can I put a 1Gb file in a zipfile??

2005-03-20 Thread bennie
Christos TZOTZIOY Georgiou wrote:
On Sun, 20 Mar 2005 10:44:06 +0100, rumours say that Bennie <[EMAIL PROTECTED]>
might have written:

Hi,
I have a problem with ZipFile.
It works okay untily I come across a file that is greater then 1Gb.
Then it exit with the error:
OverflowError: long int too large to convert to int
How can I fix this?

AFAIR there is a 4GiB (or 2GiB) size limit applying both to files added to zip
and to the total size of the zip file.  This limit comes from the zip file
specification (32 bit offsets).

souce:
zip = zipfile.ZipFile(file, 'w')

for all in os.walk(os.getcwd()):
path = all[0]
for document in all[2]:
zipaccview.write(path + os.sep + document)
	zip.close()

Can it be that you are creating a zip file that its total size exceeds the
limit?
That is possible.
But with Winzip program it can.
How come that is with ZipFile not works
--
http://mail.python.org/mailman/listinfo/python-list


how can I put a 1Gb file in a zipfile??

2005-03-20 Thread Bennie
Hi,
I have a problem with ZipFile.
It works okay untily I come across a file that is greater then 1Gb.
Then it exit with the error:
OverflowError: long int too large to convert to int
How can I fix this?
souce:
zip = zipfile.ZipFile(file, 'w')

for all in os.walk(os.getcwd()):
path = all[0]
for document in all[2]:
zipaccview.write(path + os.sep + document)
zip.close()
Bennie
--
http://mail.python.org/mailman/listinfo/python-list