Open Dok11 opened 3 years ago
Probably crashing here in PyTorch:
if sys.platform.startswith('darwin'):
# There is no particular minimum version we need for clang, so we're good here.
return True
try:
if sys.platform.startswith('linux'):
minimum_required_version = MINIMUM_GCC_VERSION
versionstr = subprocess.check_output([compiler, '-dumpfullversion', '-dumpversion'])
version = versionstr.decode().strip().split('.')
else:
minimum_required_version = MINIMUM_MSVC_VERSION
compiler_info = subprocess.check_output(compiler, stderr=subprocess.STDOUT)
match = re.search(r'(\d+)\.(\d+)\.(\d+)', compiler_info.decode().strip())
version = (0, 0, 0) if match is None else match.groups()
except Exception:
_, error, _ = sys.exc_info()
warnings.warn(f'Error checking compiler version for {compiler}: {error}')
return False
Could it be a locale thing? When you run MSVC (cl.exe) on the command line, does it print non-ASCII, non-UTF8 characters? That's what this "'utf-8' codec can't decode byte 0x8e in position 0: invalid start byte" error seems to suggest.
I don't have Windows to try this on. Seems like a bug in how PyTorch itself handles C++ extensions. That's where the error is coming from.
Try to set the encoding to utf8 before starting chcp 65001
. Works fine in Windows Terminal.
Probably crashing here in PyTorch:
if sys.platform.startswith('darwin'): # There is no particular minimum version we need for clang, so we're good here. return True try: if sys.platform.startswith('linux'): minimum_required_version = MINIMUM_GCC_VERSION versionstr = subprocess.check_output([compiler, '-dumpfullversion', '-dumpversion']) version = versionstr.decode().strip().split('.') else: minimum_required_version = MINIMUM_MSVC_VERSION compiler_info = subprocess.check_output(compiler, stderr=subprocess.STDOUT) match = re.search(r'(\d+)\.(\d+)\.(\d+)', compiler_info.decode().strip()) version = (0, 0, 0) if match is None else match.groups() except Exception: _, error, _ = sys.exc_info() warnings.warn(f'Error checking compiler version for {compiler}: {error}') return False
Could it be a locale thing? When you run MSVC (cl.exe) on the command line, does it print non-ASCII, non-UTF8 characters? That's what this "'utf-8' codec can't decode byte 0x8e in position 0: invalid start byte" error seems to suggest.
I don't have Windows to try this on. Seems like a bug in how PyTorch itself handles C++ extensions. That's where the error is coming from.
you can change the language pack in vs installer to remove special chars, it worked for me
Describe the bug
Saw these warnings but images generated successfull
Desktop (please complete the following information):