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?
Comment #1
Posted on Aug 21, 2008 by Massive HorseThis issue seems to appear only with Windows Vista. I tried it on the same notebook with Linux and everything works as expected.
Comment #2
Posted on Sep 1, 2008 by Quick RabbitHi,
I don't have a vista computer, and am unfortunately unable to be much help here. Just for reference, what version of the Widcomm stack are you using?
Comment #3
Posted on Oct 11, 2008 by Grumpy Camelhi, i want to report the same problem in a Vista notebook. Python2.5 and PyBluez 0.15
Comment #4
Posted on Dec 21, 2008 by Helpful PandaMe also having same problem. My Vista system doesnt support Pybluez or Lightblue. any available solution for Vista users??
Comment #5
Posted on Jan 8, 2009 by Swift CamelI'm also having these problems except I'm trying to write a socket server program and I get this error when I call listen(). I'm using Widcomm 6.0.1.3100.
Comment #6
Posted on May 8, 2009 by Massive HorseYeah, Vista / Windows 7 support would be really great. Anybody willing to do this? ;) I've looked through the source and as far as i can tell it won't be really easy (however i haven't got a clue about the windows api)
Would be willing to test it :)
Comment #7
Posted on Jul 27, 2009 by Swift RhinoHi Everyone,
I am also trying to use the PyBluez module on a Vista with the same problem reported above. Switching my code and trying on XP works sometimes (not all the time). If I connct succesfully once and terminate mycode, then I am having to power cycle my Bluetooth GPS every time I need to run my code the second time. Otherwise it doesn't work with the error mesage given as above posts. There are some problems in the Windows version of this module (particularly bad under Vista). Any plans to fix these ?
I would be happy to help doing this but I don't know how to trace these problems and my coding skills are not too great.
Is there any plan to
Comment #8
Posted on Aug 29, 2009 by Happy CatHi everyone! Thank you for your work with pybluez! I'm using pybluez for lego NXT (I'm a contributor for nxt_python) robots and recently I installed windows 7. With XP, everything ok, but now it does not. My error is a result that equals 1, but i'm unable to know what "open_client" returns, because this part is compiled. Can anyone contribute the source to check if there's anything we can do about this?
result = self._wc.open_client (port, str_to_BD_ADDR (addr), DEFAULT_MTU) if result != _widcomm.RFCOMM_SUCCESS: raise BluetoothError (_port_return_code_to_str (result))
Comment #9
Posted on Nov 16, 2009 by Grumpy PandaI have the same problem in Vista. Has anyone found any solution?
I am using python 2.6 and pyBluez-0.16
Comment #10
Posted on Nov 16, 2009 by Massive HorseHello,
please look in this mailing list thread: http://groups.google.com/group/pybluez/browse_thread/thread/6be8eaeeee029766
I only had to compile PyBluez against the latest Version of Visual C++ and the Widcomm SDK. This solved all issues with Windows Vista and Windows 7 for me.
I could send you a binary package if you want. (The source code is PyBluez 0.17, patched with VC++2008.patch)
Comment #11
Posted on Nov 16, 2009 by Massive HorseAttached file PyBluez-0.17.win32-py2.6.exe I tested this on Windows XP, Windows Vista 32bit and Windows 7 64bit, but don't blame me if it doesn't work for you.
Greetings, Lukas
- PyBluez-0.17.win32-py2.6.exe 286.69KB
Comment #12
Posted on Nov 27, 2009 by Grumpy PandaThank you Lukas, worked perfectly. :-)
Comment #13
Posted on Dec 2, 2009 by Massive HorseOkay, then I'll close this issue. Feel free to reopen it again if you have problems with this package.
Status: Verified
Labels:
Type-Defect
Priority-Medium