sleap icon indicating copy to clipboard operation
sleap copied to clipboard

Find dependencies that successfully create a pip wheel for apple silicon macs

Open roomrys opened this issue 2 years ago • 1 comments

Bug description

Find dependencies that successfully create a pip wheel for apple silicon Macs .

ERROR: Could not find a version that satisfies the requirement PySide2<=5.15.5,>=5.13.2 (from sleap) (from versions: none)
ERROR: No matching distribution found for PySide2<=5.15.5,>=5.13.2

Expected behaviour

The pip any wheel should work on Apple Silicon macs.

Actual behaviour

It does not (even when the correct version of python=3.9 for apple silicon is used - common error...).

Your personal set up

  • OS:
  • Version(s):
Environment packages
(base) talmolab-m2@TalmoLab-M2s-Mac-mini sleap % conda create -n sleap_pip python=3.
9
Collecting package metadata (current_repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: /Users/talmolab-m2/miniconda3/envs/sleap_pip

  added / updated specs:
    - python=3.9


The following NEW packages will be INSTALLED:

  ca-certificates    pkgs/main/osx-arm64::ca-certificates-2023.01.10-hca03da5_0 
  certifi            pkgs/main/osx-arm64::certifi-2022.12.7-py39hca03da5_0 
  libcxx             pkgs/main/osx-arm64::libcxx-14.0.6-h848a8c0_0 
  libffi             pkgs/main/osx-arm64::libffi-3.4.2-hca03da5_6 
  ncurses            pkgs/main/osx-arm64::ncurses-6.4-h313beb8_0 
  openssl            pkgs/main/osx-arm64::openssl-1.1.1t-h1a28f6b_0 
  pip                pkgs/main/osx-arm64::pip-22.3.1-py39hca03da5_0 
  python             pkgs/main/osx-arm64::python-3.9.16-hc0d8a6c_0 
  readline           pkgs/main/osx-arm64::readline-8.2-h1a28f6b_0 
  setuptools         pkgs/main/osx-arm64::setuptools-65.6.3-py39hca03da5_0 
  sqlite             pkgs/main/osx-arm64::sqlite-3.40.1-h7a7dc30_0 
  tk                 pkgs/main/osx-arm64::tk-8.6.12-hb8d0fd4_0 
  tzdata             pkgs/main/noarch::tzdata-2022g-h04d1e81_0 
  wheel              pkgs/main/osx-arm64::wheel-0.38.4-py39hca03da5_0 
  xz                 pkgs/main/osx-arm64::xz-5.2.10-h80987f9_1 
  zlib               pkgs/main/osx-arm64::zlib-1.2.13-h5a0b063_0 


Proceed ([y]/n)? y


Downloading and Extracting Packages

Preparing transaction: done
Verifying transaction: done
Executing transaction: done
#
# To activate this environment, use
#
#     $ conda activate sleap_pip
#
# To deactivate an active environment, use
#
#     $ conda deactivate
Logs
(sleap_pip) talmolab-m2@TalmoLab-M2s-Mac-mini sleap % pip wheel .
Processing /Users/talmolab-m2/sleap-estimates-animal-poses/sources/sleap
  Preparing metadata (setup.py) ... done
Collecting numpy<1.23.0,>=1.19.5
  Using cached numpy-1.22.4-cp39-cp39-macosx_11_0_arm64.whl (12.8 MB)
Collecting attrs<=21.4.0,>=21.2.0
  Using cached attrs-21.4.0-py2.py3-none-any.whl (60 kB)
Collecting cattrs==1.1.1
  Using cached cattrs-1.1.1-py3-none-any.whl (16 kB)
Collecting jsonpickle==1.2
  Using cached jsonpickle-1.2-py2.py3-none-any.whl (32 kB)
Collecting networkx
  Using cached networkx-3.0-py3-none-any.whl (2.0 MB)
Collecting tensorflow-hub
  Using cached tensorflow_hub-0.12.0-py2.py3-none-any.whl (108 kB)
Collecting h5py<=3.7.0,>=3.1.0
  Using cached h5py-3.7.0-cp39-cp39-macosx_11_0_arm64.whl (2.6 MB)
Collecting python-rapidjson
  Using cached python-rapidjson-1.9.tar.gz (223 kB)
  Preparing metadata (setup.py) ... done
Collecting opencv-python<=4.6.0,>=4.2.0
  Using cached opencv_python-4.5.5.64-cp37-abi3-macosx_11_0_arm64.whl (29.9 MB)
Collecting pandas
  Using cached pandas-1.5.3-cp39-cp39-macosx_11_0_arm64.whl (11.0 MB)
Collecting psutil
  Using cached psutil-5.9.4-cp38-abi3-macosx_11_0_arm64.whl (244 kB)
Collecting qtpy>=2.0.1
  Using cached QtPy-2.3.0-py3-none-any.whl (83 kB)
Collecting pyzmq
  Using cached pyzmq-25.0.0-cp39-cp39-macosx_10_15_universal2.whl (1.8 MB)
Collecting pyyaml
  Using cached PyYAML-6.0-cp39-cp39-macosx_11_0_arm64.whl (173 kB)
Collecting pillow<=8.4.0,>=8.3.1
  Using cached Pillow-8.4.0-cp39-cp39-macosx_11_0_arm64.whl (2.8 MB)
Collecting imageio<=2.15.0
  Using cached imageio-2.15.0-py3-none-any.whl (3.3 MB)
Collecting imgaug==0.4.0
  Using cached imgaug-0.4.0-py2.py3-none-any.whl (948 kB)
Collecting scipy<=1.9.0,>=1.4.1
  Using cached scipy-1.9.0-cp39-cp39-macosx_12_0_arm64.whl (29.9 MB)
Collecting scikit-image
  Using cached scikit_image-0.19.3-cp39-cp39-macosx_12_0_arm64.whl (12.5 MB)
Collecting scikit-learn==1.0.*
  Using cached scikit_learn-1.0.2-cp39-cp39-macosx_12_0_arm64.whl (6.9 MB)
Collecting scikit-video
  Using cached scikit_video-1.1.11-py2.py3-none-any.whl (2.3 MB)
Collecting imgstore==0.2.9
  Using cached imgstore-0.2.9-py2.py3-none-any.whl (904 kB)
Collecting qimage2ndarray>=1.9.0
  Using cached qimage2ndarray-1.10.0-py3-none-any.whl (12 kB)
Collecting jsmin
  Using cached jsmin-3.0.1.tar.gz (13 kB)
  Preparing metadata (setup.py) ... done
Collecting seaborn
  Using cached seaborn-0.12.2-py3-none-any.whl (293 kB)
Collecting pykalman==0.9.5
  Using cached pykalman-0.9.5.tar.gz (228 kB)
  Preparing metadata (setup.py) ... done
Collecting segmentation-models==1.0.1
  Using cached segmentation_models-1.0.1-py3-none-any.whl (33 kB)
Collecting rich==10.16.1
  Using cached rich-10.16.1-py3-none-any.whl (214 kB)
Collecting certifi<=2021.10.8,>=2017.4.17
  Using cached certifi-2021.10.8-py2.py3-none-any.whl (149 kB)
Collecting pynwb
  Using cached pynwb-2.3.0-py3-none-any.whl (131 kB)
Collecting ndx-pose
  Using cached ndx_pose-0.1.1-py2.py3-none-any.whl (8.3 kB)
Collecting nixio>=1.5.3
  Using cached nixio-1.5.3-py3-none-any.whl (88 kB)
Collecting tensorflow-macos==2.9.2
  Using cached tensorflow_macos-2.9.2-cp39-cp39-macosx_11_0_arm64.whl (200.4 MB)
Collecting tensorflow-metal==0.5.0
  Using cached tensorflow_metal-0.5.0-cp39-cp39-macosx_11_0_arm64.whl (1.4 MB)
ERROR: Could not find a version that satisfies the requirement PySide2<=5.15.5,>=5.13.2 (from sleap) (from versions: none)
ERROR: No matching distribution found for PySide2<=5.15.5,>=5.13.2

Screenshots

How to reproduce

  1. Create a fresh conda environment with python=3.9 and pip
  2. Activate the environment
  3. Run pip wheel .
  4. See error

roomrys avatar Feb 25 '23 00:02 roomrys

Total side nit: maybe we should use arm64 or osx-arm64 as a shorthand for Apple Silicon? (Like for the .conda_arm64 folder.)

Here's a thread about this. Also, the arch name used in conda seems to be osx-arm64.

talmo avatar Feb 25 '23 18:02 talmo