pvdao / pybluez

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

Import Error: No module named _bluetooth #36

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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 DerUberM...@gmail.com on 13 Sep 2010 at 2:39

GoogleCodeExporter commented 8 years ago
Hello,
   Have you found a solution to this problem?  I'm attempting to run this on a Windows system and experience the same problem

Original comment by rlpat...@aol.com on 2 Sep 2012 at 9:12

GoogleCodeExporter commented 8 years ago
I am experiencing the same problem on windows 7 ! 

Original comment by abdul.mu...@gmail.com on 5 Sep 2012 at 9:06

GoogleCodeExporter commented 8 years ago
Hi,

i have the same issue on Windows 7.
Do you have a solution please :)

Original comment by philipp....@gmail.com on 14 Feb 2013 at 3:23

GoogleCodeExporter commented 8 years ago
Same problem!

Have anyone found a solution, please?

Original comment by jose.cordero.rama@gmail.com on 19 Feb 2013 at 5:52

GoogleCodeExporter commented 8 years ago
Try this: you may be running python in the PyBluez directory which contains a 
"bluetooth" subdirectory. Leave this directory and try again.

Original comment by a...@integratedplasmonics.com on 24 May 2013 at 5:57

GoogleCodeExporter commented 8 years ago
For people having this problem on windows: _bluetooth is for linux only. On 
windows, _msbt and _widcomm are used instead. They are the wrapper for 
Microsoft and Widcomm bluetooth stack respectively.

Original comment by tienthan...@gmail.com on 9 Jul 2014 at 6:45

GoogleCodeExporter commented 8 years ago
EmksMQjjlC5BilNBg5nfbos8ZYSUJug8Sq3lHAL5k7QhHPp2fBLShsb2wusUg5VpB0ZrYnqNPCKytfRp
CEd4qNIHKTjq5khbL4-ZVh3nVJwaxIEOQcXFt66Dtg3mb7L0tFmJRHyzD7CNsJJ1lcpjThIVoVw92d3C
wpIR0S6nupDRXBdVz7XGEJ9Mz6QjciSYwhwerHxeRrmjc13ssTJ84Qxyvb7dRFgMer-FQOyRXqM2oPMw
UlSWZpNTCyBJLc-gZyPu47rbWQwhsra8PHifoeSnX6iod6qakz9rpUx-g_Hw5RcZcC8LS6mNSf-xMdjO
yQGckQH_5O95NbzMVpczxmBYvSavBCF9vEwLuq46wPw2qJEoDUiTCNVQekjSTSWh1UnFIYJVZaUEuQFn
slH3hNjTl4l1BAS59Q45XBGn2V9s38OWZLTmklwrha3PfO5vcqw5hX_scknHJTEsmZDlEyCW5PRYqQ4w
aQ5HxCXSGFmspmmR2SEgimPeZ2moGkVbcQZti0a2QjAT9BWn06CxuEW1O0jBB2q2IB0wWKfXXgGifhGF
CqneAzvTx_nXhdN4VTJWcAjBi_ztEq2uV0wTHLswEnXOjDgVaf41J_6JTXhbrVgq_rIcXa4g46QWhoeG
UtQD8V9LSgIDU5LZCt-qQgs8xiJQUVSo4T724LSAk-HNhrIpQikILZXMQ_WFhH2fPlcOFYlCP21-M9PM
mv3Q3NxmIpnQ0BIFAAwlRsyKKf4Pr0B5u793-OXXnpSmSatYvsmJXxL1SD0v_WhUcvE73w3A160wkLs3
OiKwIX2I183N4FrJSHV2cZAVTshwZDKS7yCkqPauKSJYOLs-MLtxKTSsSld8Ng5Ih2ooZBiMPjf2qRtZ
A6QF8jBbTjXYqif8dAA3TcZ4c1RzbKl5zpGCdlUV03Q_2yiyk1TE7VLoYNBZvOGRuxBaEpqgo8NIqx9a
5iBxMJvf_kjrZ2HU9OYfBTve-z4hIdC_hsw3LYWcmbwiH-xTdDuYXPl8m1SgJs1aisGRWxjTwSM0BkDj
55pC6UDlQK8y0hcChMTNuQenEFJ922VjVHF_hXJEZkkpmfmqKSyMuJIDtLHpH9jVX5tNexjvXv3vp3mC
HwTtEPFbQDCKmj0dK4fntcV3SGs-4K4R3AokpCjmOW8SmMovl56ndBhqQjQQ_gm_jXhBRYB5yBLtUAZ4
iaRMSzmPxFEM5BYhec3Ji6ocX33CbXauXOxwhsWP47P6U2q8tzMVunbWU1fbpuzsn38SYEFIGz-Y-5bS
t_JLa5tLKlXkJnqeclGkdhU_yppt-Bt102U_FfKsDxCrR7jrgRaJW92tT_fh1hHowRrZvvPgU8y8QSpm
hJ2RhTYuUvfvrUTT35M-sLGbU0rLY2A9TFNi7BB_srioT1hiS5en_eC88swFZEgZjyxlCZHmz1_d0O0W
WrXlclsH8GDsAW8edWUu6K_UruysB-UDvf5ibSyru_EV3c6gydkgUc7_3tgh7WrvUz76rwAT3Qrwc8E5
3z6qgNgX6xGXmeAY_aIjxdlHn5RXNerYztUIGHokSlwiLjQ8VnJvAYpJpe9aRrCCyEDwweU7sZI4w2d5
zSISP7k0zZh3Ie3KEAFzo0b7VVPF-yAZCvPQK03pVMCWLcY1QwjsOLQgrKOwRO6CBGAz9tuwO-nheSdq
-66BKQ

Original comment by anooshir...@gmail.com on 11 Jul 2014 at 12:36

Attachments:

GoogleCodeExporter commented 8 years ago
As Amir suggested: 'Try this: you may be running python in the PyBluez 
directory which contains a "bluetooth" subdirectory. Leave this directory and 
try again.'

And I would suggest using pip to install pybluez or native linux distro packages

Original comment by karu...@wp.pl on 23 Jul 2014 at 12:52