Python GUI - error when import maya.standalone

Hello everybody,

I am new in Python for Maya and I started with this tutorial: "Digital Tutors Python Scripting in Maya"

This tutorial teaches me to work with Python GUI, to write scripts for Maya without open Maya.
It tells me to add these variables in "Environment variables":

System Properties -> Advanced -> Environment Variables -> System variables -> New
Variable name: PYTHONPATH
Variable value: C:\Program Files\Autodesk\Maya2014\Python\Lib\site-packages

Variable name: MAYA_LOCATION
Variable value: C:\Program Files\Autodesk\Maya2014

in order to use Python GUI with Maya.
I added them but I still get this error:

1
2
3
4
5
6
7
8

I try to write a small script, just for using this method:

1
2
3
4
5
6

import maya.standalone
maya.standalone.initialize()
import maya.cmds as mc
mc.polyCube()
mc.file(rename="C:/cube.ma")
mc. file(save=True)

If you have any idea or suggestion please let me know.

All the best,
Remus

 

Traceback (most recent call last):

File "D:\Python\My scripts\Python in Maya\guitest.py", line 1, in

import maya.standalone

ImportError: DLL load failed: The specified module could not be found.

 

I searched on Internet and finally I found the problem.
Here is something relation to this: http://tech-artists.org/forum/showthread.php?1391-Maya-Python-Can-t-get-Maya-to-initialize-through-external-interpreter-S

I added also this path:

Variable name: PATH
Variable value: C:\Program Files\Autodesk\Maya2014\bin

This tutorial doesn't mention also about this path.