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

Apple Silicon support #50

Open
r4hx opened this issue Dec 17, 2021 · 1 comment
Open

Apple Silicon support #50

r4hx opened this issue Dec 17, 2021 · 1 comment

Comments

@r4hx
Copy link

r4hx commented Dec 17, 2021

Hi. I want to use this morph analyze for my project, but i get some error.

Python 3.7.3 (default, Jun 19 2019, 01:54:03) 
[GCC 6.3.0 20170516] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from pymystem3 import Mystem
>>> m = Mystem(
... )
Installing mystem to /root/.local/bin/mystem from http://download.cdn.yandex.net/mystem/mystem-3.1-linux-64bit.tar.gz
>>> text = "Красивая"
>>> lemma = m.lemmatize(text)
qemu-x86_64: Could not open '/lib64/ld-linux-x86-64.so.2': No such file or directory

Can this be fixed?

My enviroment:
macbook air m1
pymystem3 installed from github
python 3.7 in docker container

Thanks for you attention.

@r4hx r4hx changed the title Apple silicon support Apple Silicon support Dec 17, 2021
@x0wllaar
Copy link
Contributor

x0wllaar commented Aug 3, 2022

Are you on Linux/Docker on Apple Silicon? Anyway, this has to do with the fact the mystem is only compiled for x86. Your distro seems to try and run it via user-mode qemu to emulate x86 on ARM, but fails to find libraries to do so.

Here are pointers that may be helpful https://stackoverflow.com/questions/71040681/qemu-x86-64-could-not-open-lib64-ld-linux-x86-64-so-2-no-such-file-or-direc

To quote:

However I found the solution (well, a solution) to my situation was exactly the opposite of the solution to the OP's, and that was to add --platform=linux/amd64 to the FROM line of the docker file.

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