Closed gratefulfrog closed 8 years ago
Python Mode doesn't use cPython, or your system's Python standard library.
Is there any way to use the serial library, or other standard libraries?
Anything that's pure python can be copied into your sketch folder. There's no facility for a shared or standard Python language library for Python Mode, unfortunately.
So, I guess you mean that there is no easy way to use pyserial? ( https://pypi.python.org/pypi/pyserial) Or any of the other more complex modules?
There is no way to use any Python module that has a C language component.
thanks again
Hi,
Well after some research in this forum and on the micropython forum, I was able to get pyserial to work with Processing.py!
Check out the details in this post: http://forum.micropython.org/viewtopic.php?f=2&t=1840&p=11101#p11101
Thanks for all your help!!!
Ciao, Bob
On Fri, May 27, 2016 at 12:05 AM, Grateful Frog gratefulfrog@gmail.com wrote:
thanks again, sorry to be so ignorant... Ciao, Bob
On Thu, May 26, 2016 at 9:20 PM, Jonathan Feinberg < notifications@github.com> wrote:
There is no way to use any Python module that has a C language component.
— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/jdf/Processing.py-Bugs/issues/164#issuecomment-221968129
Hi,
I don't know if this is a bug, but I cannot seem to
import serial
even though it is installed in both python2.7 and 3 on my system:results in:
processing.app.SketchException: ImportError: No module named serial
Yet, at the Linux command line all is fine in both python2.7 and 3
Any help would be greatly appreciated.µ Ciao, Bob