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...
>>
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.
>
> Wh
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 t
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 t
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
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
>
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 th
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 numbe
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:
>> http://docs.python.or
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
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 exceptio
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: http://
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
gument
>
>
> But I'm sure the code is correct and the argument is passed properly,
> otherwise a hundred files before it wouldn't have extracted
> successfully using this exact same piece of code (it loops over it).
> It always fails on this same file every time. When I e
> otherwise a hundred files before it wouldn't have 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 id
. 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?
Thanks for any help or sug
16 matches
Mail list logo