TRI-ML / dgp

ML Dataset Governance Policy for Autonomous Vehicle Datasets
https://tri-ml.github.io/dgp/
MIT License
95 stars 62 forks source link

build: update python lib version for apple silicon #26

Closed quincy-kh-chen closed 3 years ago

quincy-kh-chen commented 3 years ago

This change is Reviewable

wadimkehl commented 3 years ago

Thanks Quincy, immediately run into the next issue. This time it's Cython ;) Installing with the current version pip install cython==0.29.11 yields

ERROR: Command errored out with exit status 1: /Users/wadimkehl/miniforge3/bin/python3.9 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/ww/k_v081l90pd2g8fwffhll36r0000gn/T/pip-install-6pippf_6/cython_2d6d233324f4432aae30e4baab517369/setup.py'"'"'; __file__='"'"'/private/var/folders/ww/k_v081l90pd2g8fwffhll36r0000gn/T/pip-install-6pippf_6/cython_2d6d233324f4432aae30e4baab517369/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/ww/k_v081l90pd2g8fwffhll36r0000gn/T/pip-record-98maqkpg/install-record.txt --single-version-externally-managed --compile --install-headers /Users/wadimkehl/miniforge3/include/python3.9/cython Check the logs for full command output.

whereas pip install cython==0.29.21 installs correctly.

wadimkehl commented 3 years ago

Thanks!! Beautiful, it went much further this time ;) Now it's opencv inside the requirements.txt. It seems like OpenCV only started supplying arm64 wheels from 4.3 on.

#23 20.92 ERROR: Could not find a version that satisfies the requirement opencv-python==4.1.0.25 (from dgp) (from versions: 3.4.10.37, 3.4.11.39, 3.4.11.41, 3.4.11.43, 3.4.11.45, 3.4.13.47, 3.4.14.53, 3.4.15.55, 4.3.0.38, 4.4.0.40, 4.4.0.42, 4.4.0.44, 4.4.0.46, 4.5.1.48, 4.5.2.54, 4.5.3.56)
#23 20.92 ERROR: No matching distribution found for opencv-python==4.1.0.25

So how about updating it to the latest 4.5.3.56?

wadimkehl commented 3 years ago

Yes, thanks, it works! I can pip install it! :) 👍