foodkg / foodkg.github.io

Apache License 2.0
83 stars 42 forks source link

Error when trying to replicate the data creation/transformation workflow. #14

Open zzeniale opened 3 years ago

zzeniale commented 3 years ago

Hi. I'm trying to follow the guide in /src for how to create and transform the data. I got through step 1 (/src/prep-scripts) fine, but at step 2 (/src/recipe-handler) when I run make (after running make copy in /prep-scripts) I encountered the following error:

  ERROR: Command errored out with exit status 1:
   command: /Users/elaine/Desktop/foodkg/src/recipe-handler/env/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/vh/kdd53ftx1wg2k8s80f9gq0240000gn/T/pip-install-9b6im3nc/numpy_186800a0816947e39de3a0b49429fde7/setup.py'"'"'; __file__='"'"'/private/var/folders/vh/kdd53ftx1wg2k8s80f9gq0240000gn/T/pip-install-9b6im3nc/numpy_186800a0816947e39de3a0b49429fde7/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 /private/var/folders/vh/kdd53ftx1wg2k8s80f9gq0240000gn/T/pip-wheel-75g20xrs
       cwd: /private/var/folders/vh/kdd53ftx1wg2k8s80f9gq0240000gn/T/pip-install-9b6im3nc/numpy_186800a0816947e39de3a0b49429fde7/
  Complete output (3745 lines):
  Running from numpy source directory.
  /private/var/folders/vh/kdd53ftx1wg2k8s80f9gq0240000gn/T/pip-install-9b6im3nc/numpy_186800a0816947e39de3a0b49429fde7/numpy/distutils/misc_util.py:476: SyntaxWarning: "is" with a literal. Did you mean "=="?
    return is_string(s) and ('*' in s or '?' is s)
  blas_opt_info:
  blas_mkl_info:
  customize UnixCCompiler
    libraries mkl_rt not found in ['/Users/elaine/Desktop/foodkg/src/recipe-handler/env/lib', '/usr/local/lib', '/usr/lib']
    NOT AVAILABLE

  blis_info:
  customize UnixCCompiler
    libraries blis not found in ['/Users/elaine/Desktop/foodkg/src/recipe-handler/env/lib', '/usr/local/lib', '/usr/lib']
    NOT AVAILABLE

The error occurs here:

Building wheels for collected packages: numpy
  Building wheel for numpy (setup.py) ... error

Some other info, if it helps:

kondilidisn commented 1 year ago

I had the same error. IT can't install the specific numpy version that is specified in "recipe-handler/requirements.txt". In that file, replace "numpy==1.16.2" with "numpy", so that it installs the latest version of numpy. For me the "make" command works now, but running to other problems. Hoepe they are not due to wrong numpy version. Will keep you posted if so.

You want to do the same for the joblib library - do not specify version.