GithubHelp home page GithubHelp logo

edwynzn / pybluez Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 162 KB

Automatically exported from code.google.com/p/pybluez

License: GNU General Public License v2.0

Python 27.18% C 50.86% C++ 21.97%

pybluez's People

Stargazers

 avatar

Watchers

 avatar

pybluez's Issues

No executable installer for 3,0/3.1

What steps will reproduce the problem?
1. Look at downloads tab
2. Notice lack of "PyBluez-0.16.win32-py3.1.exe"
3. Be disappointed at lack of support for new versions

What version of the product are you using? On what operating system?
Currently, I'm using 0.16 on python 2.6 under Windows XP home edition, but 
I want to update to 3.1...

Please provide any additional information below.
When I tried to compile it from source (which I have done with other 
modules successfully in the past), it said "Can't find the Windows XP 
Platform SDK".

Original issue reported on code.google.com by [email protected] on 22 Mar 2009 at 2:14

PyBluez server works only for a small number of phones

What steps will reproduce the problem?
Run a pybluez server script and try to connect to it with a J2ME midlet.

I have written a midlet and tried it on various phones and have come to the
conclusion that it works on Nokia 6230 and Nokia 5610. Various
Sony-Ericsson phones do not work (they don't even connect to the server)
and neither do some Nokia's (9210). They do, however, connect to a java
server, so I guess the problem lies in pybluez.

I'm running pybluez 0.15 on Ubuntu HH.

Original issue reported on code.google.com by [email protected] on 12 Jun 2008 at 7:38

Widcomm code has been compiled with debugging enabled in PyBluez 0.15

What steps will reproduce the problem?
1. Using "Bluetooth by hp" adapter, VID049F/PID0086, works fine with
widcomm module in PyBluez.
2. Run program attached (GPS Logger decoder)
3. Watch debug messages

What is the expected output? What do you see instead?


What version of the product are you using? On what operating system?
PyBluez 0.15 for Windows Xp Python 2.6

Please provide any additional information below.

/trunk/bluetooth/widcomm.py does not have dbg commented out; it should have
a return inserted at line 11.
printf ("AssignScnValue\n"); not commented out at line 40 of
trunk/widcomm/rfcommif.cpp.
fprintf not commented out at line 107 of rfcommport.cpp.

thanks




Original issue reported on code.google.com by [email protected] on 9 Jan 2009 at 1:25

Attachments:

Fails to detect device via widcomm.inquirer.is_device_ready() if run under SYSTEM account on Windows XP

What steps will reproduce the problem?
1. Run a script via Windows XP's Scheduled Tasks under SYSTEM account and
pybluez fails to detect that a widcomm adapter is ready. The script I used
was actually compiled to exe with py2exe, but I don't think it makes any
difference.
2. Note that if the same script is run under "user" account everything
works fine

What is the expected output? What do you see instead?
widcomm.inquirer.is_device_ready() in __init__.py should return True and
pyblues should select widcomm stack. Instead, for some reason the function
fails to return True (needs more time?, etc?) and I end up with msbt, which
of course fails to find my widcomm device.

What version of the product are you using? On what operating system?
PyBluez-0.18.win32-py2.6 with python 2.6.4 on Windows XP/SP3

Please provide any additional information below.

If I use:

widcomm.inquirer.get_local_device_address() != None

as means of detecting if device is present or not whenever widcomm stack is
detected then it seems to work both under user and SYSTEM accounts.

Attaching patch that changes __init__.py to use the method described above.

Original issue reported on code.google.com by [email protected] on 2 Dec 2009 at 2:49

Attachments:

Problems working with WIDCOMM stack on MS Windows XP

How to reproduce the problem:
1. I assume that you have bluetooth hardware working properly with the
WIDCOMM stack, You have installed correctly PyBluez and You are running
Windows XP.
2. You try to run code using PyBluez. We have a perfect example in the
"inquiry.py" file which is downloadable from the Documentation page in the
official site. Links following:
  >http://org.csail.mit.edu/pybluez/examples-0.7/inquiry.txt
  >http://org.csail.mit.edu/pybluez/docs.html

The output we normally expect is something like:
C:\Documents and Settings\rik\Desktop\PythonTests>inquiry.py
performing inquiry...
found 1 devices
  Z310i - 00:1C:A4:AB:21:7E

What we obtain instead is the following error:
C:\Documents and Settings\rik\Desktop\PythonTests>inquiry.py
Traceback (most recent call last):
  File "C:\Documents and Settings\rik\Desktop\PythonTests\inquiry.py", line
8, i
n <module>
    import bluetooth
  File "C:\Programmi\Python25\Lib\site-packages\bluetooth\__init__.py",
line 11,
 in <module>
    import _msbt
ImportError: DLL load failed: Impossibile trovare il modulo specificato(*).

(*)The italian phrase means "Impossible to find the specified module"

Why this happens:
Well, I found that in the code contained in the file "__init__.py" which
belongs to PyBluez libraries there is a passage where, without any
conditions, the module "_msbt" is requested with an include command.
In other words, the code, as it comes, when it finds that I am running
Windows it supposes unconditionally that I'm also using the Microsoft stack.
Since I am not using that stack and I am using the WIDCOMM's instead, when
"__init__.py" tries to include "_msbt" we have the error. Consequently the
execution is stopped and the code after that line, which detects the
WIDCOMM stack, is never run.

How to solve the problem:
The solution is very simple. Just locate the file "__init__.py" directory
"%YourPythonDir%\Lib\site-packages\bluetooth". Open that file, locate the
following two lines (should be line 11 and 12):
    import _msbt
    _msbt.initwinsock ()
and simply comment them like so:
    #import _msbt
    #_msbt.initwinsock ()
Save the file and exit.
Now everything should work fine.

Version and hardware details:
Windows XP Professional Service Pack 1
Python 2.5.1
PyBluez 0.15 (win32-py2.5)
WIDCOMM stack 1.4.2.8
D-Link DBT-120 Bluetooth usb key

******************************************************************
The modified version of "__init__.py" is attached. Be sure to make a backup
copy of your copy of the "__init__.py" file before moving it to your
PyBluez folder.

Riccardo Stecca

Original issue reported on code.google.com by [email protected] on 20 Nov 2008 at 1:24

Attachments:

L2CAP: Failed to assign PSM 4097

What steps will reproduce the problem?
1. Windows 7 + Belkin broadcom mini BT + Widcomm 6.0.1.6300
2. import bluetooth
3. sock = bluetooth.BluetoothSocket( bluetooth.L2CAP )
4. sock.connect(("00:50:xx:xx:xx:xx", 0x1001 ))
error:
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "c:\Python26\lib\site-packages\bluetooth\widcomm.py", line 652, in l2cap_connect
    raise BluetoothError ("Failed to assign PSM %d" % port)
bluetooth.btcommon.BluetoothError: Failed to assign PSM 4097

What is the expected output? What do you see instead?
On Ubuntu/Mac OSX, this opens an L2CAP connection to port 0x1001

What version of the product are you using? On what operating system?
Windows 7 + Belkin broadcom mini BT + Widcomm 6.0.1.6300 + python 2.6 + pybluez 
0.18

Please provide any additional information below.
Any feedback would be helpful. Unfortunately I don't have access to the 
receiving unit, so I'm stuck trying to connect on this port.

Original issue reported on code.google.com by [email protected] on 5 Feb 2011 at 1:27

  • Merged into: #38

Blusoleil Support

project developers pyBluez has pretensions to support the BlueSoleil?

Sorry my english... :-)

