Error Output, but still works? Need help with LED-Switches

Asked by Sugi

I just reinstalled my OS, thus promoting me to install pystromo again and I thought I did everything right. But when I try to load up my map file, I get this error:

$ ./pystromo-remap.py -m game.map
/home/midori/.pystromo/lib/mapping.py:554: DeprecationWarning: object.__init__() takes no parameters
  tuple.__init__(self, *args, **kwargs)
/home/midori/.pystromo/lib/mapping.py:648: DeprecationWarning: object.__init__() takes no parameters
  tuple.__init__(self, *args, **kwargs)
/home/midori/.pystromo/lib/mapping.py:501: DeprecationWarning: object.__init__() takes no parameters
  tuple.__init__(self, *args, **kwargs)

I couldn't find out what was giving the error, but it seams the pystromo is working though. My 04 key on my N52te is mapped to F11, which is what I wanted. But why am I getting this error? I think all of the keys are working. When my game server comes back online, I will test them to make sure.

Also I have never been able to get the LED-Switches working.

Even though, We talked about this:

"Raumkraut said on 2009-01-13:

For an on/off toggle, you can adapt what is mentioned in test.map in the LED-switching section, eg:
KEY_TAB: BTN_LEFT@1 . BTN_LEFT@0 .
With this, each press of KEY_TAB will cycle through the remapping blocks; delimited by the "." character. Setting a value (using "@") of 1 will 'press' a button, 0 will release."

Thanks,
Sugi

Question information

Language:
English Edit question
Status:
Answered
For:
Pystromo Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Raumkraut (raumkraut) said :
#1

The errors you see are just warnings, letting you (or rather, me) know that a feature that I'm using in Pystromo is going to disappear in future versions of Python. I see the same kind of things with a lot of Python applications, now that I am also using an OS with Python 2.6 as the default (Ubuntu Jaunty, FTR). They're nothing really for users to be worried about at this point, and do little more than make a mess of program output!

Part the second: The quote you posted doesn't actually deal with mode-shifting (LEDs), just with differing behaviour on successive keypresses. The examples which deal with mode-shifting can be found on lines 135-161 of test.map.
Let me know if you still can't get it to work.

Can you help with this problem?

Provide an answer of your own, or ask Sugi for more information if necessary.

To post a message you must log in.