anche a me presenta questo tipo di errore, qualcuno ha risolto?
allego l'errore qui sotto:
encoding = 'uft8'
def search_function(encoding):
# Cache lookup
entry = _cache.get(encoding, _unknown)
if entry is not _unknown:
return entry
# Import the module:
#
# First try to find an alias for the normalized encoding
# name and lookup the module using the aliased name, then try to
# lookup the module using the standard import scheme, i.e. first
# try in the encodings package, then at top-level.
#
norm_encoding = normalize_encoding(encoding)
aliased_encoding = _aliases.get(norm_encoding) or \
_aliases.get(norm_encoding.replace('.', '_'))
if aliased_encoding is not None:
modnames = [aliased_encoding,
norm_encoding]
else:
modnames = [norm_encoding]
for modname in modnames:
if not modname or '.' in modname:
continue
try:
# Import is absolute to prevent the possibly malicious import of a
# module with side-effects that is not in the 'encodings' package.
> mod = __import__('encodings.' + modname, fromlist=_import_tail,
level=0)
E TypeError: _check_import() got an unexpected keyword argument 'fromlist'
..\..\anaconda3\lib\encodings\__init__.py:98: TypeError