Closed troymessina closed 6 years ago
I am not familiar with the Anaconda environment so I don't have an immediate answer for you. I have several questions although:
python blink.py
do things still fail?
I just installed anaconda on a fresh installation of Linux. If I run blink.py from a terminal window, it runs without error. If I bring up a web-based jupyter notebook and run blink.py, I see the same error you are seeing.
If you run outside of the jupyter notebook does it run successfully for you?
It appears that this is a bug within jupyter. I wanted to try and see if I can debug, but spyder crashes on my system.
Yet more info. I am pretty sure now that this is a jupyter notebook issue. Take a look at this jupyter issue: https://github.com/jupyter/notebook/issues/3397.
I am going to close this issue, but if you still think this is a pymata-aio issue, you can add a comment, and I will be happy to reopen the issue.
Here's the fix. You need to regress the version of a Tornado in jupyter notebook as per the jupyter issue above
pip install tornado==4.5.3
That does the trick. Thank you!
I have installed pymata-aio on four different Windows machines. Two are Windows 7, and two are Windows 10. I get the error "RuntimeError: This event loop is already running" on one of the Windows 7 and one of the Windows 10 machines, but everything is fine on the other two machines. I am running in a Jupyter notebook managed by Anaconda (Python 3.5 and 3.6) and have tried lots of different examples from your wiki and some that I wrote. I have tried hard-coding the COM port, changing the arduino_wait, restarting the machines, restarting the Python kernal, unplugging/replugging the Arduino into the USB. Nothing will resolve the issue. Is there something I am missing? I've included an example below.