thanks.. 

Original issue reported on code.google.com by [email protected] on 13 Jul 2010 at 3:07

Paired devices are always returned by bluetooth.discover_devices() even if not in range. (msbt stack only)

What steps will reproduce the problem?
1. Use any bluetooth device that works with msbt stack
2. Pair it with another device (phone, etc) with the OS wizards. Once
paired it will appear in the Devices tab in the bluetooth settings window.
3. Turn off bluetooth on the other device (phone, etc)
4. Execute bluetooth.discover_devices()

What is the expected output? What do you see instead?
Expecting to see *only* the list of devices in range. Instead, the list
also contains all paired devices no matter if they are in range or not.

What version of the product are you using? On what operating system?
PyBluez-0.18.win32-py2.6 with python 2.6.4 tested both on Windows XP/SP3
and Windows 7

Please provide any additional information below.
Also tried flush_cache=True/False - makes no difference. If I use the
widcomm stack then only devices in range are returned (as epxected!)

Original issue reported on code.google.com by [email protected] on 3 Dec 2009 at 12:37

Import Error: No module named _bluetooth

What steps will reproduce the problem?
1. Download 0.18 in Ubuntu 10.04
2. Install with python setup.py install
3. Try to import bluetooth in python shell

What is the expected output? What do you see instead?
I expect it to import. 
>>> import bluetooth
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "bluetooth/__init__.py", line 34, in <module>
    from bluez import *
  File "bluetooth/bluez.py", line 6, in <module>
    import _bluetooth as _bt
ImportError: No module named _bluetooth
>>> 

What version of the product are you using? On what operating system?
I'm on Ubuntu 10.04 and using version 0.18 of pybluez. I also ran the following 
installs to fix other issues with installing this package:
sudo aptitude install python-dev libbluetooth-dev
sudo aptitude install python2.6-bluez

Please provide any additional information below.

Thanks for your work on this package. I'm not sure what's wrong, but I'm sure 
I'm close to getting this all working.

Original issue reported on code.google.com by [email protected] on 13 Sep 2010 at 2:39

_bluetooth is not there in windows xp

What steps will reproduce the problem?
1. import bluetooth._blouetooh
2.
3.

What is the expected output? What do you see instead?
Im trying to get rssi values for whihc i need hci funtions. But _bluetooth
is not found.

What version of the product are you using? On what operating system?
Windows

Please provide any additional information below.

Please help. Is there some fix i am missing?

Original issue reported on code.google.com by [email protected] on 23 May 2009 at 4:44

would work on pythonCE?

Hello!
This is more like feature request then issue.

Installation script does not work for pythonCE on windows CE platform.
Would the library work?

Thank you in advance.

--
Janis

Original issue reported on code.google.com by [email protected] on 21 Mar 2008 at 6:38

Outdated handling of L2CAP options

Taking a look into code that sets MTU for L2CAP options, I could see that 
L2CAP_OPTIONS 
structure handling is outdated. I has 12 bytes in current version, not 7. The 
MTUs are still set 
correctly because they are at the beginning of structure, but FCS and mode have 
exchanged 
positions.

The following code is something I have developed to work around:


options_len = 12
pos = ["omtu", "imtu", "flush_to", "mode", "fcs", "max_tx", "txwin_size"]
mask = "HHHBBBH"


def get_options(sock):
        s = sock.getsockopt(SOL_L2CAP, L2CAP_OPTIONS, options_len)
        options = struct.unpack(mask, s)
        return list(options)


def set_options(sock, options):
        s = struct.pack(mask, *options)
        sock.setsockopt(SOL_L2CAP, L2CAP_OPTIONS, s)


def set_ertm(sock):
        options = get_options(sock)
        options[i_fcs] = 1
        options[i_mode] = L2CAP_MODE_ERTM
        set_options(sock, options)


def set_streaming(sock):
        options = get_options(sock)
        options[i_fcs] = 1
        options[i_mode] = L2CAP_MODE_STREAMING
        set_options(sock, options)


def set_mtu(sock, mtu):
        options = get_options(sock)
        options[i_omtu] = options[i_imtu] = mtu
        set_options(sock, options)


Current struct in BlueZ/lib/l2cap.h:
/* L2CAP socket options */

#define L2CAP_OPTIONS   0x01
struct l2cap_options {
        uint16_t        omtu;
        uint16_t        imtu;
        uint16_t        flush_to;
        uint8_t         mode;
        uint8_t         fcs;
        uint8_t         max_tx;
        uint16_t        txwin_size;
};

Attached is a tentative patch. Best fix would be to move this into a .c file, 
because then any 
change in struct would not affect Python code (or cause a compilation error, 
then it's fixed or 
#ifdef'ed)

Original issue reported on code.google.com by [email protected] on 28 May 2010 at 9:36

Attachments:

WinCE support?

Is any chance to have it working for WinCE and Windows mobile 6.x ? It will be 
of a real use for bluetooth smartphones.

We have already PythonCE 2.5 for arm devices:
http://pythonce.sourceforge.net

Original issue reported on code.google.com by [email protected] on 4 May 2011 at 9:49

  • Merged into: #3

pybluez 0.18 server not working with Py60 2.0.0 when trying to discover the services

What steps will reproduce the problem?
1. I have build a simple program on Symbian 60 using Py60 2.0.0 edition
trying to acess services and sending character to a server.
2. Using a telent console, my PC is able to receive properly the character.
I use the example located in
http://www.mobilenin.com/pys60/ex_bluetooth_mobile_to_pc.htm
3. Now I created the server code using your proposed example
http://code.google.com/p/pybluez/source/browse/trunk/examples/simple/rfcomm-serv
er.py
4. In that case my program on the phone fail when trying to discover the
services on my PC (btsocket.bt_discover()) and stop immediately

Is that a known bug?
What is the workaround?
Many thanks for your help.

What is the expected output? What do you see instead?
My client should have been connected to the server

What version of the product are you using? On what operating system?
Py60 2.0.0
Python 2.5.4
pybluez 0.18

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 18 Feb 2010 at 9:57

Python-Bluez does connect and send methods fail in Ubuntu 10.04 (Lucid)

What steps will reproduce the problem?
1. Running Ubuntu 10.04LTS, beta (release candidate),  bluetooth connect,
send methods fail. 

2. Using the pybluez package provided test scripts in
/usr/share/doc/python-bluez/examples/simple: Run l2capclient.py on one
machine, l2capserver.py on another and wait for connect method to fail to
return and throw an error.  

3. Using the test scripts from
/usr/share/doc/python-bluez/examples/advanced : l2-unreliable-client.py and
l2-unreliable-server.py on different machines, and the scipts appear to
work correctly.


What is the expected output? What do you see instead?
I was expecting to see connect method return successfully for a valid socket.

What version of the product are you using? On what operating system?
uname -a:
Linux 2.6.32-21-generic #32-Ubuntu SMP Fri Apr 16 08:10:02 UTC 2010 i686
GNU/Linux

apt-show-versions python-bluez:
python-bluez/lucid uptodate 0.18-1

Please provide any additional information below.

One set of scripts uses the connect and send methods, the others do not.

Interestingly, I am using pybluez (import bluetooth) calls in some other
scripts where I found the problem. Something changed in release candidate
of Ubuntu 10.04, which caused the failure. These scripts and the test
script used to work until the first or second week of April. (The included
test scripts are a useful vehicle for demonstrating the problem) 

I have posted a Ubuntu bug report for this issue on launchpad 
https://bugs.launchpad.net/ubuntu/+source/bluez/+bug/569650

Thanks

Original issue reported on code.google.com by [email protected] on 30 Apr 2010 at 9:54

Invalid argument: error 22

"_bluetooth.error: (22, 'Invalid argument') "

On Ubuntu 9.10 (and because of the new kernel version), with all versions
of PyBluez, when using functions connect, bind, send (and may be some
others) we have this error.

We have solved it, replacing "char *addrstr = NULL;" bye "struct sockaddr
addrstr = {0};" everywere in msbt.c.

This error has been withdrawn, but it is not solved directly and we must
compile PyBluez Module with this changes. So I add it again.

Original issue reported on code.google.com by delayen.florent on 7 Jan 2010 at 6:18

Non-blocking sockets and blocking sockets with a timeout do not work correctly when using WinSock backend

Calling BluetoothSocket.settimeout(t) with t > 0 on Windows using the WinSock 
Bluetooth stack does not correctly emulate the behaviour of socket.socket; 
instead it simply forces it to be blocking with no timeout.  A related problem 
is also present in non-blocking sockets because PyBluez explicitly does not 
throw exceptions from operations that have either timed out or that would have 
blocked.

This makes it impossible to determine the reason for the socket returning null 
data as it may have done so due a timeout, no data in the buffer or a client 
disconnection.

I have modified the msbt.py and _msbt.c files to resolve both issues and have 
attached a unified diff for each file.  In brief, I modified the settimeout 
function in msbt.py to prevent it from setting the timeout to 0, and then 
modified the msbt_send and msbt_recv functions in _msbt.c to throw an IOError 
exception if the operation would block (i.e. no data in the buffer) or if it 
has timed out.  This is not quite the same as the behaviour of socket.socket 
but it is close enough because socket.error and socket.timeout appear to be 
derived from IOError.

Original issue reported on code.google.com by [email protected] on 28 Jan 2011 at 8:55

Attachments:

Bug in bluetooth.discover_devices on Sheeva Plug(Debian ARMEL Kernel 2.6.30-2-kirkwood )

pybluez Version: 
   Version: 0.17-1 
   Filename: pool/main/p/pybluez/python-bluez_0.17-1_armel.deb 
bluez Version: 
   Architecture: armel 
   Version: 4.57-1 
   Filename: pool/main/b/bluez/bluez_4.57-1_armel.deb 
My System information: 
   uname -a: 
      Linux mikomovil 2.6.30-2-kirkwood #1 Sun Sep 27 22:57:55 UTC 
2009 armv5tel GNU/Linux 
   Sheeva Plug whit debian. 
--------------------------------------------------------------------------- 
--------------------------------------------------------------------------- 
----- 
The problem: 
test.py: 
import bluetooth 
print "performing inquiry..." 
nearby_devices = bluetooth.discover_devices(lookup_names = True) 
print "found %d devices" % len(nearby_devices) 
for addr, name in nearby_devices: 
    print "  %s - %s" % (addr, name) 
when I run this code: 
python test2.py: 
performing inquiry... 
Traceback (most recent call last): 
  File "test2.py", line 12, in <module> 
    nearby_devices = bluetooth.discover_devices(lookup_names = True) 
  File "/usr/lib/python2.5/site-packages/bluetooth/bluez.py", line 17, 
in discover_devices 
    sock = _gethcisock () 
  File "/usr/lib/python2.5/site-packages/bluetooth/bluez.py", line 
230, in _gethcisock 
    raise BluetoothError ("error accessing bluetooth device") 
bluetooth.btcommon.BluetoothError: error accessing bluetooth device 
I had to use the asynchronous method to scan bluetooth devices 
from bluetooth import * 
from s e l e c t import * 
class MyDiscoverer ( DeviceDiscoverer ) : 
        def preinquiry ( self ) : 
                     ฬ„ 
             self.done = False 
        def devicediscovered( self , address , device class , name ):
             print "%s - %s" % ( address , name ) 
        def inquirycomplete( self ) :                               
             self.done = True 
d = MyDiscoverer() 
d.finddevices( lookup names = True )                                    
while True :
        can_read , can_write , has_exc = select ( [d ] , [ ] , [ ] ) 
        if d in can_read :                             
             d.process event( )                                
        if d.done : break 

I spend too much time fixing my problem and I want to share with the 
community, and report the bug 

Original issue reported on code.google.com by [email protected] on 21 Dec 2009 at 11:47

  • Merged into: #77

[Patch] Ability to specify device_id in DeviceDiscoverer.

Currently there is no easy way of specifying which Bluetooth adapter to use
in a DeviceDiscoverer. This might be useful when there are multiple
adapters attached to the computer and one wants to scan with all of them.
Currently only one adapter can be used.

Attached is a patch that introduces a parameter device_id to the init
function of DeviceDiscoverer. One can now specify which adapter to use when
creating a DeviceDiscoverer. The parameter defaults to -1 to keep the
current behaviour.

Sincerely,

Roel

Original issue reported on code.google.com by [email protected] on 10 Apr 2009 at 9:06

Attachments:

not detected linux as platform

What steps will reproduce the problem?
1. use library on linux with kernel 3.XXXX 

in file __init__.py in line 35, platform linux detecting by "linux2", but new 
kernel is "linux3"

please add "linux3" to line.

Original issue reported on code.google.com by [email protected] on 22 Aug 2011 at 6:38

Unknown error when trying to connect to a device

What steps will reproduce the problem?

>>> from bluetooth import *
>>> sock.connect(("00:1B:AF:84:FF:E2", 18))
connecting to 00:1B:AF:84:FF:E2 port 18
AssignScnValue
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Python25\Lib\site-packages\bluetooth\widcomm.py", line 428, in
rfcomm_connect
    raise BluetoothError (_port_return_code_to_str (result))
bluetooth.btcommon.BluetoothError: Unknown error

What is the expected output? What do you see instead?
No error and a working connection ;)

What version of the product are you using? On what operating system?
PyBluez 0.15 on Windows Vista (yeah, I know that Vista isn't supported, but
everything else works, e.g. I can search for services)

Is anything else needed?

Original issue reported on code.google.com by [email protected] on 21 Aug 2008 at 12:23

IOError

What steps will reproduce the problem?
1. creating new RFCOMM-socket
2. connect to device
3. ERROR

What is the expected output? What do you see instead?
expected: connected with other device
instead: IOError - A socket operation was attempted to an unreachable network.

What version of the product are you using? On what operating system?
Windows 7, Python 2.6, newest PyBluez




Original issue reported on code.google.com by [email protected] on 21 Sep 2011 at 11:38

[PATCH] Add non-RSSI inquiry results in example

If either the local Bluetooth device or the remote one is < 2.1, RSSI can not 
be discovered by 
inquiry, a connection is necessary. This patch adds the "legacy" inquiry 
results, so at least the < 
2.1 devices will appear.

Another future improvement would be to actually connect to such devices and 
then measure RSSI. 
(Maybe I will suggest a patch myself in near future.)

--- inquiry-with-rssi.py    (revision 30)
+++ inquiry-with-rssi.py    (working copy)
@@ -108,8 +108,16 @@
                 print "uh oh..."
                 printpacket(pkt[3:7])
                 done = True
+        elif event == bluez.EVT_INQUIRY_RESULT:
+            pkt = pkt[3:]
+            nrsp = struct.unpack("B", pkt[0])[0]
+            for i in range(nrsp):
+                addr = bluez.ba2str( pkt[1+6*i:1+6*i+6] )
+                results.append( ( addr, -1 ) )
+                print "[%s] (no RRSI)" % addr
         else:
             print "unrecognized packet type 0x%02x" % ptype
+       print "event ", event

Original issue reported on code.google.com by [email protected] on 16 Apr 2010 at 11:45

Multiple dongles?

Will PyBluez support multiple dongles? I guess right now in the code there
is no support for it?

Arjan

Original issue reported on code.google.com by scherpenisse on 27 Apr 2008 at 7:53

Can't open sockets

I'm in the middle of a personal project which involves connecting to a
wiimote and reading the raw acceleration values. I'm able to use inquiry
scripts to find the wiimote and obtain its address, but when I try to open
a socket, whether I'm using L2CAP or RFCOMM, I recieve an error. I am not a
programmer in any sense of the word, so much of this is giberish to me.
Here are the errors I'm recieving and the commands that produce them: 

Using L2CAP:

>>> import bluetooth as BT
>>> sock=BT.BluetoothSocket(L2CAP)
Traceback (most recent call last):
  File "<pyshell#12>", line 1, in <module>
    sock=BT.BluetoothSocket(L2CAP)
  File "C:\Python26\Lib\site-packages\bluetooth\msbt.py", line 19, in __init__
    raise ValueError ("invalid protocol")
ValueError: invalid protocol
>>> 

And here is the RFCOMM:

>>> import bluetooth as BT
>>> sock=BT.BluetoothSocket(RFCOMM)
>>> sock.connect(("00:19:1D:50:6C:FD", 0x13))
Traceback (most recent call last):
  File "<pyshell#21>", line 1, in <module>
    sock.connect(("00:19:1D:50:6C:FD", 0x13))
  File "C:\Python26\Lib\site-packages\bluetooth\msbt.py", line 53, in connect
    bt.connect (self._sockfd, addr, port)
IOError: A socket operation was attempted to an unreachable network.


>>> 

Once I'm able to get the accel data from the wiimote, I'm pretty sure I'll
be able to handle the rest. I only need to mathematically interpret the
data and output it to some gauges using the wxpython widget for speedometer
type gauges. The program will eventually be implemented in a car computer
for race data acquisition. Any help at all you could offer would be greatly
appreciated, as I'm totally lost. I'm using python 2.6.1 on Windows XP
professional edition SP3. Thanks a lot and have a good one.

Original issue reported on code.google.com by [email protected] on 3 Mar 2009 at 11:02

DeviceDiscoverer on Linux

What steps will reproduce the problem?
1. subclass DeviceDiscoverer
2. call find_devices
3.

What is the expected output? What do you see instead?
I subclassed DeviceDiscoverer with device_discovered implemented  with a 
simple print of the address but nothing appens. The same with 
inquiry_complete, it is never called

What version of the product are you using? On what operating system?
I'm using 0.15 on Linux Debian etch

Please provide any additional information below.

#!/usr/bin/env python

from bluetooth import DeviceDiscoverer
import time

class BlueZone(DeviceDiscoverer):

    def __init__(self):
        DeviceDiscoverer.__init__(self)

    def device_discovered(self, address, device_class, name):
        print "%s - %s" % (address,name)

    def inquiry_complete(self):
        print "COMPLETED"



print "START"

bz = BlueZone()

bz.find_devices(True,8,True)

print "PAUSE"

time.sleep(120)

print "STOP"

Original issue reported on code.google.com by [email protected] on 29 Sep 2008 at 11:06

Python 2.7

What steps will reproduce the problem?
1. Can't install, error: Python 2.6 required
2. I have installed Python 2.7 

What version of the product are you using? On what operating system?
PyBluez-0.18.win32-py2.6 on Win7 Ultimate 32bit 

Original issue reported on code.google.com by [email protected] on 2 Mar 2011 at 6:49

Cannot advertise service

What steps will reproduce the problem?
1. Run __init__.py (in my case it will run the msbt since im using winxp)
2. try to advertise a service with just using the RFCOMM and name
3. I am trying to advertise Handsfree profile serv_id-111e

What is the expected output? What do you see instead?
I should see the HFP device show up on my phones.

What version of the product are you using? On what operating system?
Pybluez 0.16

Please provide any additional information below.

I am getting the below error "AttributeError:'int' object has no attribute
'_raw_sdp_record'

Original issue reported on code.google.com by [email protected] on 16 Mar 2009 at 8:28

Install on Ubuntu

What steps will reproduce the problem?
1. trying to install PyBlues-0.15 On:
Ubuntu 7.10 - Gutsy Gibbon
Kernel Linux 2.6.22-14 generic
Gnome 2.20.1
Using the command python setup.py install 

What is the expected output? What do you see instead?
instead of install completed i see a list of errors

Original issue reported on code.google.com by [email protected] on 16 Feb 2008 at 8:33

Unknown Error (22, 'Invalid argument')

This problem occured on version 0.16 (unpatched).
It is impossible to connect any device with the regular connect() function,
on a L2CAP socket.

A tiny script like :
import bluetooth.bluez

mac = '00:11:22:33:44:55'
recv = bluetooth.bluez.BluetoothSocket(bluetooth.L2CAP)
ctrl = bluetooth.bluez.BluetoothSocket(bluetooth.L2CAP)

recv.connect ((mac, 0x13))
ctrl.connect ((mac, 0x11))

if recv and ctrl :
    print "ok"
else:
    print "nok"

would raise a BluetoothError exception.

Traceback (most recent call last):
  File "./test.py", line 15, in <module>
    recv.connect ((mac, 0x13))
  File "<string>", line 5, in connect
bluetooth.btcommon.BluetoothError: (22, 'Invalid argument')


This occured on :
- Fedora 11 Leonidas (tested on x86_64 and x86)
- PyBluez 0.16 (tested with RPM and regular SVN)
- bluez 4.42

Found a patch (attached) on the following page that seems to be working:
http://www.mail-archive.com/[email protected]/msg660555.html

Works like a charm with this patch !

Original issue reported on code.google.com by [email protected] on 4 Oct 2009 at 6:51

Attachments:

Windows build instructions

What steps will reproduce the problem?
1. setup.py fails to build pybluez on windows

What is the expected output? What do you see instead?
A smooth extension build


What version of the product are you using? On what operating system?
PyBluez 0.18, Windows XP

Please provide any additional information below.
Can you provide instructions on how to build PyBluez on Windows

Original issue reported on code.google.com by rene.f.aguirre on 10 Mar 2010 at 8:21

Can't open L2CAP Socket

What steps will reproduce the problem?
1. server_sock=bluetooth.BluetoothSocket( bluetooth.L2CAP )
2.
3.

What is the expected output?
Create a succesful connection
What do you see instead?
server_sock=bluetooth.BluetoothSocket( bluetooth.L2CAP )
 File "C:\Python26\lib\site-packages\bluetooth\msbt.py", line 19, in __init__
    raise ValueError ("invalid protocol")
ValueError: invalid protocol

What version of the product are you using? On what operating system?
Python 2.6.4 32 bits, Windows 7 64 bits, Pybluez 0.18 32 bits, Widcomm Stack 
6.3 6.3.0.6700 (30/09/2010)

Please provide any additional information below.
I am using a Sony Vaio VGN-FW51JF with a Broadcom integrated bluetooth. It 
comes by default with Widcomm Drivers, I have tried with those and also with 
the latest ones. RFCOMM Sockets seem to be fine but there is just no way to 
create a L2CAP socket.

Any idea?


Original issue reported on code.google.com by [email protected] on 27 Oct 2010 at 2:24

pybluez inquiry bug on win7,it just use win7 stack's info,but doesn't do a inquiry

What steps will reproduce the problem?
1. win7 inquiry a new device 
2. unplug the device found in the  last step
3. make a inquiry use bluetooth.discover_devices(lookup_names = True),you will 
find the device  unplugged in the last step.

What is the expected output? What do you see instead?
The unplugged device must not appear in the inquiry result list.
but it still appears.

What version of the product are you using? On what operating system?
pybluez0.18 win7 home standard

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 12 Sep 2010 at 2:40

  • Merged into: #24

Wrong friendly name discovered when using WIDCOMM BT stack

What steps will reproduce the problem?

1. Perform an inquiry on a product with friendly name "FriendlyNameAlpha" and 
with a fixed address (using examples/simple/inquiry.py
2. Change the friendly name of the product to "FriendlyNameBeta", but leave its 
address intact
3. Perform an inquiry on the product with the same fixed address (using 
examples/simple/inquiry.py)

What is the expected output? What do you see instead?
You should now see "FriendlyNameBeta" instead of "FriendlyNameAlpha"

What version of the product are you using? On what operating system?
We are using PyBluez 0.18 on Windows -> Widcomm stack.

Using the Windows software provided by the manufacturer(Broadcomm) this does 
not happen.


Original issue reported on code.google.com by [email protected] on 2 Feb 2011 at 4:00

error accessing bluetooth device(android 2.3.3 with pybluez 0.19 to an Bluetooth enabled RFID reader

What steps will reproduce the problem?
1. created a python file in android to search the Bluetooth device around and 
connect to a RFID Bluetooth device.
2. The program goes to the discovery mode and gives error 
("bluetooth.btcommon.BluetoothError: error accessing bluetooth device")
3. using basic android phone with android 2.3.3.

What is the expected output? What do you see instead?
Expected output is to search the Bluetooth around and list the device and 
connect to the particular RFID Reader.

What version of the product are you using? On what operating system?
I am Using Android 2.3.3 with PyBluez-0.19-py2.6-linux-armv

Please provide any additional information below.
error come at the near_by device discovery function is executed

// 

File "/mnt/sdcard/sl4a/scripts/cellbot.py", line 51, in scan_bluetooth          
                            self.discovered_devices = 
bluetooth.discover_devices(lookup_names=True)                                 
File 
"/data/data/com.googlecode.pythonforandroid/files/python/lib/python2.6/lib-dynlo
ad/bluetooth/bluez.py", line 17, in discover_devices                        
sock = _gethcisock ()                              File 
"/data/data/com.googlecode.pythonforandroid/files/python/lib/python2.6/lib-dynlo
ad/bluetooth/bluez.py", line 276, in _gethcisock                            
raise BluetoothError ("error accessing bluetooth device")                       
                      bluetooth.btcommon.BluetoothError: error accessing 
bluetooth device

//

Original issue reported on code.google.com by [email protected] on 8 Nov 2011 at 6:32

Need to setsockopt in Windows

In order to make use of the SIM access profile it is required to enable BT 
Mode 2 or 3 security. This requires to setsockopt SO_BTH_ENCRYPT and/or 
SO_BTH_AUTHENTICATE.

With PyBluez setsockopt isn't exposed by BluetoothSocket. Is there a 
chance to setsockopt anyhow?

Original issue reported on code.google.com by [email protected] on 4 Oct 2008 at 9:57

_get_available_port() should try to bind() with a supplied address instead of ""

What steps will reproduce the problem?
1. Call bind("addr", 0)
2. bind() calls _get_available_port(RFCOMM) to obtain a valid port
3. _get_available_port() tries to bind() with "" instead of "addr" so may 
return a port which is not available on "addr"
4. bind("addr", _get_available_port()) will throw out an "address already in 
use" error.

What is the expected output? What do you see instead?
_get_available_port() should return an available port on a specified bdaddr, if 
one is given to bind().

What version of the product are you using? On what operating system?
Debian 6.0



Original issue reported on code.google.com by andrefcruz on 11 Jun 2011 at 11:16

stop_advertising does not seem to work on Ubuntu 8.04

What steps will reproduce the problem?
1. Advertise a service with advertise_service
2. Use stop_advertising

What is the expected output? What do you see instead?
When scanning with my mobile phone I can still see all the old
advertisements, like multiple entries for channel 1

What version of the product are you using? On what operating system?
PyBluez-0.15 (tried version bundled with Ubuntu 8.04 first)
libbluetooth2 3.29 (bluez)
Ubuntu 8.04

Please provide any additional information below.
You can call stop_advertising 10 times in a row without result.
Only thing that removes the entries is restarting the bluetooth service
by doing /etc/init.d/bluetooth restart

Original issue reported on code.google.com by [email protected] on 25 Apr 2008 at 10:43

Attachments:

Client Program not working in Bluetooth !

What steps will reproduce the problem?
1. Run the server program
2. Modify the Bluetooth Address in the client program wrt BT dongle's BT 
address,(same port number in server and client )
3. Run the Client program

What is the expected output? What do you see instead?
I want Client to send data to server,But client program shows  
Traceback (most recent call last):
  File "client.py", line 6, in <module>
    client_socket.connect(("00:15:83:15:A3:10", 3))
File "C:\Python26\Lib\site-packages\bluetooth\msbt.py", line 53, in connect
   bt.connect (self._sockfd, addr, port)


What version of the product are you using? On what operating system?
Python 2.6 ,with XP

Please provide any additional information below.

client.py

from bluetooth import *

# Create the client socket
client_socket=BluetoothSocket( RFCOMM )

client_socket.connect(("00:15:83:15:A3:10", 3))

client_socket.send("Hello World")

print "Finished"

client_socket.close()

server.py

from bluetooth import *

server_socket=BluetoothSocket( RFCOMM )
print "Server Started"
server_socket.bind(("", 3 ))
server_socket.listen(1)

client_socket, address = server_socket.accept()

data = client_socket.recv(1024)

print "received [%s]" % data

client_socket.close()
server_socket.close()

BUT the strange thing when i give some other BT address of mobile Phone ,client 
program works ,but it not when i give the BT address of the PC's BT dongle ! 


Original issue reported on code.google.com by [email protected] on 29 Jul 2011 at 8:42

Installer issue - cannot specify path for python

What steps will reproduce the problem?
1. Run PyBluez-0.15.win32-py2.5.exe
2. Installer complains, 'Python v2.5 req, which was not found in registry'
3. python bin cannot be specified 

What is the expected output? What do you see instead?
See attached

What version of the product are you using? On what operating system?
PyBluez-0.15.win32-py2.5. Win XP SP2

Please provide any additional information below.
Path for python cannot be pasted in to dialog box. Python v2.5 installed in 
C:\cygwin\bin

Original issue reported on code.google.com by [email protected] on 22 May 2008 at 5:12

Attachments:

SystemError exeption on Windows bt.recv

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 [email protected] on 28 Apr 2010 at 8:53

Attachments:

XP+Widcomm/Broadcomm (rocketfish dongle) PyBluez-0.15.win32-py2.5.exe error

What steps will reproduce the problem?
1. Download script from: http://209.85.173.132/search?
q=cache:XomKXL5CFf8J:www.wiili.org/index.php/Wiimotecomm+pybluez+wiimote&hl
=en&ct=clnk&cd=1&gl=us
2. Run script with argument 'discover "52 15 00"'
3.

What is the expected output? What do you see instead?
Expected to connect.
Instead:
D:\coding\python\pybluez>python wiimotecomm.py discover "52 15 00"
[Searching for Wiimotes...]
[Found Wiimote at address 00:22:D7:7F:E0:65]
Trying to connect...
connecting to 00:22:D7:7F:E0:65 port 19
AssignScnValue
widcomm\rfcommport.cpp:107 event 32768 received
widcomm\rfcommport.cpp:107 event 12 received
event 8000 received
Traceback (most recent call last):
  File "wiimote.py", line 95, in <module>
    connect(address)
  File "wiimote.py", line 25, in connect
    receivesocket.connect((address, 0x13))
  File "C:\Python25\Lib\site-packages\bluetooth\widcomm.py", line 432, in 
rfcomm
_connect
    self.rfcomm_read_msg ()
  File "C:\Python25\Lib\site-packages\bluetooth\widcomm.py", line 325, in 
rfcomm
_read_msg
    raise BluetoothError ("Connection failed")
bluetooth.btcommon.BluetoothError: Connection failed


What version of the product are you using? On what operating system?
latest pybluez python 2.5 binary installer

Please provide any additional information below.
Other apps work.  Whiteboard, GlovePIE
Inquiry works fine:
D:\coding\python\pybluez>python inquiry.py
performing inquiry...
found 1 devices
  Nintendo RVL-CNT-01 - 00:22:D7:7F:E0:65

Original issue reported on code.google.com by [email protected] on 10 Jan 2009 at 12:41

Attachments:

More services discoverable by find_service()

What steps will reproduce the problem?
1. import bluetooth
2. bluetooth.find_service()

What is the expected output? What do you see instead?
Expected is for this bluetooth serial device 
(http://www.hongkongapple.com/167-623-large/obd2-bluetooth-android-.jpg) to get 
an output of available services in the find_service() function.

What version of the product are you using? On what operating system?
Ubuntu Natty x64, Python 2.7.1+, pyBluez 0.18

Please provide any additional information below.
From some researching on that I decided to find a application from the 
bluez-suite which could find the device and I found out the following.

It seems for me that the find_services() function uses the same as the sdptool 
with it's "browse" function. Which also doesn't show any services of my 
BluetoothAdapter. BUT: "sdptool records" does the trick, but tells after 
finding the RFCOMM SPP service that it can't connect to the sdp server of the 
adapter.

Am I using the false function or isn't pybluez supporting my adaptor at all?

Original issue reported on code.google.com by [email protected] on 9 Jul 2011 at 1:02

RFCOMM socket.connect() doesn't wait till connection is ready

I've the problem that this code doesn't work for me:

---8<---------------------------------------------------
import binascii
from bluetooth import *

socket = BluetoothSocket( RFCOMM )
socket.connect( ("32:32:XX:XX:XX:XX", 1) )

print "sending start measure command"
socket.send( binascii.a2b_hex("FD15040D7700500600018F") )

print "response from sensor:"
print binascii.b2a_hex( socket.recv(7) )
---8<--------------------------------------------------- 

I've to add a time.sleep() statement after socket.connect()
to not getting a deathlock and waiting forever to recv an
answer ...

I'm using libbluetooth3 (4.32-0ubuntu4) and PyBluez-0.14
(installed via easy_install) on Ubuntu 9.04.

Original issue reported on code.google.com by mhubig on 25 Sep 2009 at 3:09

Install on Ubuntu

What steps will reproduce the problem?
1. trying to install PyBlues-0.15 On:
Ubuntu 7.10 - Gutsy Gibbon
Kernel Linux 2.6.22-14 generic
Gnome 2.20.1
Using the command python setup.py install 

What is the expected output? What do you see instead?
instead of install completed i see a list of errors

Original issue reported on code.google.com by [email protected] on 16 Feb 2008 at 8:32

Attachments:

Bluetooth module will not work for WINXP and Ubuntu

What steps will reproduce the problem?
1. Run the __init__.py file
2. It should go to the msbt file if running winxp with microsoft stack
otherwise it will use bluez if running linux.
Both have same issue.

What is the expected output? What do you see instead?
It should automatically run and the user can then run their commands in
shell. Instead it will say "no module named _bluetooth". if running from
idle (python's shell program which is available for ubuntu and xp) But
running it from terminal will produce a name error "proto" is not defined
in line 112 of bluez.py file.

What version of the product are you using? On what operating system?
pybluez-0.16 on both WINXP and Ubuntu

Please provide any additional information below.
If you change the "_bluetooth" to bluetooth it seems to work for winxp but
for linux I am still getting it. See below for output:

Traceback (most recent call last):
File "/home...../bluetooth/bluez.py", line6, in <module>
import bluetooth as _bt
ImportError:No module named _bluetooth

After changing _bluetooth to bluetooth and running the bluez.py file in
IDLE I get the below:

Traceback (most recent call last):
File "/home...../bluetooth/bluez.py", line111, in <module>
Class BluetoothSocket:
File "/home...../bluetooth/bluez.py", line112, in BluetoothSocket
__doc__= _bt.btsocket (proto).__doc__
AttributeError: 'module' object has no attribute 'btsocket'


Original issue reported on code.google.com by [email protected] on 18 Mar 2009 at 3:33

Fails to link _msbt.exp on Windows 64-bit - unresolved external symbols

What steps will reproduce the problem?
1. easy_install 
http://code.google.com/p/pybluez/downloads/detail?name=PyBluez-0.18.tar.gz
2.
3.

What is the expected output? What do you see instead?

It should build normally and install. Instead I see

PS C:\> easy_install http://pybluez.googlecode.com/files/PyBluez-0.18.tar.gz
install_dir C:\Python\Lib\site-packages\
Downloading http://pybluez.googlecode.com/files/PyBluez-0.18.tar.gz
Processing PyBluez-0.18.tar.gz
Running PyBluez-0.18\setup.py -q bdist_egg --dist-dir 
c:\users\jaraco\appdata\local\temp\easy_install-bvccpo\PyBluez-0.18\egg-dist-tmp
-4z9hiy
_msbt.c
msbt\_msbt.c(45) : warning C4996: 'sprintf': This function or variable may be 
unsafe. Consider using sprintf_s instead. To disable deprecation, use 
_CRT_SECURE_NO_WARNINGS. See online help for details.
        c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\INCLUDE\stdio.h(366) : see declaration of 'sprintf'
msbt\_msbt.c(104) : warning C4996: 'strncpy': This function or variable may be 
unsafe. Consider using strncpy_s instead. To disable deprecation, use 
_CRT_SECURE_NO_WARNINGS. See online help for details.
        c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\INCLUDE\string.h(157) : see declaration of 'strncpy'
msbt\_msbt.c(108) : warning C4996: 'strncpy': This function or variable may be 
unsafe. Consider using strncpy_s instead. To disable deprecation, use 
_CRT_SECURE_NO_WARNINGS. See online help for details.
        c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\INCLUDE\string.h(157) : see declaration of 'strncpy'
msbt\_msbt.c(112) : warning C4996: 'strncpy': This function or variable may be 
unsafe. Consider using strncpy_s instead. To disable deprecation, use 
_CRT_SECURE_NO_WARNINGS. See online help for details.
        c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\INCLUDE\string.h(157) : see declaration of 'strncpy'
msbt\_msbt.c(116) : warning C4996: 'strncpy': This function or variable may be 
unsafe. Consider using strncpy_s instead. To disable deprecation, use 
_CRT_SECURE_NO_WARNINGS. See online help for details.
        c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\INCLUDE\string.h(157) : see declaration of 'strncpy'
msbt\_msbt.c(117) : warning C4996: 'strncpy': This function or variable may be 
unsafe. Consider using strncpy_s instead. To disable deprecation, use 
_CRT_SECURE_NO_WARNINGS. See online help for details.
        c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\INCLUDE\string.h(157) : see declaration of 'strncpy'
msbt\_msbt.c(139) : warning C4244: '=' : conversion from 'SOCKET' to 'int', 
possible loss of data
msbt\_msbt.c(218) : warning C4244: '=' : conversion from 'SOCKET' to 'int', 
possible loss of data
msbt\_msbt.c(381) : warning C4244: '=' : conversion from 'SOCKET' to 'int', 
possible loss of data
msbt\_msbt.c(586) : warning C4244: 'initializing' : conversion from 'SOCKET' to
'int', possible loss of data
msbt\_msbt.c(597) : warning C4996: 'close': The POSIX name for this item is 
deprecated. Instead, use the ISO C++ conformant name: _close. See online help 
for details.
        c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\INCLUDE\io.h(306)
: see declaration of 'close'
msbt\_msbt.c(602) : warning C4996: 'strcpy': This function or variable may be 
unsafe. Consider using strcpy_s instead. To disable deprecation, use 
_CRT_SECURE_NO_WARNINGS. See online help for details.
_msbt.obj : warning LNK4197: export 'init_msbt' specified multiple times; using
first specification
   Creating library build\temp.win-amd64-2.6\Release\msbt\_msbt.lib and object build\temp.win-amd64-2.6\Release\msbt\_msbt.exp
_msbt.obj : error LNK2019: unresolved external symbol __imp_LocalFree 
referenced in function Err_SetFromWSALastError
_msbt.obj : error LNK2019: unresolved external symbol __imp_FormatMessageA 
referenced in function Err_SetFromWSALastError
_msbt.obj : error LNK2019: unresolved external symbol __imp_WSAGetLastError 
referenced in function Err_SetFromWSALastError
_msbt.obj : error LNK2019: unresolved external symbol __imp_WSAStartup 
referenced in function msbt_initwinsock
_msbt.obj : error LNK2019: unresolved external symbol __imp_socket referenced 
in function msbt_socket
_msbt.obj : error LNK2019: unresolved external symbol __imp_bind referenced in 
function msbt_bind
_msbt.obj : error LNK2019: unresolved external symbol __imp_WSAStringToAddressA
referenced in function msbt_bind
_msbt.obj : error LNK2019: unresolved external symbol __imp_listen referenced 
in function msbt_listen
_msbt.obj : error LNK2019: unresolved external symbol __imp_accept referenced 
in function msbt_accept
_msbt.obj : error LNK2019: unresolved external symbol __imp_connect referenced 
in function msbt_connect
_msbt.obj : error LNK2019: unresolved external symbol __imp_send referenced in 
function msbt_send
_msbt.obj : error LNK2019: unresolved external symbol __imp_recv referenced in 
function msbt_recv
_msbt.obj : error LNK2019: unresolved external symbol __imp_closesocket 
referenced in function msbt_close
_msbt.obj : error LNK2019: unresolved external symbol __imp_getsockname 
referenced in function msbt_getsockname
_msbt.obj : error LNK2019: unresolved external symbol __imp_WSASocketA 
referenced in function msbt_dup
_msbt.obj : error LNK2019: unresolved external symbol __imp_WSADuplicateSocketA
referenced in function msbt_dup
_msbt.obj : error LNK2019: unresolved external symbol __imp_GetCurrentProcessId
referenced in function msbt_dup
MSVCRT.lib(gs_support.obj) : error LNK2001: unresolved external symbol 
__imp_GetCurrentProcessId
_msbt.obj : error LNK2019: unresolved external symbol 
__imp_WSALookupServiceNextA referenced in function msbt_discover_devices
_msbt.obj : error LNK2019: unresolved external symbol __imp_WSALookupServiceEnd
referenced in function msbt_discover_devices
_msbt.obj : error LNK2019: unresolved external symbol 
__imp_WSALookupServiceBeginA referenced in function msbt_discover_devices
_msbt.obj : error LNK2019: unresolved external symbol BluetoothFindRadioClose 
referenced in function msbt_lookup_name
_msbt.obj : error LNK2019: unresolved external symbol BluetoothGetDeviceInfo 
referenced in function msbt_lookup_name
_msbt.obj : error LNK2019: unresolved external symbol BluetoothFindFirstRadio 
referenced in function msbt_lookup_name
_msbt.obj : error LNK2019: unresolved external symbol __imp_WSASetServiceA 
referenced in function msbt_set_service_raw
_msbt.obj : error LNK2019: unresolved external symbol __imp_ioctlsocket 
referenced in function msbt_setblocking
_msbt.obj : error LNK2019: unresolved external symbol __imp_setsockopt 
referenced in function msbt_settimeout
_msbt.obj : error LNK2019: unresolved external symbol __imp_getsockopt 
referenced in function msbt_gettimeout
MSVCRT.lib(crtdll.obj) : error LNK2019: unresolved external symbol __imp_Sleep 
referenced in function _CRT_INIT
MSVCRT.lib(dllmain.obj) : error LNK2019: unresolved external symbol 
__imp_DisableThreadLibraryCalls referenced in function DllMain
MSVCRT.lib(gs_support.obj) : error LNK2019: unresolved external symbol 
__imp_QueryPerformanceCounter referenced in function __security_init_cookie
MSVCRT.lib(gs_support.obj) : error LNK2019: unresolved external symbol 
__imp_GetTickCount referenced in function __security_init_cookie
MSVCRT.lib(gs_support.obj) : error LNK2019: unresolved external symbol 
__imp_GetCurrentThreadId referenced in function __security_init_cookie
MSVCRT.lib(gs_support.obj) : error LNK2019: unresolved external symbol 
__imp_GetSystemTimeAsFileTime referenced in function __security_init_cookie
build\lib.win-amd64-2.6\bluetooth\_msbt.pyd : fatal error LNK1120: 33 
unresolved externals
error: Setup script exited with error: command '"c:\Program Files 
(x86)\Microsoft Visual Studio 9.0\VC\BIN\amd64\link.exe"' failed with exit 
status 1120


What version of the product are you using? On what operating system?

Windows 7 64-bit with Visual Studio 2008 Professional and Python 2.6.5 64-bit. 
I've built many other Python C-extension packages on this platform with success.

Please provide any additional information below.


Original issue reported on code.google.com by jaraco%[email protected] on 7 Jul 2010 at 6:21

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.