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

Provide armv7 wheels (for RaspberryPi) #86

Closed
AlejandroIglesiasCalvo opened this issue Mar 30, 2023 · 2 comments
Closed

Provide armv7 wheels (for RaspberryPi) #86

AlejandroIglesiasCalvo opened this issue Mar 30, 2023 · 2 comments

Comments

@AlejandroIglesiasCalvo
Copy link

Hello, I'm working on this Bot on a Raspberry Pi. I use Github Actions to compile different versions, but the compilation for arm v7 is of greater interest to me. The problem is that the tiktoken library doesn't have wheels for armv7. I would like to know if someone has managed to patch this or avoid the problem. Specifically, I managed to avoid it at the cost of losing all usage calculations. That is, without using tiktoken. The error that generates is:

n3d1117/chatgpt-telegram-bot#10 415.8 Building wheels for collected packages: tiktoken, regex, aiohttp, frozenlist, multidict, yarl
n3d1117/chatgpt-telegram-bot#10 415.8 Building wheel for tiktoken (pyproject.toml): started
n3d1117/chatgpt-telegram-bot#10 424.5 Building wheel for tiktoken (pyproject.toml): finished with status 'error'
n3d1117/chatgpt-telegram-bot#10 424.6 error: subprocess-exited-with-error
n3d1117/chatgpt-telegram-bot#10 424.6
n3d1117/chatgpt-telegram-bot#10 424.6 × Building wheel for tiktoken (pyproject.toml) did not run successfully.
n3d1117/chatgpt-telegram-bot#10 424.6 │ exit code: 1
n3d1117/chatgpt-telegram-bot#10 424.6 ╰─> [39 lines of output]
n3d1117/chatgpt-telegram-bot#10 424.6 running bdist_wheel
n3d1117/chatgpt-telegram-bot#10 424.6 running build
n3d1117/chatgpt-telegram-bot#10 424.6 running build_py
n3d1117/chatgpt-telegram-bot#10 424.6 creating build
n3d1117/chatgpt-telegram-bot#10 424.6 creating build/lib.linux-armv7l-cpython-39
n3d1117/chatgpt-telegram-bot#10 424.6 creating build/lib.linux-armv7l-cpython-39/tiktoken
n3d1117/chatgpt-telegram-bot#10 424.6 copying tiktoken/load.py -> build/lib.linux-armv7l-cpython-39/tiktoken
n3d1117/chatgpt-telegram-bot#10 424.6 copying tiktoken/init.py -> build/lib.linux-armv7l-cpython-39/tiktoken
n3d1117/chatgpt-telegram-bot#10 424.6 copying tiktoken/core.py -> build/lib.linux-armv7l-cpython-39/tiktoken
n3d1117/chatgpt-telegram-bot#10 424.6 copying tiktoken/registry.py -> build/lib.linux-armv7l-cpython-39/tiktoken
n3d1117/chatgpt-telegram-bot#10 424.6 copying tiktoken/model.py -> build/lib.linux-armv7l-cpython-39/tiktoken
n3d1117/chatgpt-telegram-bot#10 424.6 creating build/lib.linux-armv7l-cpython-39/tiktoken_ext
n3d1117/chatgpt-telegram-bot#10 424.6 copying tiktoken_ext/openai_public.py -> build/lib.linux-armv7l-cpython-39/tiktoken_ext
n3d1117/chatgpt-telegram-bot#10 424.6 running egg_info
n3d1117/chatgpt-telegram-bot#10 424.6 writing tiktoken.egg-info/PKG-INFO
n3d1117/chatgpt-telegram-bot#10 424.6 writing dependency_links to tiktoken.egg-info/dependency_links.txt
n3d1117/chatgpt-telegram-bot#10 424.6 writing requirements to tiktoken.egg-info/requires.txt
n3d1117/chatgpt-telegram-bot#10 424.6 writing top-level names to tiktoken.egg-info/top_level.txt
n3d1117/chatgpt-telegram-bot#10 424.6 reading manifest file 'tiktoken.egg-info/SOURCES.txt'
n3d1117/chatgpt-telegram-bot#10 424.6 reading manifest template 'MANIFEST.in'
n3d1117/chatgpt-telegram-bot#10 424.6 warning: no files found matching 'Makefile'
n3d1117/chatgpt-telegram-bot#10 424.6 adding license file 'LICENSE'
n3d1117/chatgpt-telegram-bot#10 424.6 writing manifest file 'tiktoken.egg-info/SOURCES.txt'
n3d1117/chatgpt-telegram-bot#10 424.6 copying tiktoken/py.typed -> build/lib.linux-armv7l-cpython-39/tiktoken
n3d1117/chatgpt-telegram-bot#10 424.6 warning: build_py: byte-compiling is disabled, skipping.
n3d1117/chatgpt-telegram-bot#10 424.6
n3d1117/chatgpt-telegram-bot#10 424.6 running build_ext
n3d1117/chatgpt-telegram-bot#10 424.6 running build_rust
n3d1117/chatgpt-telegram-bot#10 424.6 error: can't find Rust compiler
n3d1117/chatgpt-telegram-bot#10 424.6
n3d1117/chatgpt-telegram-bot#10 424.6 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.
n3d1117/chatgpt-telegram-bot#10 424.6
n3d1117/chatgpt-telegram-bot#10 424.6 To update pip, run:
n3d1117/chatgpt-telegram-bot#10 424.6
n3d1117/chatgpt-telegram-bot#10 424.6 pip install --upgrade pip
n3d1117/chatgpt-telegram-bot#10 424.6
n3d1117/chatgpt-telegram-bot#10 424.6 and then retry package installation.
n3d1117/chatgpt-telegram-bot#10 424.6
n3d1117/chatgpt-telegram-bot#10 424.6 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.
n3d1117/chatgpt-telegram-bot#10 424.6 [end of output]
n3d1117/chatgpt-telegram-bot#10 424.6
n3d1117/chatgpt-telegram-bot#10 424.6 note: This error originates from a subprocess, and is likely not a problem with pip.
n3d1117/chatgpt-telegram-bot#10 424.7 ERROR: Failed building wheel for tiktoken

Mi DockerFile:
FROM python:3.9-alpine

ENV PYTHONFAULTHANDLER=1
PYTHONUNBUFFERED=1
PYTHONDONTWRITEBYTECODE=1
PIP_DISABLE_PIP_VERSION_CHECK=on

RUN apk --no-cache add ffmpeg

WORKDIR /app
COPY . .
RUN pip install -r requirements.txt --no-cache-dir

CMD ["python", "bot/main.py"]

@hauntsaninja hauntsaninja changed the title Tiktoken on RaspberryPi Provide armv7 wheels (for RaspberryPi) Apr 5, 2023
@hauntsaninja
Copy link
Collaborator

Thanks, I'm not currently planning on providing armv7 wheels. I've linked to this issue in the FAQ #98 ; if this proves to be a popular request, I'll reopen

@hauntsaninja hauntsaninja closed this as not planned Won't fix, can't repro, duplicate, stale Apr 5, 2023
@jwellner
Copy link

Also looking for the armv7 wheels. Would be great if they could be added :)

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

No branches or pull requests

3 participants