473,326 Members | 2,102 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

error: (10035, 'The socket operation...

IDLE internal error in runcode()
Traceback (most recent call last):
File "C:\PYTHON25\lib\idlelib\rpc.py", line 235, in asyncqueue
self.putmessage((seq, request))
File "C:\PYTHON25\lib\idlelib\rpc.py", line 332, in putmessage
n = self.sock.send(s[:BUFSIZE])
error: (10035, 'The socket operation could not complete without
blocking')

Does this look familiar to anyone? I can't figure out what to do
about it. Python 2.5, windoze. I get it when I execute a Tkinter op
that works elsewhere.

changing this:

t = self.b.create_text(
(point.baseX + 1)*self.checkerSize/2 + fudge,
y + fudge,
text = str(point.occupied),
width = self.checkerSize)

to

t = self.b.create_text(
(point.baseX + 1)*self.checkerSize/2 + fudge,
y + fudge,
text = str(point.occupied),
font=("Times", str(self.checkerSize/2), "bold"),
width = self.checkerSize)

for example. The same code works fine elsewhere. I thought I'd ask
here before I try (no clue) increasing BUFSIZE in rpc.py? I'm not
crazy about tinkering with code I have no clue about..
--
don
Jun 27 '08 #1
3 6157
oops, forgot to post this to the list. sorry.

On Sun, Apr 27, 2008 at 8:41 PM, Benjamin Kaplan <bs***@case.eduwrote:
>
On Sun, Apr 27, 2008 at 7:01 PM, Don Hanlen <dh*****@owt.comwrote:
IDLE internal error in runcode()
Traceback (most recent call last):
File "C:\PYTHON25\lib\idlelib\rpc.py", line 235, in asyncqueue
self.putmessage((seq, request))
File "C:\PYTHON25\lib\idlelib\rpc.py", line 332, in putmessage
n = self.sock.send(s[:BUFSIZE])
error: (10035, 'The socket operation could not complete without
blocking')
>
Does this look familiar to anyone? I can't figure out what to do
about it. Python 2.5, windoze. I get it when I execute a Tkinter op
that works elsewhere.
>
changing this:
>
t = self.b.create_text(
(point.baseX + 1)*self.checkerSize/2 + fudge,
y + fudge,
text = str(point.occupied),
width = self.checkerSize)
>
to
>
t = self.b.create_text(
(point.baseX + 1)*self.checkerSize/2 + fudge,
y + fudge,
text = str(point.occupied),
font=("Times", str(self.checkerSize/2), "bold"),
width = self.checkerSize)
>
for example. The same code works fine elsewhere. I thought I'd ask
here before I try (no clue) increasing BUFSIZE in rpc.py? I'm not
crazy about tinkering with code I have no clue about..
--
don
--
http://mail.python.org/mailman/listinfo/python-list
>

It might have something to do with the fact that IDLE uses Tkinter,
but, having never used it myself, I'm not sure.
Jun 27 '08 #2
En Sun, 27 Apr 2008 21:41:57 -0300, Benjamin Kaplan <bs***@case.eduescribió:
>On Sun, Apr 27, 2008 at 7:01 PM, Don Hanlen <dh*****@owt.comwrote:
> IDLE internal error in runcode()
Traceback (most recent call last):
File "C:\PYTHON25\lib\idlelib\rpc.py", line 235, in asyncqueue
self.putmessage((seq, request))
File "C:\PYTHON25\lib\idlelib\rpc.py", line 332, in putmessage
n = self.sock.send(s[:BUFSIZE])
error: (10035, 'The socket operation could not complete without
blocking')

Does this look familiar to anyone? I can't figure out what to do
about it. Python 2.5, windoze. I get it when I execute a Tkinter op
that works elsewhere.
> It might have something to do with the fact that IDLE uses Tkinter,
but, having never used it myself, I'm not sure.
I think IDLE doesn't work well with Tkinter apps, they compete for the main loop. But perhaps that's already been resolved in recent releases. Anyway this looks like a different problem, I'd file a bug at bugs.python.org
In the meantime, run your app from the command line instead of from inside IDLE.

--
Gabriel Genellina

Jun 27 '08 #3
On 28 Apr, 01:01, Don Hanlen <dhan...@owt.comwrote:
IDLE internal error in runcode()
Traceback (most recent call last):
* File "C:\PYTHON25\lib\idlelib\rpc.py", line 235, in asyncqueue
* * self.putmessage((seq, request))
* File "C:\PYTHON25\lib\idlelib\rpc.py", line 332, in putmessage
* * n = self.sock.send(s[:BUFSIZE])
error: (10035, 'The socket operation could not complete without
blocking')

Does this look familiar to anyone? *I can't figure out what to do
about it. *Python 2.5, windoze. *I get it when I execute a Tkinter op
that works elsewhere.

changing this:

t = self.b.create_text(
* * (point.baseX + 1)*self.checkerSize/2 + fudge,
* * y + fudge,
* * text = str(point.occupied),
* * width = self.checkerSize)

to

t = self.b.create_text(
* * (point.baseX + 1)*self.checkerSize/2 + fudge,
* * y + fudge,
* * text = str(point.occupied),
* * font=("Times", str(self.checkerSize/2), "bold"),
* * width = self.checkerSize)

for example. *The same code works fine elsewhere. *I thought I'd ask
here before I try (no clue) increasing BUFSIZE in rpc.py? *I'm not
crazy about tinkering with code I have no clue about..
--
don
The error is EWOULDBLOCK, which you get when you configure a socket
for asynchronous
I/O and then try an operation which cannot be completed immediately.
It is not an actual failure,
it is part of the asynch socket handling issues: it means that you
have to wait and try later.

AFAIK (almost nothing) the Tkinter application has two processes
(maybe the front-end and the interpreter)
which communicate through a socket. From the traceback, I world say
that the two processes communicate
using RPC protocol and the rpclib module, and that this in turns uses
the asyncqueue module, and one of them fails handling the EWOULDBLOCK
code.

I don't think that increasing BUFSIZE would solve the problem, since
you will try to send more bytes in a single
operation, and this would probably still result in an EWOULDBLOCK
return code.
Anyway, it looks like an IDLE problem, so if you can use another IDE
( Pythonwin? ), you could just ignore it,
maybe submit a bug report ?

Ciao
-----
FB
Jun 27 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: pardhi a via SQLMonster.com | last post by:
Hi when i right click table and click design table then error occured (an unexpected error occured during this operation) If any one knows please let let me know your help would be appreciated ....
1
by: Dr. J | last post by:
I have an application that opens a socket and connects to another application listening over a port. The problem I am encountering is that when the listening application is closed my application...
0
by: crescent_au | last post by:
Hi all, I am having problem with the file() function. In my code, I have file() function like this: $url =...
4
by: Rollasoc | last post by:
Hi, We have a range of four products that can talk to our software (Written in C# & managed C++) via ethernet. Using standard socket class. This has all been working fine for a long time now,...
6
Frinavale
by: Frinavale | last post by:
Hi there, I'm not sure if anyone here can help me but I'm pretty desperate at this point. I've developed a web application that sends emails periodically. Everything works fine in the test...
11
by: weird0 | last post by:
I am a beginner to socket programming to in c#. I know the concepts as to how to program them. I get the above exception when i tried writing the code for the server side on the line...
21
by: puzzlecracker | last post by:
Problem: I send a lot of requests to the application (running on a different box, of course), and I receive back responses from the app . Below: socket corresponds to Socket socket=new...
0
by: Muhammad Asad | last post by:
While attempting to login in SqlPlus at start i found such error.When i entered again user name and passowrd it again show that message. Error. ORA 12535: TNS operation time out. How can i resolve...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.