Kizoku-Dev / pybluez

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

Bluetooth module will not work for WINXP and Ubuntu #16

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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 keyur8...@gmail.com on 18 Mar 2009 at 3:33

GoogleCodeExporter commented 8 years ago

Original comment by ashu...@gmail.com on 18 Mar 2009 at 4:14

GoogleCodeExporter commented 8 years ago
Even I am facing the same problem with ubuntu.  Is there any solution for the 
problem?

Original comment by divya.be...@gmail.com on 30 Jun 2009 at 10:34