gitcoinco / web

Grow Open Source
https://gitcoin.co
Other
1.79k stars 771 forks source link

Update docker container for Docker-AppleSilicon-Preview7 #8272

Closed Kweiss closed 3 years ago

Kweiss commented 3 years ago

Who

Gitcoin Team is looking for supporting in updaitng our docker container to be compatible with the Apple Silicon - Preview 7 of Docker desktop

What

Update Docker container to successfully build dependencies with Apple preview

Currently running into errors with Coincurve. Details below on the error:

  Building wheel for coincurve (setup.py): started
  Building wheel for coincurve (setup.py): finished with status 'error'
  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-pa6l7sw9/coincurve_0d80a09b658f42ca9fb560dcb0b670cc/setup.py'"'"'; __file__='"'"'/tmp/pip-install-pa6l7sw9/coincurve_0d80a09b658f42ca9fb560dcb0b670cc/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-q28icz7l
       cwd: /tmp/pip-install-pa6l7sw9/coincurve_0d80a09b658f42ca9fb560dcb0b670cc/
  Complete output (28 lines):
  running bdist_wheel
  The [wheel] section is deprecated. Use [bdist_wheel] instead.
  running build
  running build_py
  creating build
  creating build/lib.linux-aarch64-3.6
  creating build/lib.linux-aarch64-3.6/coincurve
  copying coincurve/context.py -> build/lib.linux-aarch64-3.6/coincurve
  copying coincurve/utils.py -> build/lib.linux-aarch64-3.6/coincurve
  copying coincurve/__init__.py -> build/lib.linux-aarch64-3.6/coincurve
  copying coincurve/keys.py -> build/lib.linux-aarch64-3.6/coincurve
  copying coincurve/flags.py -> build/lib.linux-aarch64-3.6/coincurve
  copying coincurve/ecdsa.py -> build/lib.linux-aarch64-3.6/coincurve
  copying coincurve/_windows_libsecp256k1.py -> build/lib.linux-aarch64-3.6/coincurve
  warning: build_py: byte-compiling is disabled, skipping.
  running build_ext
  generating cffi module 'build/temp.linux-aarch64-3.6/_libsecp256k1.c'
  creating build/temp.linux-aarch64-3.6
  building '_libsecp256k1' extension
  creating build/temp.linux-aarch64-3.6/build
  creating build/temp.linux-aarch64-3.6/build/temp.linux-aarch64-3.6
  aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -c build/temp.linux-aarch64-3.6/_libsecp256k1.c -o build/temp.linux-aarch64-3.6/build/temp.linux-aarch64-3.6/_libsecp256k1.o
  build/temp.linux-aarch64-3.6/_libsecp256k1.c:570:10: fatal error: secp256k1_ecdh.h: No such file or directory
   #include <secp256k1_ecdh.h>
            ^~~~~~~~~~~~~~~~~~
  compilation terminated.
  error: command 'aarch64-linux-gnu-gcc' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for coincurve
  Running setup.py clean for coincurve
Failed to build coincurve

Why

So we can developps!

gitcoinbot commented 3 years ago

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


This issue now has a funding of 0.15 ETH (206.51 USD @ $1376.75/ETH) attached to it.

rymnc commented 3 years ago

Can you link the Dockerfile in question?

PaulFrambot commented 3 years ago

I guess we need to have a Mac M1 to work on this one ... isn t it ?

gitcoinbot commented 3 years ago

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


The funding of 0.15 ETH (190.21 USD @ $1268.07/ETH) attached to this issue has been cancelled by the bounty submitter

Kweiss commented 3 years ago

Closing this as it looks like the dependencies were recently updated and the docker container builds with minor modification to the PIP version.