Re: "OSError: [Errno 9] Bad file descriptor" When I try to Install the library in conda prompt

2020-07-21 Thread dn via Python-list
On 7/22/20 4:46 PM, Mathiyazhagan S wrote: Dear Sir/Madam, I'm new to the python program. I'm trying to install the "numby" or anything to add into the library by using the windows command prompt I'm getting some error please find the attachment. So please help me to resolve this issue.

"OSError: [Errno 9] Bad file descriptor" When I try to Install the library in conda prompt

2020-07-21 Thread Mathiyazhagan S
Dear Sir/Madam, I'm new to the python program. I'm trying to install the "numby" or anything to add into the library by using the windows command prompt I'm getting some error please find the attachment. So please help me to resolve this issue. Thank you -- https://mail.python.org/mailman/

Re: Bad file descriptor

2014-11-14 Thread Cameron Simpson
On 13Nov2014 15:40, satishmlm...@gmail.com wrote: import os os.write(1, b'Hello descriptor world\n') OSError: Bad file descriptor How to give a file descriptor number to this function? How to get a file descriptor number? Wow, this must be at least the 4th post of the same questi

Re: Bad file descriptor

2014-11-13 Thread Mark Lawrence
On 13/11/2014 23:40, satishmlm...@gmail.com wrote: import os os.write(1, b'Hello descriptor world\n') OSError: Bad file descriptor How to give a file descriptor number to this function? How to get a file descriptor number? I suggest getting your cheque book out and paying for the

Re: Bad file descriptor

2014-11-13 Thread Roy Smith
In article , Ben Finney wrote: > satishmlm...@gmail.com writes: > > > import os > > os.write(1, b'Hello descriptor world\n') > > OSError: Bad file descriptor > > It works fine for me:: > > >>> import os > >>> os

Re: Bad file descriptor

2014-11-13 Thread Ben Finney
satishmlm...@gmail.com writes: > import os > os.write(1, b'Hello descriptor world\n') > OSError: Bad file descriptor It works fine for me:: >>> import os >>> os.write(1, b'Hello descriptor world\n') Hello descriptor world 23 You d

Re: Bad file descriptor

2014-11-13 Thread sohcahtoa82
On Thursday, November 13, 2014 3:40:50 PM UTC-8, satish...@gmail.com wrote: > import os > os.write(1, b'Hello descriptor world\n') > OSError: Bad file descriptor > > How to give a file descriptor number to this function? How to get a file > descriptor number? htt

Bad file descriptor

2014-11-13 Thread satishmlmlml
import os os.write(1, b'Hello descriptor world\n') OSError: Bad file descriptor How to give a file descriptor number to this function? How to get a file descriptor number? -- https://mail.python.org/mailman/listinfo/python-list

Re: Errno 9] Bad file descriptor

2010-07-15 Thread MRAB
Dump looks like this: ... File "C: ... ineptpdf8.4.20.pyw", line 1266, in initialize return self.initialize_fopn(docid, param) File "C: ... ineptpdf8.4.20.pyw", line 1411, in initialize_fopn print buildurl IOError: [Errno 9] Bad file descriptor Two strange things: 1st: in the

Re: Errno 9] Bad file descriptor

2010-07-15 Thread joblack
Dump looks like this: ... File "C: ... ineptpdf8.4.20.pyw", line 1266, in initialize return self.initialize_fopn(docid, param) File "C: ... ineptpdf8.4.20.pyw", line 1411, in initialize_fopn print buildurl IOError: [Errno 9] Bad file descriptor Two strange things: 1st: in the

Re: Errno 9] Bad file descriptor

2010-07-14 Thread Thomas Jollans
On 07/14/2010 01:21 PM, joblack wrote: >> | >> | Starting point: >> | ... >> | self.status['text'] = 'Processing ...' >> | try: >> | cli_main(argv) >> | except Exception, e: >> | self.status['text'] = 'Error: ' + str(e) >> | return >> | ..

Re: Errno 9] Bad file descriptor

2010-07-14 Thread joblack
> | > | Starting point: > | ... > |         self.status['text'] = 'Processing ...' > |         try: > |             cli_main(argv) > |         except Exception, e: > |             self.status['text'] = 'Error: ' + str(e) > |             return > | ... > | cli_main: > | > |     keypath, inpath, outp

Re: Errno 9] Bad file descriptor

2010-07-13 Thread Cameron Simpson
On 13Jul2010 05:56, joblack wrote: | Thanks for the answers so far. It's not my code I'm just curious how | that could happen: | | Starting point: | ... | self.status['text'] = 'Processing ...' | try: | cli_main(argv) | except Exception, e: | self.s

Re: Errno 9] Bad file descriptor

2010-07-13 Thread joblack
All right I found the web link. It's an improvement to the pdf miner project (adds pdf dump methods). http://pastebin.com/P8SWj5YK -- http://mail.python.org/mailman/listinfo/python-list

Re: Errno 9] Bad file descriptor

2010-07-13 Thread joblack
Thanks for the answers so far. It's not my code I'm just curious how that could happen: Starting point: ... self.status['text'] = 'Processing ...' try: cli_main(argv) except Exception, e: self.status['text'] = 'Error: ' + str(e) return ..

Re: Errno 9] Bad file descriptor

2010-07-13 Thread Cameron Simpson
On 11Jul2010 17:48, joblack wrote: | I get sometimes a | | Errno 9 Bad file descriptor | | the code is too long to show it here but what are the circumstances | this could happen? A web search showed nothing. | | I have especially the feeling Python 2.6 has some problems with | Unicode ... and

Re: Errno 9] Bad file descriptor

2010-07-12 Thread Tim Roberts
joblack wrote: > >I get sometimes a > >Errno 9 Bad file descriptor > >the code is too long to show it here but what are the circumstances >this could happen? A web search showed nothing. > >I have especially the feeling Python 2.6 has some problems with >Unicode .

Re: Errno 9] Bad file descriptor

2010-07-11 Thread Steven D'Aprano
On Sun, 11 Jul 2010 17:48:40 -0700, joblack wrote: > I get sometimes a > > Errno 9 Bad file descriptor > > the code is too long to show it here You can at least show the actual line that fails. Are you trying to open a file, a named socket, a pipe or a device? >

Errno 9] Bad file descriptor

2010-07-11 Thread joblack
I get sometimes a Errno 9 Bad file descriptor the code is too long to show it here but what are the circumstances this could happen? A web search showed nothing. I have especially the feeling Python 2.6 has some problems with Unicode ... and might not find the file. Is that possible? -- http

Re: Py2exe - Bad File Descriptor

2010-03-01 Thread T
On Feb 28, 10:00 pm, Dennis Lee Bieber wrote: > On Sun, 28 Feb 2010 13:22:19 -0800 (PST), T > declaimed the following in gmane.comp.python.general: > > > Sorry for the lack of code - yes, it does try to write to the > > console.  From what I'm finding, this error may be due to the fact > > that t

Re: Py2exe - Bad File Descriptor

2010-02-28 Thread T
t calls some external > > binaries, one of which restarts the computer.  When I'm logged in, > > this works fine.  However, if I log out, the service stops and logs > > the following error in the Event Log: > > > :(9, 'Bad file descriptor') > > > Anyon

Py2exe - Bad File Descriptor

2010-02-28 Thread T
n the Event Log: :(9, 'Bad file descriptor') Anyone have an idea what could be causing this? -- http://mail.python.org/mailman/listinfo/python-list

Re: "Bad file descriptor" in HTTPServer using Multiprocessing.

2010-01-15 Thread Adam Tauno Williams
f HTTPServer 'workers' (almost exactly as demonstrated in > the docs). This works perfectly so long as the subprocess that > starts the HTTPServer workers is the *first* process started by the > master process. Otherwise the HTTPServer's serve_forever immediately >

"Bad file descriptor" in HTTPServer using Multiprocessing.

2010-01-10 Thread Adam Tauno Williams
This works perfectly so long as the subprocess that starts the HTTPServer workers is the *first* process started by the master process. Otherwise the HTTPServer's serve_forever immediately abends with: "(9, 'Bad file descriptor')" I'm confused why the order of s

[Errno 9] Bad file descriptor

2009-08-10 Thread Mehndi, Sibtey
Hi I am trying to create a COM object of picalo functionalities so that I can use it into my VB application but I am getting the following error "[Errno 9] bad file descriptor". Can you please suggest me what is supposed to do to avoid this problem? This is my code class T

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

2007-06-19 Thread nik
. When I am shutting down the application I close the serial port, which causes the IO error: (9, 'Bad file descriptor'). It makes sense that we would get this error, because it is trying to read off of a closed 'file'. Is there a better way to close this thread and port down? T

socket.error: (9, 'Bad file descriptor') Python 2.5

2007-03-16 Thread Brian G. Merrell
automation/tomato/Tomato/SeleniumGateway.py", line 161, in send_string self.waiting_client.write(command) File "/usr/lib/python2.5/socket.py", line 261, in write File "/usr/lib/python2.5/socket.py", line 248, in flush socket.error: (9, 'Bad file descriptor') However, I do not have any

Re: socket and threading ... bad file descriptor

2006-09-14 Thread hg
n socket, > socket.py raises a bad file descriptor in _dummy. > > I tried using plain threads with the same problem. > > Any clue ? > > Thanks, > > hg Bug discovered, sorry -- http://mail.python.org/mailman/listinfo/python-list

socket and threading ... bad file descriptor

2006-09-14 Thread hg
Hi, I have two classes, one listens and accepts connections, gets the socket, reads the first byte from the opened socket then launches a thread (threading) and gives it the socket identifier. The first time the thread attempts to read from the given socket, socket.py raises a bad file

Re: [Errno 9] Bad File Descriptor on Windows 2003 Server & Py 2.4.1

2005-05-03 Thread rbt
Dennis Lee Bieber wrote: > On Tue, 03 May 2005 08:59:14 -0400, rbt <[EMAIL PROTECTED]> > declaimed the following in comp.lang.python: > > >>The below script produces a '[Errno 9] Bad File Descriptor' when >>executed. If I remove the try: except: statem

Re: [Errno 9] Bad File Descriptor on Windows 2003 Server & Py 2.4.1

2005-05-03 Thread rbt
vincent wehren wrote: > "rbt" <[EMAIL PROTECTED]> schrieb im Newsbeitrag > news:[EMAIL PROTECTED] > | The below script produces a '[Errno 9] Bad File Descriptor' when > | executed. If I remove the try: except: statements, the script stops when > | the

Re: [Errno 9] Bad File Descriptor on Windows 2003 Server & Py 2.4.1

2005-05-03 Thread vincent wehren
"rbt" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] | The below script produces a '[Errno 9] Bad File Descriptor' when | executed. If I remove the try: except: statements, the script stops when | the error occurs. | | The purpose of the script is

[Errno 9] Bad File Descriptor on Windows 2003 Server & Py 2.4.1

2005-05-03 Thread rbt
The below script produces a '[Errno 9] Bad File Descriptor' when executed. If I remove the try: except: statements, the script stops when the error occurs. The purpose of the script is to monitor the size of the three main logs on a Windows 2003 server and send and email should any o

Re: file.readlines() - gives me error (bad file descriptor)

2005-01-06 Thread Abhijit Soman
t): File "C:\Documents and Settings\Gregory\My Documents\Get New Great Job\testfile.py", line 3, in ? test=logfile.readlines() IOError: [Errno 9] Bad file descriptor I'm running Windows XP, Python 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] on win32 Any help would

