I tried using the console package on a windows machine and the readline import failed as such:
c:\Python27\python-lifx-sdk-master\python-lifx-sdk-master\examples>python console.py Traceback (most recent call last): File "console.py", line 1, in <module> import pyreadline ImportError: No module named pyreadline
No attempts to install or compile it worked as it is not meant to run on Windows. I was however, able to get pyreadline and use that instead. May I suggest you use this form instead:
try:
import readline
except ImportError:
import pyreadline as readline
I tried using the console package on a windows machine and the readline import failed as such:
c:\Python27\python-lifx-sdk-master\python-lifx-sdk-master\examples>python console.py
Traceback (most recent call last): File "console.py", line 1, in <module> import pyreadline ImportError: No module named pyreadline
No attempts to install or compile it worked as it is not meant to run on Windows. I was however, able to getpyreadline
and use that instead. May I suggest you use this form instead: