This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: python -m inspect --details fails in nondecodable directory
Type: behavior Stage:
Components: Library (Lib) Versions: Python 3.6, Python 3.4, Python 3.5
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: Arfrever, serhiy.storchaka, yselivanov
Priority: normal Keywords:

Created on 2015-09-19 20:57 by serhiy.storchaka, last changed 2022-04-11 14:58 by admin.

Messages (1)
msg251116 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2015-09-19 20:57
$ pwd
$ ./python -m inspect --details unittest
Target: unittest
Traceback (most recent call last):
  File "/home/serhiy/py/cpy\udcffthon-3.5/Lib/", line 170, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/serhiy/py/cpy\udcffthon-3.5/Lib/", line 85, in _run_code
    exec(code, run_globals)
  File "/home/serhiy/py/cpy\udcffthon-3.5/Lib/", line 3050, in <module>
  File "/home/serhiy/py/cpy\udcffthon-3.5/Lib/", line 3030, in _main
    print('Origin: {}'.format(getsourcefile(module)))
UnicodeEncodeError: 'utf-8' codec can't encode character '\udcff' in position 27: surrogates not allowed
Date User Action Args
2022-04-11 14:58:21adminsetgithub: 69370
2015-09-21 12:03:02Arfreversetnosy: + Arfrever
2015-09-19 21:13:23serhiy.storchakalinkissue25181 dependencies
2015-09-19 20:57:40serhiy.storchakacreate