FMMT666 / launchpad.py

Novation Launchpad (and Midi Fighter) control suite for Python
Other
355 stars 63 forks source link

Example scripts dont work #78

Closed slashedCodes closed 2 years ago

slashedCodes commented 2 years ago

I ran an example script and I installed launchpad-py with pip, but it errored saying that launchpad didn't exist. Then I tried installing launchpad with pip, and now it errors at .LaunchpadPro

What package is the right launchpad library and why is this happening?

Traceback (most recent call last):
  File "c:\Users\User\Desktop\Launched\Launched.py", line 126, in <module>
    main()
  File "c:\Users\User\Desktop\Launched\Launched.py", line 29, in main
    if launchpad.LaunchpadPro().Check( 0 ):
AttributeError: module 'launchpad' has no attribute 'LaunchpadPro'. Did you mean: 'LaunchPad'?
slashedCodes commented 2 years ago

solved, needed pygame

FMMT666 commented 2 years ago

Sounds as if it's worth to add some error checks. Maybe I'll add a couple of lines for this.

slashedCodes commented 2 years ago

defenetily agree. Slapping import into a try catch isnt the best thing to do.