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

hello.py doesn't run: AttributeError: module 'launchpad_py' has no attribute 'LaunchpadProMk3' #61

Open
kaiyoma opened this issue Dec 25, 2020 · 1 comment

Comments

@kaiyoma
Copy link

kaiyoma commented Dec 25, 2020

information.py seems to run just fine, but hello.py doesn't:

C:\Work\launchpad.py\examples>python hello.py
pygame 2.0.1 (SDL 2.0.14, Python 3.9.1)
Hello from the pygame community. https://www.pygame.org/contribute.html
<module 'launchpad_py' from 'C:\\Python\\lib\\site-packages\\launchpad_py\\__init__.py'>
Traceback (most recent call last):
  File "C:\Work\launchpad.py\examples\hello.py", line 167, in <module>
    main()
  File "C:\Work\launchpad.py\examples\hello.py", line 38, in main
    elif launchpad.LaunchpadProMk3().Check( 0 ):
AttributeError: module 'launchpad_py' has no attribute 'LaunchpadProMk3'
@FMMT666
Copy link
Owner

FMMT666 commented Dec 26, 2020

Could it be that you have an older version installed in
the site-packages folder?

To quickly test this, you can also move the files "launchpad.py" and "charset.py"
in the same directory of the "hello.py" file.
Now, executing it from this folder will use the file "launchpad.py" file there rather than
that from the installation.

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

No branches or pull requests

2 participants