Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python error "tuple index out of range" #5

Open
GoogleCodeExporter opened this issue Apr 19, 2016 · 3 comments
Open

python error "tuple index out of range" #5

GoogleCodeExporter opened this issue Apr 19, 2016 · 3 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. screen on Ubuntu 10.04.1 LTS
2. run the haraldscan over an hour at my workplace (a lot of phones)


What is the expected output? What do you see instead?
I get the following error and the program crasess:

                                    Harald Scan
################################################################################
Press Ctrl-C to Quit           6.00 MAC(s) / 15 mins           6 device(s) found
################################################################################

MAC                Name          Class              Vendor
00:24:03:C9:8A:F8  Greg          Phone|Smart Phone  Nokia Danmark A/S
A8:7B:39:7A:C0:4D  ΕΛΑ!!         Phone|Smart Phone  Unknown
00:24:04:A0:F6:F9  Nokia 2760    Phone|Cellular     Nokia Danmark A/S
14:24:03:C9:8A:F8  Greg          Phone|Smart Phone  Unknown
80:50:1B:35:07:52  Nokia 5230    Phone|Smart Phone  Unknown
34:C3:AC:95:EE:26  GT-S5620      Phone|Cellular     Unknown
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/cx_Freeze/initscripts/Console.py", line 27, in <module>
  File "haraldscan.py", line 111, in <module>
  File "/usr/local/lib/python2.6/dist-packages/bluetooth/bluez.py", line 385, in process_event
  File "/usr/local/lib/python2.6/dist-packages/bluetooth/bluez.py", line 458, in _process_hci_event
  File "haraldmodules/discovery.py", line 46, in device_discovered
  File "haraldmodules/deviceclass.py", line 49, in majordev_class
  File "haraldmodules/deviceclass.py", line 91, in minordev_phone
IndexError: tuple index out of range
root@gaia:~/haraldscan-dist-32-0.42#



What version of the product are you using? On what operating system?
I have:
Distributor ID: Ubuntu
Description:    Ubuntu 10.04.1 LTS
Release:        10.04
Codename:       lucid
Linux gaia 2.6.32-27-generic-pae #49-Ubuntu SMP Thu Dec 2 00:07:52 UTC 2010 
i686 GNU/Linux
with usb bluetooth:
Bus 007 Device 002: ID 1131:1001 Integrated System Solution Corp. KY-BT100 
Bluetooth Adapter

Please provide any additional information below.
Thank you for your program, keep it alive!
George from Greece



Original issue reported on code.google.com by [email protected] on 30 Dec 2010 at 10:33

@GoogleCodeExporter
Copy link
Author

My pyhton version:
Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56)
[GCC 4.4.3] on linux2

Original comment by [email protected] on 30 Dec 2010 at 10:34

@GoogleCodeExporter
Copy link
Author

This bug is caused by a device with a minor number that is either invalid or 
not handled by Haraldscan. 

It should handle such events more gracefully.
I will look into it when I can Sorry for the delayed response.

Original comment by tstenvold on 3 Apr 2011 at 6:41

  • Added labels: Component-Logic, Usability

@GoogleCodeExporter
Copy link
Author

Original comment by tstenvold on 3 Apr 2011 at 6:42

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants