Package: spyder Version: 1.1.1-1 Severity: normal --- Please enter the report below this line. ---
Hi, when opening an external shell (python or ipython), I get the error message "'import sitecustomize' failed" and on trying to perform an autocompletion with <tab>, I get the error message: File "/usr/lib/pymodules/python2.6/spyderlib/widgets/shell.py", line 296, in keyPressEvent self.postprocess_keyevent(event) File "/usr/lib/pymodules/python2.6/spyderlib/widgets/shell.py", line 787, in postprocess_keyevent ShellBaseWidget.postprocess_keyevent(self, event) File "/usr/lib/pymodules/python2.6/spyderlib/widgets/shell.py", line 352, in postprocess_keyevent self._key_tab() File "/usr/lib/pymodules/python2.6/spyderlib/widgets/shell.py", line 827, in _key_tab self.show_code_completion() File "/usr/lib/pymodules/python2.6/spyderlib/widgets/shell.py", line 979, in show_code_completion b_k_g = dir(__builtin__)+self.get_globals_keys()+keyword.kwlist TypeError: can only concatenate list (not "NoneType") to list In the file '/usr/share/pyshared/spyderlib/widgets/externalshell/sitecustomize.py' I commented out the lines 4-12: """ try: import locale, win32console, pywintypes _t, _cp = locale.getdefaultlocale('LANG') _cp = int(_cp[2:]) win32console.SetConsoleCP(_cp) win32console.SetConsoleOutputCP(_cp) except (ImportError, ValueError, TypeError, pywintypes.error): # Pywin32 is not installed or Code page number in locale is not valid pass """ which made the problem go away. It seems like that pywintypes.error raises a NameError exception. Cheers, dietrich --- System information. --- Architecture: amd64 Kernel: Linux 2.6.34-1-amd64 Debian Release: squeeze/sid 500 unstable ftp.debian-multimedia.org 500 unstable ftp.de.debian.org 500 testing ftp.de.debian.org 1 experimental ftp.de.debian.org --- Package information. --- Depends (Version) | Installed ==================================-+-============ python (<< 2.7) | 2.6.5-5 python (>= 2.6) | 2.6.5-5 python-support (>= 0.90.0) | 1.0.9 python-qscintilla2 | 2.4.3-1 python-numpy | 1:1.3.0-3+b2 pyflakes | 0.4.0-1 libjs-jquery | 1.4.2-2 Recommends (Version) | Installed ===========================-+-=========== python-scipy | 0.7.2-2 Package's Suggests field is empty. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org