Skip to content
This repository has been archived by the owner on Aug 10, 2023. It is now read-only.

docker-compose up failing due to: error: can't find Rust compiler #572

Closed
Zero6992 opened this issue Feb 6, 2023 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@Zero6992
Copy link
Contributor

Zero6992 commented Feb 6, 2023

docker-compose up failing on macOS M1 chip after Version 1.0.9, working fine on windows, but I think there are some issue while using tiktoken in M1 chip

env:
MacOS Ventura v13.0 Apple chip M1
Docker version 20.10.11
Python version 3.10.9
pip version 23.0

#6 13.86   Created wheel for openai: filename=openai-0.26.4-py3-none-any.whl size=67722 sha256=9faa25eeea411b0500be99313123b4979111fe294a7cfafca634e3720b4689f9
#6 13.86   Stored in directory: /root/.cache/pip/wheels/a4/69/9c/c310568b82006e42a8c2fb8eadb34c230e63e0c45dda923ffe
#6 13.87   Building wheel for tiktoken (pyproject.toml): started
#6 13.97   Building wheel for tiktoken (pyproject.toml): finished with status 'error'
#6 13.98   error: subprocess-exited-with-error
#6 13.98   
#6 13.98   × Building wheel for tiktoken (pyproject.toml) did not run successfully.
#6 13.98   │ exit code: 1
#6 13.98   ╰─> [37 lines of output]
#6 13.98       running bdist_wheel
#6 13.98       running build
#6 13.98       running build_py
#6 13.98       creating build
#6 13.98       creating build/lib.linux-aarch64-cpython-310
#6 13.98       creating build/lib.linux-aarch64-cpython-310/tiktoken
#6 13.98       copying tiktoken/registry.py -> build/lib.linux-aarch64-cpython-310/tiktoken
#6 13.98       copying tiktoken/__init__.py -> build/lib.linux-aarch64-cpython-310/tiktoken
#6 13.98       copying tiktoken/load.py -> build/lib.linux-aarch64-cpython-310/tiktoken
#6 13.98       copying tiktoken/core.py -> build/lib.linux-aarch64-cpython-310/tiktoken
#6 13.98       copying tiktoken/model.py -> build/lib.linux-aarch64-cpython-310/tiktoken
#6 13.98       creating build/lib.linux-aarch64-cpython-310/tiktoken_ext
#6 13.98       copying tiktoken_ext/openai_public.py -> build/lib.linux-aarch64-cpython-310/tiktoken_ext
#6 13.98       running egg_info
#6 13.98       writing tiktoken.egg-info/PKG-INFO
#6 13.98       writing dependency_links to tiktoken.egg-info/dependency_links.txt
#6 13.98       writing requirements to tiktoken.egg-info/requires.txt
#6 13.98       writing top-level names to tiktoken.egg-info/top_level.txt
#6 13.98       reading manifest file 'tiktoken.egg-info/SOURCES.txt'
#6 13.98       reading manifest template 'MANIFEST.in'
#6 13.98       warning: no files found matching 'Makefile'
#6 13.98       adding license file 'LICENSE'
#6 13.98       writing manifest file 'tiktoken.egg-info/SOURCES.txt'
#6 13.98       copying tiktoken/py.typed -> build/lib.linux-aarch64-cpython-310/tiktoken
#6 13.98       running build_ext
#6 13.98       running build_rust
#6 13.98       error: can't find Rust compiler
#6 13.98       
#6 13.98       If you are using an outdated pip version, it is possible a prebuilt wheel is available for this package but pip is not able to install from it. Installing from the wheel would avoid the need for a Rust compiler.
#6 13.98       
#6 13.98       To update pip, run:
#6 13.98       
#6 13.98           pip install --upgrade pip
#6 13.98       
#6 13.98       and then retry package installation.
#6 13.98       
#6 13.98       If you did intend to build this package from source, try installing a Rust compiler from your system package manager and ensure it is on the PATH during installation. Alternatively, rustup (available at https://rustup.rs) is the recommended way to download and update the Rust compiler toolchain.
#6 13.98       [end of output]
#6 13.98   
#6 13.98   note: This error originates from a subprocess, and is likely not a problem with pip.
#6 13.98   ERROR: Failed building wheel for tiktoken
#6 13.98 Successfully built openai
#6 13.98 ERROR: Could not build wheels for tiktoken, which is required to install pyproject.toml-based projects
#6 13.98 Failed to build tiktoken
@Zero6992 Zero6992 added the bug Something isn't working label Feb 6, 2023
@acheong08
Copy link
Owner

You didn't install rust.
sudo apt install rustc

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants