pvdao / pybluez

Automatically exported from code.google.com/p/pybluez
GNU General Public License v2.0
0 stars 0 forks source link

SystemError exeption on Windows bt.recv #30

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. I'm trying to write an RFCOMM slave under Windows (see attached file).
2. When the master connects and sends its first data packet, the slave
fails with the following traceback:
Traceback (most recent call last):
  File "bluetooth_slave.py", line 56, in <module>
    cp.run()
  File "bluetooth_slave.py", line 37, in run
    self._handle_incoming_data()
  File "bluetooth_slave.py", line 42, in _handle_incoming_data
    data = self.server_sock.recv(1024)
  File
"c:\applications\development\python26\lib\site-packages\bluetooth\msbt.py
", line 59, in recv
    return bt.recv (self._sockfd, numbytes)
SystemError: error return without exception set

What is the expected output? What do you see instead?
I expect to receive data from the master, but instead I get an unhandled
SystemError exception.

What version of the product are you using? On what operating system?
Pybluez 0.18
Win XP SP2

Please provide any additional information below.
See attached code.

Original issue reported on code.google.com by hicr...@gmail.com on 28 Apr 2010 at 8:53

Attachments:

GoogleCodeExporter commented 8 years ago
Forgot to mention, I'm running Python 2.6.

Original comment by hicr...@gmail.com on 28 Apr 2010 at 8:56

GoogleCodeExporter commented 8 years ago
Please delete this issue - I've been an idiot! I was trying to call recv on the
server socket - not the client.

Sorry for any inconvenience.

Original comment by hicr...@gmail.com on 28 Apr 2010 at 9:43

GoogleCodeExporter commented 8 years ago
no problem, glad to hear it worked out.

Original comment by ashu...@gmail.com on 29 Apr 2010 at 8:18