[Python-Dev] using help function in Py3k
s|s
supreet.sethi at gmail.com
Tue May 5 12:41:22 CEST 2009
Hello,
I Ran Python 3.0 for the first time. I used help() function and wrote
"modules hash". It issues an error.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/ss/eproj/xapian/INST//lib/python3.0/site.py", line 427,
in __call__
return pydoc.help(*args, **kwds)
File "/home/ss/eproj/xapian/INST//lib/python3.0/pydoc.py", line
1675, in __call__
self.interact()
File "/home/ss/eproj/xapian/INST//lib/python3.0/pydoc.py", line
1693, in interact
self.help(request)
File "/home/ss/eproj/xapian/INST//lib/python3.0/pydoc.py", line 1711, in help
self.listmodules(request.split()[1])
File "/home/ss/eproj/xapian/INST//lib/python3.0/pydoc.py", line
1799, in listmodules
apropos(key)
File "/home/ss/eproj/xapian/INST//lib/python3.0/pydoc.py", line
1913, in apropos
ModuleScanner().run(callback, key, onerror=onerror)
File "/home/ss/eproj/xapian/INST//lib/python3.0/pydoc.py", line 1875, in run
source = loader.get_source(modname)
File "/home/ss/eproj/xapian/INST/lib/python3.0/pkgutil.py", line
293, in get_source
self.source = self.file.read()
File "/home/ss/eproj/xapian/INST//lib/python3.0/io.py", line 1720, in read
decoder = self._decoder or self._get_decoder()
File "/home/ss/eproj/xapian/INST//lib/python3.0/io.py", line 1506,
in _get_decoder
make_decoder = codecs.getincrementaldecoder(self._encoding)
File "/home/ss/eproj/xapian/INST//lib/python3.0/codecs.py", line
960, in getincrementaldecoder
decoder = lookup(encoding).incrementaldecoder
LookupError: unknown encoding: uft-8
The reason for errors is test/ directory which has got tests for
python parser are installed in Lib directory. I propose that these
files should be installed by default in some other directory.
Preferably in /share or /share/doc part of the tree.
regards
--
~preet~
More information about the Python-Dev
mailing list