On Thu, Nov 30, 2017 at 6:06 PM Ruchit Bhatt <[email protected]> wrote:
> Hi, > How to convert python module to *.pyd using cython ? > > I am using Maya 2017 Up 4, And in that i installed cython with below step > >> C:\Program Files\Autodesk\Maya2017\bin>mayapy ez_setup.py >> C:\Program Files\Autodesk\Maya2017\bin>mayapy get-pip.py >> C:\Program Files\Autodesk\Maya2017\Python\Scripts>pip install setuptools >> --upgrade >> C:\Program Files\Autodesk\Maya2017\Python\Scripts>pip install cython >> >> > It appears that it isn't finding cython in the PYTHONPATH when you are running mayapy. Can you manually confirm the install location of cython? Can you also try something like this (sorry if the syntax is wrong. I dont use windows): mayapy -c "import cython; print cython" Presumably if it could find cython on your PYTHONPATH, then it should compile an extension which could then be imported within Maya. > After that i followed this link Hello Cython in Maya > <https://gist.github.com/nrtkbb/5b65d2f5ed42bd9947b5> > > <https://gist.github.com/nrtkbb/5b65d2f5ed42bd9947b5> > *Setup.py* > > [image: Auto Generated Inline Image 1]] > > *Terminal Error* > > [image: Auto Generated Inline Image 2] > > > *But works fine in script editor* > > [image: Auto Generated Inline Image 3] > > > So how to compile *.py to *.pyd for maya and make a use in scriptEditor ? > > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/python_inside_maya/c95137c2-5202-41a1-95d2-c7c1384f9a5e%40googlegroups.com > <https://groups.google.com/d/msgid/python_inside_maya/c95137c2-5202-41a1-95d2-c7c1384f9a5e%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA3cCVVrcPj-73WYkPpJuZVDzq5ry_G5UpQuRQqvSNUYCQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
