pybluez doesn't work

Bug #221797 reported by reklak
6
Affects Status Importance Assigned to Milestone
pybluez (Ubuntu)
Invalid
Undecided
Unassigned
Nominated for Hardy by Alessio Treglia

Bug Description

I got:
Traceback (most recent call last):
  File "inquiry-with-rssi.py", line 7, in ?
    import _bluetooth as bluez
ImportError: No module named _bluetooth

Module PyBluez was installed from package and from tarball. The results are the same
on both Python versions 2.4 and 2.5.
Dont work other examples from PyBluez which import _bluetooth module.

My actual Ubuntu version is: 8.04 i386.

Revision history for this message
Basilio Kublik (sourcercito) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. This bug did not have a package associated with it, which is important for ensuring that it gets looked at by the proper developers. You can learn more about finding the right package at [WWW] https://wiki.ubuntu.com/Bugs/FindRightPackage. I have classified this bug as a bug in pybluez

Revision history for this message
reklak (reklak) wrote : Re: [Bug 221797] Re: pybluez doesn't work

OK.
I forgot to associate this bug with package.
It should be associated with python-bluez (python-bluetooth).

2008/4/26 Basilio Kublik <email address hidden>:
> Thank you for taking the time to report this bug and helping to make
> Ubuntu better. This bug did not have a package associated with it, which
> is important for ensuring that it gets looked at by the proper
> developers. You can learn more about finding the right package at [WWW]
> https://wiki.ubuntu.com/Bugs/FindRightPackage. I have classified this
> bug as a bug in pybluez
>
> ** Changed in: pybluez (Ubuntu)
> Sourcepackagename: None => pybluez
>
>
> --
> pybluez doesn't work
> https://bugs.launchpad.net/bugs/221797
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in Source Package "pybluez" in Ubuntu: New
>
>
>
> Bug description:
> I got:
> Traceback (most recent call last):
> File "inquiry-with-rssi.py", line 7, in ?
> import _bluetooth as bluez
> ImportError: No module named _bluetooth
>
>
> Module PyBluez was installed from package and from tarball. The results are the same
> on both Python versions 2.4 and 2.5.
> Dont work other examples from PyBluez which import _bluetooth module.
>
> My actual Ubuntu version is: 8.04 i386.
>

Revision history for this message
emilmont (emilmont) wrote :

If you run:
dpkg --search _bluetooth.so

you should see:
python-bluez: /usr/lib/python2.5/site-packages/bluetooth/_bluetooth.so

Basically, you need to change:
import _bluetooth

with:
import bluetooth._bluetooth

The choice of moving _bluetooth.so in the bluetooth directory seems to be peculiar of Ubuntu.

For consistency the example files like "inquiry-with-rssi.py" should be updated with the new module path.

Revision history for this message
Alessio Treglia (quadrispro) wrote :

Can you confirm this bug on Jaunty?

Changed in pybluez (Ubuntu):
status: New → Incomplete
Revision history for this message
reklak (reklak) wrote :

I can not confirm this bug.
In Jaunty is OK.

2009/3/29 Alessio Treglia <email address hidden>:
> Can you confirm this bug on Jaunty?
>
> ** Changed in: pybluez (Ubuntu)
>       Status: New => Incomplete
>
> --
> pybluez doesn't work
> https://bugs.launchpad.net/bugs/221797
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in “pybluez” source package in Ubuntu: Incomplete
>
> Bug description:
> I got:
> Traceback (most recent call last):
>  File "inquiry-with-rssi.py", line 7, in ?
>    import _bluetooth as bluez
> ImportError: No module named _bluetooth
>
>
> Module PyBluez was installed from package and from tarball. The results are the same
> on both Python versions 2.4 and 2.5.
> Dont work other examples from PyBluez which import _bluetooth module.
>
> My actual Ubuntu version is: 8.04 i386.
>

Changed in pybluez (Ubuntu):
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.