With Maya 6.0's API, there is a problem with it initializing itself when it tries to find the Maya directory. They have this documented on their website, and suggest this solution:
They say to create an environment variable with the path name, which does not work for me. If anybody else has worked with the API and has fixed this, an explanation as to how you fixed it would be appreciated.
Thanks in advance