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

Support for Python3? #2

Open
InfernoZeus opened this issue Feb 2, 2014 · 1 comment
Open

Support for Python3? #2

InfernoZeus opened this issue Feb 2, 2014 · 1 comment

Comments

@InfernoZeus
Copy link

I've been trying to update this to support Python3. The main thing was changing print calls to use brackets, but now I'm getting the following error:

Traceback (most recent call last): File "NG-led.py", line 1, in <module> import limitlessled File "..../limitlessled/__init__.py", line 2, in <module> from . import effects File "..../limitlessled/effects/__init__.py", line 5, in <module> __import__(module[:-3], locals(), globals()) ImportError: No module named 'colorful_strobe'

Any idea what the problem is? What's the code in `effects/init.py' doing?

@joaquincasares
Copy link
Owner

Sorry for sleeping on this! I saw this come in, but somehow a month's past. Did you get it to work after all?

effects/init.py is essentially loading all the files that are under that directory. I did that to make it simple to add new effects. If you were instead to hardcode all the effects into init.py, would that make Python3 happy?

Again, apologies for being late here. Cheers!

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