Using pySerial

75 views
Skip to first unread message

Mathew Schwartz

unread,
Feb 9, 2017, 5:10:16 PM2/9/17
to python_in...@googlegroups.com
Is there a way to install pySerial in Maya 2016?  I am trying to use 'import serial' as I have some project I would like to have reading data coming in.  It seems in the past there was so ways to install a maya python version, are there any updates?

Thanks,

Mat

Justin Israel

unread,
Feb 9, 2017, 7:23:06 PM2/9/17
to python_in...@googlegroups.com
Is it a pure python library? It looks to be so, from a quick glance. Is there anything currently limiting you from just making sure its on your PYTHONPATH so it can be imported? I'm not sure why you would need a "maya python" version of it.

Justin

--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CADiWwnTbwFHMQkLRXC7EXhrSqHgTdoaXZhnzdp0jnVv4DqOYqQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Mathew Schwartz

unread,
Feb 12, 2017, 3:17:19 PM2/12/17
to python_in...@googlegroups.com
Well when trying to import serial, maya returns no package.  I was able to copy the serial library from my python version into maya's site-packages library.  Is maya looking at the pythonpath?  In 2011 or 2012 I had been using numpy with maya, and the next version stopped working.  Has there been a different implementation now?

Thanks,
Mat

On Thu, Feb 9, 2017 at 7:22 PM, Justin Israel <justin...@gmail.com> wrote:
Is it a pure python library? It looks to be so, from a quick glance. Is there anything currently limiting you from just making sure its on your PYTHONPATH so it can be imported? I'm not sure why you would need a "maya python" version of it.

Justin

On Fri, Feb 10, 2017 at 11:10 AM Mathew Schwartz <umc...@gmail.com> wrote:
Is there a way to install pySerial in Maya 2016?  I am trying to use 'import serial' as I have some project I would like to have reading data coming in.  It seems in the past there was so ways to install a maya python version, are there any updates?

Thanks,

Mat

--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA3J8_xT1Dtzv6ajdkCxvUeyVJHmXLfWj4NjOzfC%3D59syg%40mail.gmail.com.

Justin Israel

unread,
Feb 12, 2017, 3:33:06 PM2/12/17
to python_in...@googlegroups.com


On Mon, Feb 13, 2017, 9:17 AM Mathew Schwartz <umc...@gmail.com> wrote:
Well when trying to import serial, maya returns no package.  I was able to copy the serial library from my python version into maya's site-packages library.  Is maya looking at the pythonpath?  In 2011 or 2012

Yes. Most people usually modify their Maya.env or userSetup.py to update the PYTHONPATH to include external locations. You should look at updating that so your pure python packages can be imported 

I had been using numpy with maya, and the next version stopped working.  Has there been a different implementation now?

Numpy is a different story because it is a compiler extension which has to match Maya (and even a bit more restrictive if you are on Windows) 


Thanks,
Mat

On Thu, Feb 9, 2017 at 7:22 PM, Justin Israel <justin...@gmail.com> wrote:
Is it a pure python library? It looks to be so, from a quick glance. Is there anything currently limiting you from just making sure its on your PYTHONPATH so it can be imported? I'm not sure why you would need a "maya python" version of it.

Justin

On Fri, Feb 10, 2017 at 11:10 AM Mathew Schwartz <umc...@gmail.com> wrote:
Is there a way to install pySerial in Maya 2016?  I am trying to use 'import serial' as I have some project I would like to have reading data coming in.  It seems in the past there was so ways to install a maya python version, are there any updates?

Thanks,

Mat

--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CADiWwnR%3DVxNTKT%3D3cbF%2BL5s%2BU%3Dg4F7S%2BVmTywj48X2UGdxHMmA%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages