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

Trouble Running Faber Demo On Apple Silicon #1689

Closed
drewcapener opened this issue Mar 24, 2022 · 14 comments
Closed

Trouble Running Faber Demo On Apple Silicon #1689

drewcapener opened this issue Mar 24, 2022 · 14 comments

Comments

@drewcapener
Copy link

drewcapener commented Mar 24, 2022

Hey, I am an Aries newbie, and I am just getting familiar with some of the projects. I wanted to run the Alice/Faber Demo according to the instructions provided under the "Running in Docker" section. I was able to successfully follow the instructions up until ./run_demo faber where I get the following error:

Faber | Operation not permitted (src/thread.cpp:231)
Faber | qemu: uncaught target signal 6 (Aborted) - core dumped

As mentioned in the title, I am on Apple Silicon, and my instinct is to say this is where the issue is coming from because I have seen people getting this error on m1 chips elsewhere, but this could also be something else. I would be very grateful to anyone who could help me figure this out!

@andrewwhitehead
Copy link
Contributor

Hiya, could you please add the versions of your MacOS install and Docker install for reproduction. Are you using Docker Desktop?

@drewcapener
Copy link
Author

@andrewwhitehead Thanks for the help.

Monterey 12.2.1
Docker Desktop 20.10.11

@drewcapener
Copy link
Author

This issue feels like it might hold some answers?

@drewcapener
Copy link
Author

drewcapener commented Mar 25, 2022

@TimoGlastra I saw you were wrestling with this problem on a couple of issues. Did you get it figured out?

@drewcapener
Copy link
Author

drewcapener commented Mar 25, 2022

Bit of an update- I was able to replace the base image with an unofficial one (snel/von-image:py36-1.16-arm64) built for arm64. I'm not sure if this will work, but for now it seems to have at least moved me to a different issue. Now, I'm getting the following:

#8 16.77 ERROR: Could not find a version that satisfies the requirement aries-askar~=0.2.4 (from versions: 0.1.0, 0.1.2)

I'm guessing this is because pypi doesn't have an arm64 version of aries-askar.

@andrewwhitehead
Copy link
Contributor

It has universal packages for Askar, maybe you need to upgrade pip?

@drewcapener
Copy link
Author

@andrewwhitehead Just to make sure we're on the same page, are you suggesting upgrading pip in the container? I tried adding this line to no avail:

RUN pip3 install --upgrade pip

and then tried this one with no success either:

RUN python3 -m pip install --upgrade pip

@andrewwhitehead
Copy link
Contributor

Actually I suppose you're running a Linux arm64 environment in this case, so there isn't a published package for that yet.

@drewcapener
Copy link
Author

@andrewwhitehead What's the likelihood of getting something like that done? I'm unfamiliar with the process of publishing python packages. Is it something I could help facilitate in some way? Or should I try to build Askar for Linux arm64 just for my own purposes and try to replace the dependency?

@andrewwhitehead
Copy link
Contributor

It's the same issue for indy-credx and for indy-vdr, so it might take a while to get the build process sorted out for those. You could build and package each of those within a similar docker container. I filed an issue for Askar to test out Zig for cross compilation: openwallet-foundation/askar#42

@drewcapener
Copy link
Author

Alright, thanks for filing that issue. I'll see if I can do those builds and get it working that way in the meantime. Happy to help facilitate the cross compilation for those who come up behind us if there's anything I can do on that front.

@TimoGlastra
Copy link
Contributor

Can't be of much help here sadly.

I run ACA-Py directly on my computer (no docker), and for places where I need to use ACA-Py with docker I use a digital ocean droplet that I develop on. It's not ideal, but spent way too much time getting things to work that just works on other (non-M1) machines 😅

Maybe you can use the snel/von-image with indy-sdk instead of askar? Not sure if that would work...

@etschelp
Copy link
Contributor

The issue is the qemu update introduced with docker desktop 4.1.0 if you downgrade to 4.0.1 you can run aca-py images emulated. This is not ideal, but might serve as a workaround until there is an image for arm64.

@swcurran
Copy link
Contributor

swcurran commented Jun 3, 2022

It would be great if someone could add a document or add a section in the developer readme about how to run on M1 hardware -- documenting whatever the current state is.

That said, I'm going to close this one. Feel free to reopen or create a new one requesting M1 guidance.

@swcurran swcurran closed this as completed Jun 3, 2022
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

5 participants