Re: file.readlines() - gives me error (bad file descriptor)

2005-01-06 Thread Binu K S
http://mail.python.org/pipermail/python-bugs-list/2001-October/007650.html Rest assured you're not on drugs :) On Thu, 6 Jan 2005 14:45:24 +0530, Gurpreet Sachdeva <[EMAIL PROTECTED]> wrote: > On Thu, 6 Jan 2005 14:27:40 +0530, Binu K S <[EMAIL PROTECTED]> wrote: > > I'm sorry, I didn't get what y

Re: file.readlines() - gives me error (bad file descriptor)

2005-01-06 Thread Gurpreet Sachdeva
On Thu, 6 Jan 2005 14:27:40 +0530, Binu K S <[EMAIL PROTECTED]> wrote: > I'm sorry, I didn't get what you trying to say here. Where do you see > a read altering the file? An example might help. Please try: logfile=file(r'test.txt','w+') logfile.write('datetime') Check the contents of test.txt, y

Re: file.readlines() - gives me error (bad file descriptor)

2005-01-06 Thread Binu K S
On Thu, 6 Jan 2005 13:17:11 +0530, Gurpreet Sachdeva <[EMAIL PROTECTED]> wrote: > On Thu, 6 Jan 2005 12:55:22 +0530, Binu K S <[EMAIL PROTECTED]> wrote: > >>>The file's current position moves as you write into it. > I concure and have figured out the solution BUT while reading from the > file from

Re: file.readlines() - gives me error (bad file descriptor)

2005-01-05 Thread Gurpreet Sachdeva
On Thu, 6 Jan 2005 12:55:22 +0530, Binu K S <[EMAIL PROTECTED]> wrote: >>>The file's current position moves as you write into it. I concure and have figured out the solution BUT while reading from the file from the position where the file handler is, should return "Null/Blank/Anything in this world

Re: file.readlines() - gives me error (bad file descriptor)

2005-01-05 Thread Binu K S
There's nothing crazy going on here. The file's current position moves as you write into it. Both read and write operation use the same offset. The tell() method gives you the current position at any time. When you append to a file the position moves to the end of the file so that the next write ha

Re: file.readlines() - gives me error (bad file descriptor)

2005-01-05 Thread Gurpreet Sachdeva
logfile=file(r'test.txt','a+') logfile.write('datetime') logfile.flush() test=logfile.readlines() print test I added logfile.flush(), the 'datetime' was written in the file correctly but I couldn't get any result... Crazy! Garry -- http://mail.python.org/mailman/listinfo/python-list

Re: file.readlines() - gives me error (bad file descriptor)

2005-01-05 Thread Gurpreet Sachdeva
test=logfile.readlines() > > > ~Vishnu. > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > [EMAIL PROTECTED] > Sent: Thursday, January 06, 2005 11:53 AM > To: python-list@python.org > Subject: file.readlines() - giv

Re: file.readlines() - gives me error (bad file descriptor)

2005-01-05 Thread Aldo Cortesi
Thus spake [EMAIL PROTECTED] ([EMAIL PROTECTED]): > Hey guys, > > I can't figure this one out, why is this simple script giving me > problems? > > logfile=file(r'test.txt','w') ^^^ You've opened the file in write mode. To read from the file, you'll have to reopen it i

RE: file.readlines() - gives me error (bad file descriptor)

2005-01-05 Thread Vishnu
ge- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Thursday, January 06, 2005 11:53 AM To: python-list@python.org Subject: file.readlines() - gives me error (bad file descriptor) Hey guys, I can't figure this one out, why is this simple script giv

file.readlines() - gives me error (bad file descriptor)

2005-01-05 Thread wordsender
uments and Settings\Gregory\My Documents\Get New Great Job\testfile.py", line 3, in ? test=logfile.readlines() IOError: [Errno 9] Bad file descriptor I'm running Windows XP, Python 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] on win32 Any help would be greatly appricated.