elgalu / docker-selenium

[NOT MAINTAINED] Please use <https://github.com/SeleniumHQ/docker-selenium>
https://github.com/SeleniumHQ/docker-selenium
Other
1.42k stars 334 forks source link

ARM /Macbook M1 / Apple Silicon Support #408

Open nkpm opened 3 years ago

nkpm commented 3 years ago

Please make sure that the boxes below are checked before you submit your issue. Thank you!

Operating System

Big Sur on Macbook Pro M1

Image version

latest

Docker version

Experimental

Trying to build on the above mentioned environment I get the following error. Are there plans/willingness/a base to support the above mentioned env?

Collecting numpy Downloading https://files.pythonhosted.org/packages/01/1b/d3ddcabd5817be02df0e6ee20d64f77ff6d0d97f83b77f65e98c8a651981/numpy-1.18.5.zip (5.4MB) Installing collected packages: numpy Running setup.py install for numpy: started Running setup.py install for numpy: finished with status 'error' Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-ohm2t9xv/numpy/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-g3ikfits-record/install-record.txt --single-version-externally-managed --compile: Running from numpy source directory.

Note: if you need reliable uninstall behavior, then install
with pip instead of using `setup.py install`:

  - `pip install .`       (from a git repo or downloaded source
                           release)
  - `pip install numpy`   (last NumPy release on PyPi)

Cythonizing sources
Processing numpy/random/_bounded_integers.pxd.in
Processing numpy/random/_sfc64.pyx
Traceback (most recent call last):
  File "/tmp/pip-build-ohm2t9xv/numpy/tools/cythonize.py", line 61, in process_pyx
    from Cython.Compiler.Version import version as cython_version
ImportError: No module named 'Cython'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/tmp/pip-build-ohm2t9xv/numpy/tools/cythonize.py", line 238, in <module>
    main()
  File "/tmp/pip-build-ohm2t9xv/numpy/tools/cythonize.py", line 234, in main
    find_process_files(root_dir)
  File "/tmp/pip-build-ohm2t9xv/numpy/tools/cythonize.py", line 225, in find_process_files
    process(root_dir, fromfile, tofile, function, hash_db)
  File "/tmp/pip-build-ohm2t9xv/numpy/tools/cythonize.py", line 191, in process
    processor_function(fromfile, tofile)
  File "/tmp/pip-build-ohm2t9xv/numpy/tools/cythonize.py", line 66, in process_pyx
    raise OSError('Cython needs to be installed in Python as a module')
OSError: Cython needs to be installed in Python as a module
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/tmp/pip-build-ohm2t9xv/numpy/setup.py", line 488, in <module>
    setup_package()
  File "/tmp/pip-build-ohm2t9xv/numpy/setup.py", line 469, in setup_package
    generate_cython()
  File "/tmp/pip-build-ohm2t9xv/numpy/setup.py", line 275, in generate_cython
    raise RuntimeError("Running cythonize failed!")
RuntimeError: Running cythonize failed!

----------------------------------------

Command "/usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-ohm2t9xv/numpy/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-g3ikfits-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-ohm2t9xv/numpy/ You are using pip version 9.0.3, however version 21.0.1 is available. You should consider upgrading via the 'pip install --upgrade pip' command. The command '/bin/sh -c apt -qqy update && apt -qqy --no-install-recommends install python3 python3-pip python3-dev python3-openssl libssl-dev libffi-dev && pip3 install --no-cache --upgrade pip==9.0.3 && pip3 install --no-cache setuptools && pip3 install --no-cache numpy && pip3 install --no-cache --requirement /test/requirements.txt && rm -rf /var/lib/apt/lists/* && apt -qyy clean' returned a non-zero code: 1