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

Not working with aarch64 #52

Open
Myzel394 opened this issue Oct 31, 2023 · 1 comment
Open

Not working with aarch64 #52

Myzel394 opened this issue Oct 31, 2023 · 1 comment

Comments

@Myzel394
Copy link

I tried building the anki-sync-server on my Raspberry PI (architecture: aarch64) but failed to do so as anki==2.1.49 couldn't be found.

Manually following https://docs.ankiweb.net/sync-server.html worked fine but when I try to build and run a docker container with it it also fails.

Also, I'm a bit confused. What's the difference between this repo and https://github.com/ankicommunity/anki-sync-server?

@Toasterbirb
Copy link

I came across this same problem. I think the error is coming from pip:

~/git/anki-devops-services ~/git/anki-devops-services
Building Service: anki-sync-server.
--- Building Docker images.
Building anki_sync_server
Step 1/27 : FROM library/python:3.9-buster as builder
 ---> 6d2c69215e52
Step 2/27 : ARG ANKISYNCD_ROOT=/opt/ankisyncd
 ---> Running in 1e0917945f11
Removing intermediate container 1e0917945f11
 ---> 3f5a8f36d617
Step 3/27 : RUN mkdir -p ${ANKISYNCD_ROOT}
 ---> Running in 8c46e995a58b
Removing intermediate container 8c46e995a58b
 ---> 266de4c38127
Step 4/27 : WORKDIR ${ANKISYNCD_ROOT}
 ---> Running in cd7e8c1afe5c
Removing intermediate container cd7e8c1afe5c
 ---> e334dcab5cc6
Step 5/27 : COPY bin/download-release.sh ./bin/download-release.sh
 ---> 28a9e48cd3ef
Step 6/27 : ARG PYTHONUSERBASE=/opt/venv
 ---> Running in c408ceb843d4
Removing intermediate container c408ceb843d4
 ---> 44b6856c32ff
Step 7/27 : RUN sh ./bin/download-release.sh &&         pip3 install --upgrade pip &&     pip3 install --user -r ./release/requirements.txt
 ---> Running in fdebfc7cad76
Cloning into 'anki-sync-server'...
Requirement already satisfied: pip in /usr/local/lib/python3.9/site-packages (23.0.1)
Collecting pip
  Downloading pip-24.0-py3-none-any.whl (2.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/2.1 MB 3.6 MB/s eta 0:00:00
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 23.0.1
    Uninstalling pip-23.0.1:
      Successfully uninstalled pip-23.0.1
Successfully installed pip-24.0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
Ignoring orjson: markers 'python_version >= "3.8" and python_version < "4.0" and platform_machine == "x86_64"' don't match your environment
ERROR: Could not find a version that satisfies the requirement anki==2.1.49 (from versions: 2.1.24+359b9f5c, 2.1.25, 2.1.26, 2.1.28, 2.1.29, 2.1.30, 2.1.31, 2.1.32, 2.1.33, 2.1.34, 2.1.35)
ERROR: No matching distribution found for anki==2.1.49
ERROR: Service 'anki_sync_server' failed to build: The command '/bin/sh -c sh ./bin/download-release.sh &&      pip3 install --upgrade pip &&     pip3 install --user -r ./release/requirements.txt' returned a non-zero code: 1
make: *** [Makefile:28: build-devops] Error 1

I tried to build the image in Debian GNU/Linux 11 (bullseye) aarch64. Tested the main branch aswell and that seemed to have the same issue.

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

No branches or pull requests

2 participants