Message12866

Author jeff.allen
Recipients jeff.allen, pekka.klarck
Date 2019-12-21.19:48:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1576957708.54.0.916279969156.issue2820@roundup.psfhosted.org>
In-reply-to
Content
It now behaves (locally) like this (with one -v given):

>>> import sys
>>> sys.path[:0] = ["hyv\xe4"]
>>> import csv
org.python.import CONFIG Cannot decode path entry 'hyv\xe4'
org.python.import CONFIG Cannot decode path entry 'hyv\xe4'
org.python.import CONFIG import csv # precompiled from ...\dist\Lib\csv$py.class
org.python.import CONFIG import _csv # builtin org.python.modules._csv._csv
org.python.import CONFIG import cStringIO # builtin org.python.modules.cStringIO

And for a non-existent package:

>>> import zzz
org.python.import CONFIG Cannot decode path entry 'hyv\xe4'
org.python.import CONFIG Cannot decode path entry 'hyv\xe4'
org.python.import CONFIG Cannot decode path entry 'hyv\xe4'
org.python.import CONFIG Cannot decode path entry 'hyv\xe4'
org.python.import CONFIG import encodings.gbk # precompiled from C:\Users\Jeff\Documents\Eclipse\jython-trunk\dist\Lib\encodings\gbk$py.class
org.python.import CONFIG Cannot decode path entry 'hyv\xe4'
org.python.import CONFIG Cannot decode path entry 'hyv\xe4'
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named zzz

A couple of these are actually in the nested import of my console encoding, but it just shows how many times we use consult sys.path.
History
Date User Action Args
2019-12-21 19:48:28jeff.allensetmessageid: <1576957708.54.0.916279969156.issue2820@roundup.psfhosted.org>
2019-12-21 19:48:28jeff.allensetrecipients: + jeff.allen, pekka.klarck
2019-12-21 19:48:28jeff.allenlinkissue2820 messages
2019-12-21 19:48:28jeff.allencreate