zip - os.path.exist(path) error coming on starting any python program -


i don't understand why getting recursion depth error in following lines

source = zipfile.zipfile( "e:\\zip files\\80348.zip' , 'r' ) source.extractall() 

the file exists , able open it. traceback

traceback (most recent call last): file "<interactive input>", line 1, in <module> file "c:\python26\lib\zipfile.py", line 940, in extractall  self.extract(zipinfo, path, pwd) file "c:\python26\lib\zipfile.py", line 928, in extract  return self._extract_member(member, path, pwd) file "c:\python26\lib\zipfile.py", line 961, in _extract_member  if upperdirs , not os.path.exists(upperdirs): file "c:\python26\lib\genericpath.py", line 18, in exists  st = os.path.exists(path) file "c:\python26\lib\genericpath.py", line 18, in exists  st = os.path.exists(path) 

could tell going wrong here ......

edit :-

hey , found out this not error coming zipfile.... run other python program same error....

when type python on command line error

exception runtimeerror: 'maximum recursion depth exceeded in __subclasscheck__' in <type 'exceptions.runtimeerror'> ignored exception runtimeerror: 'maximum recursion depth exceeded while calling python object' in <type 'exceptions.runtimeerror'> ignored 'import site' failed; use -v traceback

i don't think error related zipfile because saw link.... import site error

i tried -v , got following traceback

# installing zipimport hook import zipimport # builtin # installed zipimport hook # c:\python26\lib\site.pyc matches c:\python26\lib\site.py import site # precompiled c:\python26\lib\site.pyc # c:\python26\lib\os.pyc matches c:\python26\lib\os.py import os # precompiled c:\python26\lib\os.pyc import errno # builtin import nt # builtin # c:\python26\lib\ntpath.pyc matches c:\python26\lib\ntpath.py import ntpath # precompiled c:\python26\lib\ntpath.pyc # c:\python26\lib\stat.pyc matches c:\python26\lib\stat.py import stat # precompiled c:\python26\lib\stat.pyc # c:\python26\lib\genericpath.pyc matches c:\python26\lib\genericpath.py import genericpath # precompiled c:\python26\lib\genericpath.pyc # c:\python26\lib\warnings.pyc matches c:\python26\lib\warnings.py import warnings # precompiled c:\python26\lib\warnings.pyc # c:\python26\lib\linecache.pyc matches c:\python26\lib\linecache.py import linecache # precompiled c:\python26\lib\linecache.pyc # c:\python26\lib\types.pyc matches c:\python26\lib\types.py import types # precompiled c:\python26\lib\types.pyc # c:\python26\lib\userdict.pyc matches c:\python26\lib\userdict.py import userdict # precompiled c:\python26\lib\userdict.pyc # c:\python26\lib\_abcoll.pyc matches c:\python26\lib\_abcoll.py import _abcoll # precompiled c:\python26\lib\_abcoll.pyc # c:\python26\lib\abc.pyc matches c:\python26\lib\abc.py import abc # precompiled c:\python26\lib\abc.pyc # c:\python26\lib\copy_reg.pyc matches c:\python26\lib\copy_reg.py import copy_reg # precompiled c:\python26\lib\copy_reg.pyc exception runtimeerror: 'maximum recursion depth exceeded in __subclasscheck__' in <type 'exceptions.runtimeerror'> ignored exception runtimeerror: 'maximum recursion depth exceeded while calling python object' in <type 'exceptions.runtimeerror'> ignored 'import site' failed; traceback: traceback (most recent call last): file "c:\python26\lib\site.py", line 513, in <module> main() file "c:\python26\lib\site.py", line 496, in main known_paths = addsitepackages(known_paths) file "c:\python26\lib\site.py", line 288, in addsitepackages addsitedir(sitedir, known_paths) file "c:\python26\lib\site.py", line 185, in addsitedir addpackage(sitedir, name, known_paths) file "c:\python26\lib\site.py", line 159, in addpackage if not dircase in known_paths , os.path.exists(dir): file "c:\python26\lib\genericpath.py", line 18, in exists  st = os.path.exists(path) 

what should ... has faced same problem ?


Comments