ECToo / pymel

Automatically exported from code.google.com/p/pymel
0 stars 0 forks source link

PyMel wont import if system uses Cygwin and HOME environment variable #235

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Describe the problem.

When trying to import pymel (using "from pymel.core import *") and running 
cygwin with the HOME environment variable set, pymel spits out an error looking 
for C:\\cygwin\\home\\username\\pymel.log

HOME environment variable is set as HOME=c:\cygwin\home\username

What Version of Maya are you using?

Maya 2011 x64

On what operating system? (be as specific as possible and include service
packs, 64bit vs 32bit, etc)

Windows 7 x64

What Version of PyMEL are you using?

PyMel 1.0.2

What is the expected output? What do you see instead?

Expected:

# pymel.core : Updating pymel with pre-loaded plugins: Fur, VectorRender, 
animImportExport, studioImport, mayaHIK, Mayatomr, stlImport, decomposeMatrix, 
vrml2Export, fbxmaya, objExport # 

Seen:

# Error: [Errno 2] No such file or directory: 
'C:\\cygwin\\home\\username\\pymel.log'
# Traceback (most recent call last):
#   File "<maya console>", line 1, in <module>
#   File "C:\Program 
Files\Autodesk\Maya2011\Python\lib\site-packages\pymel-1.0.0-py2.6.egg\pymel\cor
e\__init__.py", line 7, in <module>
#     import pymel.internal.startup as _startup
#   File "C:\Program 
Files\Autodesk\Maya2011\Python\lib\site-packages\pymel-1.0.0-py2.6.egg\pymel\int
ernal\__init__.py", line 4, in <module>
#     from plogging import getLogger
#   File "C:\Program 
Files\Autodesk\Maya2011\Python\lib\site-packages\pymel-1.0.0-py2.6.egg\pymel\int
ernal\plogging.py", line 167, in <module>
#     pymelLogFileConfig(getLogConfigFile())
#   File "C:\Program 
Files\Autodesk\Maya2011\Python\lib\site-packages\pymel-1.0.0-py2.6.egg\pymel\int
ernal\plogging.py", line 123, in pymelLogFileConfig
#     handlers = logging.config._install_handlers(cp, formatters)
#   File "C:\Program 
Files\Autodesk\Maya2011\bin\python26.zip\logging\config.py", line 159, in 
_install_handlers
#     h = klass(*args)
#   File "C:\Program 
Files\Autodesk\Maya2011\bin\python26.zip\logging\__init__.py", line 819, in 
__init__
#     StreamHandler.__init__(self, self._open())
#   File "C:\Program 
Files\Autodesk\Maya2011\bin\python26.zip\logging\__init__.py", line 838, in 
_open
#     stream = open(self.baseFilename, self.mode)
# IOError: [Errno 2] No such file or directory: 
'C:\\cygwin\\home\\username\\pymel.log' # 

If possible, provide a few lines of code to reproduce the problem. It helps
us if your code will reproduce the problem from a new scene.

from pymel.core import *

Does maya.cmds exhibit the same problem?

No

Please provide any additional information below.

Original issue reported on code.google.com by ArrantSq...@gmail.com on 2 Mar 2011 at 4:11