kostmo / pyrocket

Automatically exported from code.google.com/p/pyrocket
2 stars 2 forks source link

Port replicator fails with detection #5

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. connect to port replicator
2. try to start pyrocket
3. fails to communicate with device

What is the expected output? What do you see instead?

Expected output is the application starts and works with the rockets (isn't
it always :-P)

What version of the product are you using? On what operating system?
0.6 on gentoo linux

Please provide any additional information below.

If i connect directly to the laptop it works. If I connect to the port
replicator, however it will fail with the following message.

raceback (most recent call last):
  File "/usr/bin/pyrocket", line 27, in <module>
    launcher = RocketWindow()
  File "/usr/lib64/python2.5/site-packages/rocket_frontend.py", line 207,
in __init__
    self.cb_select_new_launcher(self.laucher_id)
  File "/usr/lib64/python2.5/site-packages/rocket_frontend.py", line 281,
in cb_select_new_launcher
    for i, state in enumerate( launcher.check_limits() ):
  File "/usr/lib64/python2.5/site-packages/rocket_backend.py", line 208, in
check_limits
    limit_signal, = bytes
ValueError: need more than 0 values to unpack

I've not looked into it further and not sure if when I'll be able to.

Original issue reported on code.google.com by tsu...@gmail.com on 6 Feb 2009 at 4:53

GoogleCodeExporter commented 9 years ago
I get similar error on Ubuntu ibex.

:~$ sudo pyrocket
Located blue Rocket Launcher device.
Traceback (most recent call last):
  File "/usr/bin/pyrocket", line 27, in <module>
    launcher = RocketWindow()
  File "/var/lib/python-support/python2.5/rocket_frontend.py", line 206, in __init__
    self.connect_everything()
  File "/var/lib/python-support/python2.5/rocket_frontend.py", line 407, in
connect_everything
    err_msg = self.rocket_controller.acquire_devices()
  File "/var/lib/python-support/python2.5/rocket_backend.py", line 39, in acquire_devices
    return_code = launcher.acquire( dev )
  File "/var/lib/python-support/python2.5/rocket_backend.py", line 98, in acquire
    except usb.USBError, e:
AttributeError: 'module' object has no attribute 'USBError'
:~$

Original comment by mrvype...@gmail.com on 7 Feb 2009 at 4:56

GoogleCodeExporter commented 9 years ago
I get the same problem running fairly stock Ubuntu 8.10.  I have an older green 
&
black stripe Dream Cheeky circa 2006.  I think it's one of the originals.

When I undock the laptop, it works great.  When it's on the Dell docking 
station, I
get the errors below.  I have tried it in different USB ports, using other USB 
hubs
including ports on the Dell LCD monitor.  However, I suppose they all reach 
back to
the docking station since all my USB ports are on the back of the laptop.

user@host:~$ pyrocket
/usr/share/themes/Blubuntu/gtk-2.0/gtkrc:169: Clearlooks configuration option
"progressbarstyle" is not supported and will be ignored.
Located green Rocket Launcher device.
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/rocket_frontend.py", line 281, in
cb_select_new_launcher
    for i, state in enumerate( launcher.check_limits() ):
  File "/usr/lib/python2.5/site-packages/rocket_backend.py", line 141, in check_limits
    self.previous_fire_state = limit_bytes[1] & (1 << 7)
IndexError: list index out of range
Traceback (most recent call last):
  File "/usr/bin/pyrocket", line 27, in <module>
    launcher = RocketWindow()
  File "/usr/lib/python2.5/site-packages/rocket_frontend.py", line 207, in __init__
    self.cb_select_new_launcher(self.laucher_id)
  File "/usr/lib/python2.5/site-packages/rocket_frontend.py", line 281, in
cb_select_new_launcher
    for i, state in enumerate( launcher.check_limits() ):
  File "/usr/lib/python2.5/site-packages/rocket_backend.py", line 141, in check_limits
    self.previous_fire_state = limit_bytes[1] & (1 << 7)
IndexError: list index out of range

user@host:~$ sudo pyrocket
/usr/share/themes/Blubuntu/gtk-2.0/gtkrc:169: Clearlooks configuration option
"progressbarstyle" is not supported and will be ignored.
Located green Rocket Launcher device.
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/rocket_frontend.py", line 281, in
cb_select_new_launcher
    for i, state in enumerate( launcher.check_limits() ):
  File "/usr/lib/python2.5/site-packages/rocket_backend.py", line 141, in check_limits
    self.previous_fire_state = limit_bytes[1] & (1 << 7)
IndexError: list index out of range
Traceback (most recent call last):
  File "/usr/bin/pyrocket", line 27, in <module>
    launcher = RocketWindow()
  File "/usr/lib/python2.5/site-packages/rocket_frontend.py", line 207, in __init__
    self.cb_select_new_launcher(self.laucher_id)
  File "/usr/lib/python2.5/site-packages/rocket_frontend.py", line 281, in
cb_select_new_launcher
    for i, state in enumerate( launcher.check_limits() ):
  File "/usr/lib/python2.5/site-packages/rocket_backend.py", line 141, in check_limits
    self.previous_fire_state = limit_bytes[1] & (1 << 7)
IndexError: list index out of range

Original comment by chad.vog...@gmail.com on 12 Feb 2009 at 2:35