Hi all
i think the problem is that you are runing mayapy with the nuke python
environment, so you can try to add the maya library path in your script before
import maya.standalone
import syssys.path.append('C:\\Program
Files\\Autodesk\\Maya2012\\Python\\lib\\site-packages')import maya.standalone
Larry
Date: Sat, 21 Apr 2012 07:12:47 +0200
From: [email protected]
To: [email protected]
Subject: [Nuke-python] maya.standalone error
Hi all
I'm trynig to run scrip in mayapy from nuke 6.3v4 but it stuck on import
maya.standalone line, it works fine in Python IDLE :/
when i try this in nuke
import subprocess as subp
command = ["C:\\Program Files\\Autodesk\\Maya2012\\bin\\mayapy.exe",
"D:\\Test\\mayaTest.py"]
maya = subp.Popen(command, stdin=subp.PIPE, stdout=subp.PIPE, stderr=subp.PIPE)
c = maya.communicate()
I get Error
# Result:
('', 'Traceback (most recent call last):\r\n File "D:\\Test\\mayaTest.py",
line 2, in <module>\r\n import maya.standalone as std\r\nImportError: DLL
load failed: The specified procedure could not be found.\r\n')
is this even possible in nuke?
Thanks
Andrija
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python