Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Executing setup.py build on Windows 11 throws a UnicodeDecodeError. #724

Open
1 of 2 tasks
briancabbott opened this issue Jan 5, 2025 · 0 comments
Open
1 of 2 tasks

Comments

@briancabbott
Copy link

System Info

:128: RuntimeWarning: 'torch.utils.collect_env' found in sys.modules after import of package 'torch.utils', but prior to execution of 'torch.utils.collect_env'; this may result in unpredictable behaviour
Collecting environment information...
PyTorch version: 2.5.1+cu118
Is debug build: False
CUDA used to build PyTorch: 11.8
ROCM used to build PyTorch: N/A

OS: Microsoft Windows 11 Home
GCC version: Could not collect
Clang version: Could not collect
CMake version: version 3.30.2
Libc version: N/A

Python version: 3.12.8 (tags/v3.12.8:2dc476b, Dec 3 2024, 19:30:04) [MSC v.1942 64 bit (AMD64)] (64-bit runtime)
Python platform: Windows-11-10.0.22631-SP0
Is CUDA available: True
CUDA runtime version: Could not collect
CUDA_MODULE_LOADING set to: LAZY
GPU models and configuration: GPU 0: NVIDIA GeForce RTX 3050 6GB Laptop GPU
Nvidia driver version: 561.00
cuDNN version: Could not collect
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True

CPU:
Architecture=9
CurrentClockSpeed=2300
DeviceID=CPU0
Family=1
L2CacheSize=18432
L2CacheSpeed=
Manufacturer=GenuineIntel
MaxClockSpeed=2500
Name=Intel(R) Core(TM) Ultra 9 185H
ProcessorType=3
Revision=

Versions of relevant libraries:
[pip3] numpy==2.2.1
[pip3] torch==2.5.1+cu118
[pip3] torchaudio==2.5.1+cu118
[pip3] torchvision==0.20.1+cu118
[conda] Could not collect

Information

  • The official example scripts
  • My own modified scripts

🐛 Describe the bug

When running python setup.py build, the following error is thrown:

Traceback (most recent call last):
File "C:\Users\brian\dev_space\Agentic Capital\llama-stack-orig\setup.py", line 29, in
long_description=open("README.md").read(),
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\brian\python\Lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeDecodeError: 'charmap' codec can't decode byte 0x8f in position 1451: character maps to

Error logs

PS C:\Users\brian\dev_space\Agentic Capital\llama-stack-orig> python setup.py build
Traceback (most recent call last):
File "C:\Users\brian\dev_space\Agentic Capital\llama-stack-orig\setup.py", line 29, in
long_description=open("README.md").read(),
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\brian\python\Lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeDecodeError: 'charmap' codec can't decode byte 0x8f in position 1451: character maps to

Expected behavior

Execute the command with the normal expected output, e.g.:

python setup.py build
running build
running build_py
copying llama_stack_init_.py -> build\lib\llama_stack
copying llama_stack\apis\resource.py -> build\lib\llama_stack\apis
copying llama_stack\apis\version.py -> build\lib\llama_stack\apis
copying llama_stack\apis_init_.py -> build\lib\llama_stack\apis

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants