Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escaping: Escape characters +-&|!(){}[]^"~*?:\ with \, e.g. \+
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Answered
Is There Any Specific Version Of Numpy You Recommend To Use With Clearml Python Library? I Am Building An Python Alpine Docker Image With Clearml==1.7.2 But It Breaks When Building Image From Dockerfile.

Is there any specific version of numpy you recommend to use with clearml Python library?

I am building an Python alpine docker image with clearml==1.7.2 but it breaks when building image from Dockerfile.

`
#13 25.33 copying psutil/tests/test_posix.py -> build/lib.linux-aarch64-cpython-39/psutil/tests
#13 25.33 copying psutil/tests/test_linux.py -> build/lib.linux-aarch64-cpython-39/psutil/tests
#13 25.33 copying psutil/tests/init.py -> build/lib.linux-aarch64-cpython-39/psutil/tests
#13 25.33 copying psutil/tests/test_process.py -> build/lib.linux-aarch64-cpython-39/psutil/tests
#13 25.33 copying psutil/tests/test_connections.py -> build/lib.linux-aarch64-cpython-39/psutil/tests
#13 25.33 running build_ext
#13 25.33 building 'psutil._psutil_linux' extension
#13 25.33 creating build/temp.linux-aarch64-cpython-39
#13 25.33 creating build/temp.linux-aarch64-cpython-39/psutil
#13 25.33 gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -DPSUTIL_POSIX=1 -DPSUTIL_SIZEOF_PID_T=4 -DPSUTIL_VERSION=593 -DPSUTIL_LINUX=1 -DPSUTIL_ETHTOOL_MISSING_TYPES=1 -I/usr/local/include/python3.9 -c psutil/_psutil_common.c -o build/temp.linux-aarch64-cpython-39/psutil/_psutil_common.o
#13 25.33 In file included from psutil/_psutil_common.c:9:
#13 25.33 /usr/local/include/python3.9/Python.h:11:10: fatal error: limits.h: No such file or directory
#13 25.33 11 | #include <limits.h>
#13 25.33 | ^~~~~~~~~~
#13 25.33 compilation terminated.
#13 25.33 error: command '/usr/bin/gcc' failed with exit code 1
#13 25.33 [end of output]
#13 25.33
#13 25.33 note: This error originates from a subprocess, and is likely not a problem with pip.
#13 25.33 ERROR: Failed building wheel for psutil
#13 25.33 Building wheel for PyYAML (pyproject.toml): started
#13 25.56 Building wheel for PyYAML (pyproject.toml): finished with status 'done'
#13 25.56 Created wheel for PyYAML: filename=PyYAML-6.0-cp39-cp39-linux_aarch64.whl size=45333 sha256=18840d64db3f15529278e3c074f389d9386b67c8e9f6cb0ffd325c744b0b6e97
#13 25.56 Stored in directory: /root/.cache/pip/wheels/5c/9d/5f/838ca730866969b9340acf232c4621bd398bc8be7cd6a5f838
#13 25.56 Successfully built PyYAML
#13 25.56 Failed to build numpy Pillow psutil
#13 25.56 ERROR: Could not build wheels for numpy, psutil, which is required to install pyproject.toml-based projects

executor failed running [/bin/sh -c /usr/local/bin/python3 -m pip install -r requirements.txt]: exit code: 1 `

  
  
Posted one year ago
Votes Newest

Answers 19


Do you have a specific numpy version you are installing ? why is it trying to install the wheel from code?

  
  
Posted one year ago

AgitatedDove14 I found it's the issue with pycryptodome 😕
Error started coming from here. Maybe specific version of it. Digging more.
#13 101.0 note: This error originates from a subprocess, and is likely not a problem with pip. #13 101.0 ERROR: Failed building wheel for pycryptodome #13 101.0 Running setup.py clean for pycryptodome #13 104.9 Building wheel for numpy (pyproject.toml): started #13 158.5 Building wheel for numpy (pyproject.toml): finished with status 'error' #13 158.8 error: subprocess-exited-with-error

  
  
Posted one year ago

DrabCockroach54 notice here there is no aarch64 wheel for anything other than python 3.5...
(and in both cases only py 3.5/3.6 builds, everything else will be built from code)
https://pypi.org/project/pycryptodome/#files

  
  
Posted one year ago

AgitatedDove14 I am upgrade upgrading pip before this. 😕

  
  
Posted one year ago

FROM python:3.9-alpine

  
  
Posted one year ago

this sounds like docker build issue on macos M1
https://pythonspeed.com/articles/docker-build-problems-mac/

  
  
Posted one year ago

I'm assuming you are building for x86

  
  
Posted one year ago

😕 I will using docker_image python:3.9-alpine
I am running a basic python script. Need to use clearml to use it's API

  
  
Posted one year ago

so I think it depends if python:3.9-alpine use x86
which I believe it might be probably

  
  
Posted one year ago

Phew. Make sense. I am testing it by updating FROM in dockerfile.
Fingers crossed.

  
  
Posted one year ago

Still failing but I know the root cause though.

  
  
Posted one year ago

Thanks

  
  
Posted one year ago

Hi DrabCockroach54
This seems like a pip issue trying to install from source, try upgrading the pip version and before installing numpy, it should solve it 🤞

  
  
Posted one year ago

RUN apk update && apk upgrade --no-cache RUN /usr/local/bin/python3 -m pip install --upgrade pip RUN /usr/local/bin/python3 -m pip install -r requirements.txt

  
  
Posted one year ago

Oh found it:
temp.linux-aarch64-cpython-39this is Arm?!

  
  
Posted one year ago

this is why....

  
  
Posted one year ago

oh! my macos

  
  
Posted one year ago

Yeah. M1 chip

  
  
Posted one year ago

I need to use this image in kubernetes

  
  
Posted one year ago
629 Views
19 Answers
one year ago
one year ago
Tags