Fredrik Lundh wrote: > Luis Morales wrote: > > >>But now I get this error everytime I run a script and I have no idea. It can >>be a simple print 'hello' that it wont work >> >>This is the error I get >> >>'import site' failed; use -v for traceback >> >>Traceback (most recent call last): >> >> File "D:\Archivos de programa\ActiveState Komodo >>3.5\lib\support\dbgp\bin\pydbgp.py", line 61, in ? >> >> if os.environ.has_key("PYDBGP_PATH"): >> >>AttributeError: 'module' object has no attribute 'environ' > > > have you perhaps added a file named "os.py" to your project ?
If not, then run your program with python -v progname.py like the error message tels you. If that doesn't give you enough information to debug the problem, post the output back to this list for further assistance. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC/Ltd http://www.holdenweb.com Skype: holdenweb http://holdenweb.blogspot.com Recent Ramblings http://del.icio.us/steve.holden -- http://mail.python.org/mailman/listinfo/python-list