You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When try to install package from repository, failed to read a file while installing with pip install -e .
In my guess, error has on following lines:
with open(cwd.joinpath('torchscan', 'version.py'), 'w') as f:
f.write(f"__version__ = '{version}'\n")
with open('README.md', 'r') as f:
readme = f.read()
The default UTF-8 encoding of Python 3 is belong users system, and in windows, it can not be always 'utf-8' encoding.
Code snippet to reproduce the bug
setup.py from this repository
Error traceback
$ pip install -e .
Obtaining file:///C:/Users/joona/Documents/2022/GAN/torch-scan
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [7 lines of output]
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "C:\Users\joona\Documents\2022\GAN\torch-scan\setup.py", line 38, in <module>
readme = f.read()
UnicodeDecodeError: 'cp949' codec can't decode byte 0xe2 in position 1797: illegal multibyte sequence
Building wheel torchscan-0.1.2.dev0+4d4fcbf
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
Python version: 3.8.3
Is CUDA available: No
CUDA runtime version: No CUDA
GPU models and configuration: No CUDA
Nvidia driver version: No CUDA
cuDNN version: No CUDA
The text was updated successfully, but these errors were encountered:
Bug description
When try to install package from repository, failed to read a file while installing with
pip install -e .
In my guess, error has on following lines:
The default UTF-8 encoding of Python 3 is belong users system, and in windows, it can not be always 'utf-8' encoding.
Code snippet to reproduce the bug
setup.py
from this repositoryError traceback
Environment
TorchScan version: 0.1.2.dev0+4d4fcbf
PyTorch version: 1.11.0+cpu
OS: Microsoft Windows 10 Pro
Python version: 3.8.3
Is CUDA available: No
CUDA runtime version: No CUDA
GPU models and configuration: No CUDA
Nvidia driver version: No CUDA
cuDNN version: No CUDA
The text was updated successfully, but these errors were encountered: