[issue15946] Windows 8 x64 - IO-Error

2012-09-19 Thread Martin v . Löwis
Martin v. Löwis added the comment: I think it should be possible to add a wait=False parameter to rmtree which makes it block until the directory is gone away. This could be similar to the test.support feature added in #15496. For compatibility, such a flag should default to False, and users

[issue15946] Windows 8 x64 - IO-Error

2012-09-15 Thread Christian Mikula
] Zugriff verweigert: '/test' -- components: IO, Windows files: dir_test.png messages: 170514 nosy: cmikula priority: normal severity: normal status: open title: Windows 8 x64 - IO-Error versions: Python 2.6, Python 2.7 Added file: http://bugs.python.org/file27193/dir_test.png

[issue15946] Windows 8 x64 - IO-Error

2012-09-15 Thread Christian Mikula
Changes by Christian Mikula christian.mik...@live.at: -- type: - crash ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15946 ___ ___

[issue15946] Windows 8 x64 - IO-Error

2012-09-15 Thread R. David Murray
R. David Murray added the comment: I believe this is a Windows...feature? We have lots of trouble with this ourselves in the test suite, if I understand correctly. -- nosy: +brian.curtin, r.david.murray, tim.golden ___ Python tracker

[issue15946] Windows 8 x64 - IO-Error

2012-09-15 Thread Christian Mikula
Christian Mikula added the comment: I also think that it is a windows feature! who should report this problem with microsoft? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15946 ___

[issue15946] Windows 8 x64 - IO-Error

2012-09-15 Thread Brian Curtin
Brian Curtin added the comment: I'm not sure Microsoft is going to change anything about this - it has done this for a long time, if not forever. We recently had #15496 receive changes, and #7443 is in the same area and has more details and some patches, so I'd suggest taking up the

IO error

2008-10-18 Thread Rajan Arora
Hi, I am trying to get the data out of an instrument through its GPIB port and using python code. I am able to perfectly control the operation of the instrument with my code. But I have not figured out a way as yet to get the data of the GPIB. I thin that it will go through 2 steps: 1) instrument

Re: IO error

2008-10-18 Thread Lawrence D'Oliveiro
In message [EMAIL PROTECTED], Rajan Arora wrote: I am trying to get the data out of an instrument through its GPIB port... When i try read() command it gives me an IO timeout error. What's the device name, device driver module name, do you have any sample or diagnostic code you can run to

Re: IO error

2008-10-18 Thread Rajan Arora
On Oct 18, 5:52 pm, Lawrence D'Oliveiro [EMAIL PROTECTED] central.gen.new_zealand wrote: In message [EMAIL PROTECTED], Rajan Arora wrote: I am trying to get the data out of an instrument through its GPIB port... When i try read() command it gives me an IO timeout error. What's the

Re: IO error

2008-10-18 Thread Lawrence D'Oliveiro
In message [EMAIL PROTECTED], Rajan Arora wrote: On Oct 18, 5:52 pm, Lawrence D'Oliveiro [EMAIL PROTECTED] central.gen.new_zealand wrote: In message [EMAIL PROTECTED], Rajan Arora wrote: I am trying to get the data out of an instrument through its GPIB port... When i try read()

serial readline thread IO Error (9, 'Bad file descriptor')

2007-06-19 Thread nik
Hi, How can I close a thread that is waiting on a file/port down gracefully, and not have an IO error pop up? I am having trouble closing a thread that is listening to the serial port. I have a thread that calls uses a pySerial serial port and calls readline() without a timeout, which is blocking

Re: Catching a specific IO error

2007-04-25 Thread Tina I
Gabriel Genellina wrote: You can get the 2 as the errno exception attribute. BTW, 2 == errno.ENOENT try: export = open(self.exportFileName , 'w') except IOError, e: if e.errno==errno.ENOENT: # handle the No such file or directory error #

Catching a specific IO error

2007-04-24 Thread Tina I
Hi group :) I have this standard line: export = open(self.exportFileName , 'w') 'exportFileName' is a full path given by the user. If the user gives an illegal path or filename the following exception is raised: IOError: [Errno 2] No such file or directory: /some/path/file.txt So at

Re: Catching a specific IO error

2007-04-24 Thread Thomas Krüger
Tina I schrieb: Now, this works but of course it catches every IOError, and I can not figure out how to restrict it to only catch the [Errno 2]? There's an example that uses the error number: http://docs.python.org/tut/node10.html#SECTION001030 Thomas -- sinature:

Re: Catching a specific IO error

2007-04-24 Thread Gabriel Genellina
En Tue, 24 Apr 2007 08:44:05 -0300, Tina I [EMAIL PROTECTED] escribió: Hi group :) I have this standard line: export = open(self.exportFileName , 'w') 'exportFileName' is a full path given by the user. If the user gives an illegal path or filename the following exception is

Re: Catching a specific IO error

2007-04-24 Thread Steve Holden
Thomas Krüger wrote: Tina I schrieb: Now, this works but of course it catches every IOError, and I can not figure out how to restrict it to only catch the [Errno 2]? There's an example that uses the error number: http://docs.python.org/tut/node10.html#SECTION001030 So what

Re: Catching a specific IO error

2007-04-24 Thread Steven Howe
Steve Holden wrote: Thomas Krüger wrote: Tina I schrieb: Now, this works but of course it catches every IOError, and I can not figure out how to restrict it to only catch the [Errno 2]? There's an example that uses the error number:

Re: Catching a specific IO error

2007-04-24 Thread Michael Hoffman
Steven Howe wrote: Steve Holden wrote: Thomas Krüger wrote: Tina I schrieb: Now, this works but of course it catches every IOError, and I can not figure out how to restrict it to only catch the [Errno 2]? There's an example that uses the error number:

Re: Catching a specific IO error

2007-04-24 Thread John Machin
On 25/04/2007 4:06 AM, Steven Howe wrote: Steve Holden wrote: Thomas Krüger wrote: Tina I schrieb: Now, this works but of course it catches every IOError, and I can not figure out how to restrict it to only catch the [Errno 2]? There's an example that uses the error number:

Strange IO Error when extracting zips to a network location

2006-05-17 Thread Hari Sekhon
it). It always fails on this same file every time. When I extract the same tree to my local drive it works fine without error. I have no idea why pushing to a network share causes an IO Error, shouldn't it be the same as extracting locally from our perspective? It pulls fine, why doesn't it push fine

Re: Strange IO Error when extracting zips to a network location

2006-05-17 Thread Serge Orlov
of code (it loops over it). It always fails on this same file every time. When I extract the same tree to my local drive it works fine without error. I have no idea why pushing to a network share causes an IO Error, shouldn't it be the same as extracting locally from our perspective? It looks

Re: Strange IO Error when extracting zips to a network location

2006-05-17 Thread Hari Sekhon
extracted successfully using this exact same piece of code (it loops over it). It always fails on this same file every time. When I extract the same tree to my local drive it works fine without error. I have no idea why pushing to a network share causes an IO Error, shouldn't it be the same