x***@gmail.com
2018-01-23 03:16:42 UTC
Hi Everyone!
I got a issue which beset me in the past few days about how to compiling pyd file using mayapy.exe.
I have tested on Windows10 with both maya2014 and maya2016 sp6, but got the same error like bellow:
"Runtime Error!
Program: C:\Program Files\Autodesk\Maya2014\bin\mayapy.exe
R6034
An application has made an attempt to load the C runtime library incorrectly.
Please contract the application's support team for more information."
E:\test\test>mayapy setup.py build_ext --inplace
Traceback (most recent call last):
File "setup.py", line 2, in <module>
from Cython.Build import cythonize
File "C:\Program Files\Autodesk\Maya2014\Python\lib\site-packages\Cython\Build\__init__.py", line 1, in <module>
from .Dependencies import cythonize
File "C:\Program Files\Autodesk\Maya2014\Python\lib\site-packages\Cython\Build\Dependencies.py", line 59, in <module>
from ..Compiler.Main import Context, CompilationOptions, default_options
File "C:\Program Files\Autodesk\Maya2014\Python\lib\site-packages\Cython\Compiler\Main.py", line 28, in <module>
from .Scanning import PyrexScanner, FileSourceDescriptor
ImportError: DLL load failed: A dynamic link library (DLL) initialization routine failed.
--------------------------------------------------------------------
This is my simple hello world python script file:
def hello():
print "Hello World"
--------------------------------------------------------------------
This my setup.py file:
from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
setup(
cmdclass = {'build_ext': build_ext},
ext_modules = [Extension("helloworld", ["helloworld.py"])]
)
----------------------------------------------------------------------
Btw, i used pip to install Cython under C:\Program Files\Autodesk\Maya2014\Python\Lib\site-packages.
Does anyone face the same issue like me and have any solution about it?
Anyone can help?
Great thanks for you!!
I got a issue which beset me in the past few days about how to compiling pyd file using mayapy.exe.
I have tested on Windows10 with both maya2014 and maya2016 sp6, but got the same error like bellow:
"Runtime Error!
Program: C:\Program Files\Autodesk\Maya2014\bin\mayapy.exe
R6034
An application has made an attempt to load the C runtime library incorrectly.
Please contract the application's support team for more information."
E:\test\test>mayapy setup.py build_ext --inplace
Traceback (most recent call last):
File "setup.py", line 2, in <module>
from Cython.Build import cythonize
File "C:\Program Files\Autodesk\Maya2014\Python\lib\site-packages\Cython\Build\__init__.py", line 1, in <module>
from .Dependencies import cythonize
File "C:\Program Files\Autodesk\Maya2014\Python\lib\site-packages\Cython\Build\Dependencies.py", line 59, in <module>
from ..Compiler.Main import Context, CompilationOptions, default_options
File "C:\Program Files\Autodesk\Maya2014\Python\lib\site-packages\Cython\Compiler\Main.py", line 28, in <module>
from .Scanning import PyrexScanner, FileSourceDescriptor
ImportError: DLL load failed: A dynamic link library (DLL) initialization routine failed.
--------------------------------------------------------------------
This is my simple hello world python script file:
def hello():
print "Hello World"
--------------------------------------------------------------------
This my setup.py file:
from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
setup(
cmdclass = {'build_ext': build_ext},
ext_modules = [Extension("helloworld", ["helloworld.py"])]
)
----------------------------------------------------------------------
Btw, i used pip to install Cython under C:\Program Files\Autodesk\Maya2014\Python\Lib\site-packages.
Does anyone face the same issue like me and have any solution about it?
Anyone can help?
Great thanks for you!!
--
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+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/ece1c1e7-3729-4144-8a14-cbdab8d37368%40googlegroups.com.
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 python_inside_maya+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/ece1c1e7-3729-4144-8a14-cbdab8d37368%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.