maya2009 to .egg

I have been working without issus exporting .egg files from maya 2009
but for some reason I cannot get data to export even if I create a new model like a box and do a test export, no .egg is created and pview displays nothing. In my script editor Im getting a few errors
any ideas?

Initializing Maya.
Invalid Python Environment: Python is unable to find Maya’s Python modules
Python Evironment:
PYTHONHOME not set!
Python cannot find site module!
Python cannot find sys module!
Invalid Python Environment: Python is unable to find Maya’s Python modules
Python Evironment:
PYTHONHOME not set!
Python cannot find site module!
Python cannot find sys module!
Invalid Python Environment: Python is unable to find Maya’s Python modules
Python Evironment:
PYTHONHOME not set!
Python cannot find site module!
Search path (sys.path):
C:\Program Files\Autodesk\Maya2009\scripts\muscle
C:\Program Files\Autodesk\Maya2009\Python\lib\site-packages\maya
C:\Panda3D-1.6.2\bin\python25.zip

C:\Panda3D-1.6.2\bin

‘import site’ failed; use -v for traceback
ImportError: No module named maya.app.python
ImportError: No module named site
ImportError: No module named maya.app.python
ImportError: No module named site
ImportError: No module named maya
ImportError: No module named maya.cmds
ImportError: No module named maya.utils
ImportError: No module named maya.mel
ImportError: No module named maya.app
ImportError: No module named site
ImportError: No module named maya.app.startup.batch

Finished exporting (.mb -> .egg), unit : cm

Starting pview…

There are 4 environment variables that need to be set correctly for the exporter (e.g., maya2egg2009.exe) to work: PATH (must have the bin directory of the Maya installation prepended so that it is listed first), MAYA_LOCATION, PYTHONPATH, and PYTHONHOME. If any of these are off, then you will get the error report as you mentioned. For full context, as well as the solution, see:

discourse.panda3d.org/viewtopic.php?t=3842

At least under Windows XP: PYTHONPATH needs to mention both the zip file and site-packages, as in the following dump of the 4 environment variables set by maya2egg2009.exe. An update for WIN32 for mayaWrapper.cxx that correctly sets PYTHONHOME and PYTHONPATH (mayaWrapper.cxx is used in building maya2egg2009.exe) has just been added to the Panda3D SourceForge repository.

Example of the 4 environment variables:

MAYA_LOCATION=C:\Program Files\Autodesk\Maya2009

PYTHONHOME=C:\Program Files\Autodesk\Maya2009\Python

PYTHONPATH=C:\Program Files\Autodesk\Maya2009\bin\python25.zip;C:\Program Files\Autodesk\Maya2009\Python\lib\site-packages

PATH=C:\Program Files\Autodesk\Maya2009\bin;C:\WINDOWS\System32;C:\WINDOWS; (and lots of other directories; the bin directory within Maya2009 is prepended first to the PATH environment variable)