Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation error #545

Open
bendichter opened this issue Nov 29, 2022 · 0 comments
Open

Installation error #545

bendichter opened this issue Nov 29, 2022 · 0 comments

Comments

@bendichter
Copy link

Describe the bug
I'm running into problems installing ibllib on an M1 mac using the new conda arm64-osx using the steps described here.

conda create --name ibl python=3.9
conda activate ibl
pip install ONE-api
pip install ibllib
(ibl) MacBook-Pro-8:sandbox bendichter$ pip install ibllib
Collecting ibllib
  Using cached ibllib-2.18.0-py3-none-any.whl (8.6 MB)
Collecting globus-sdk==3.2.1
  Using cached globus_sdk-3.2.1-py3-none-any.whl (131 kB)
Collecting matplotlib>=3.0.3
  Using cached matplotlib-3.6.2-cp39-cp39-macosx_11_0_arm64.whl (7.2 MB)
Collecting mtscomp>=1.0.1
  Using cached mtscomp-1.0.2-py2.py3-none-any.whl (16 kB)
Collecting opencv-python
  Using cached opencv_python-4.6.0.66-cp37-abi3-macosx_11_0_arm64.whl (30.0 MB)
Collecting nptdms
  Using cached npTDMS-1.6.0.tar.gz (175 kB)
  Preparing metadata (setup.py) ... done
Collecting scikit-learn>=0.22.1
  Using cached scikit_learn-1.1.3-cp39-cp39-macosx_12_0_arm64.whl (7.7 MB)
Requirement already satisfied: numpy>=1.18 in /Users/bendichter/opt/miniconda3/envs/ibl/lib/python3.9/site-packages (from ibllib) (1.23.5)
Requirement already satisfied: boto3 in /Users/bendichter/opt/miniconda3/envs/ibl/lib/python3.9/site-packages (from ibllib) (1.26.18)
Collecting labcams
  Using cached labcams-0.6.5-py3-none-any.whl (93 kB)
Requirement already satisfied: numba>=0.56 in /Users/bendichter/opt/miniconda3/envs/ibl/lib/python3.9/site-packages (from ibllib) (0.56.4)
Requirement already satisfied: tqdm>=4.32.1 in /Users/bendichter/opt/miniconda3/envs/ibl/lib/python3.9/site-packages (from ibllib) (4.64.1)
Collecting pynrrd>=0.4.0
  Using cached pynrrd-1.0.0-py2.py3-none-any.whl (19 kB)
Collecting jupyterlab>=1.0
  Using cached jupyterlab-3.5.0-py3-none-any.whl (8.8 MB)
Requirement already satisfied: colorlog>=4.0.2 in /Users/bendichter/opt/miniconda3/envs/ibl/lib/python3.9/site-packages (from ibllib) (6.7.0)
Requirement already satisfied: pandas>=0.24.2 in /Users/bendichter/opt/miniconda3/envs/ibl/lib/python3.9/site-packages (from ibllib) (1.5.2)
Collecting slidingRP>=1.0.0
  Using cached slidingRP-1.0.0-py3-none-any.whl (25 kB)
Requirement already satisfied: flake8>=3.7.8 in /Users/bendichter/opt/miniconda3/envs/ibl/lib/python3.9/site-packages (from ibllib) (6.0.0)
Collecting pytest
  Using cached pytest-7.2.0-py3-none-any.whl (316 kB)
Collecting graphviz
  Using cached graphviz-0.20.1-py3-none-any.whl (47 kB)
Collecting seaborn>=0.9.0
  Using cached seaborn-0.12.1-py3-none-any.whl (288 kB)
Collecting scipy>=1.3.0
  Using cached scipy-1.9.3-cp39-cp39-macosx_12_0_arm64.whl (28.6 MB)
Requirement already satisfied: ONE-api>=1.16.1 in /Users/bendichter/opt/miniconda3/envs/ibl/lib/python3.9/site-packages (from ibllib) (1.16.2)
Collecting ibl-neuropixel>=0.4.0
  Using cached ibl_neuropixel-0.4.1-py3-none-any.whl (47 kB)
Collecting click>=7.0.0
  Using cached click-8.1.3-py3-none-any.whl (96 kB)
Collecting jupyter>=1.0
  Using cached jupyter-1.0.0-py2.py3-none-any.whl (2.7 kB)
Requirement already satisfied: pyarrow in /Users/bendichter/opt/miniconda3/envs/ibl/lib/python3.9/site-packages (from ibllib) (10.0.1)
Requirement already satisfied: iblutil>=1.4.0 in /Users/bendichter/opt/miniconda3/envs/ibl/lib/python3.9/site-packages (from ibllib) (1.4.0)
Collecting wfield>=0.3.6
  Using cached wfield-0.3.7-py3-none-any.whl (87 kB)
Collecting phylib>=2.4
  Using cached phylib-2.4.2-py2.py3-none-any.whl (80 kB)
Requirement already satisfied: requests>=2.22.0 in /Users/bendichter/opt/miniconda3/envs/ibl/lib/python3.9/site-packages (from ibllib) (2.28.1)
Collecting cryptography!=3.4.0,>=3.3.1
  Using cached cryptography-38.0.4-cp36-abi3-macosx_10_10_universal2.whl (5.4 MB)
Collecting pyjwt[crypto]<3.0.0,>=2.0.0
  Using cached PyJWT-2.6.0-py3-none-any.whl (20 kB)
Requirement already satisfied: mccabe<0.8.0,>=0.7.0 in /Users/bendichter/opt/miniconda3/envs/ibl/lib/python3.9/site-packages (from flake8>=3.7.8->ibllib) (0.7.0)
Requirement already satisfied: pycodestyle<2.11.0,>=2.10.0 in /Users/bendichter/opt/miniconda3/envs/ibl/lib/python3.9/site-packages (from flake8>=3.7.8->ibllib) (2.10.0)
Requirement already satisfied: pyflakes<3.1.0,>=3.0.0 in /Users/bendichter/opt/miniconda3/envs/ibl/lib/python3.9/site-packages (from flake8>=3.7.8->ibllib) (3.0.1)
Collecting joblib
  Using cached joblib-1.2.0-py3-none-any.whl (297 kB)
Collecting jupyter-console
  Using cached jupyter_console-6.4.4-py3-none-any.whl (22 kB)
Collecting nbconvert
  Using cached nbconvert-7.2.5-py3-none-any.whl (273 kB)
Collecting ipywidgets
  Using cached ipywidgets-8.0.2-py3-none-any.whl (134 kB)
Collecting notebook
  Using cached notebook-6.5.2-py3-none-any.whl (439 kB)
Collecting ipykernel
  Using cached ipykernel-6.18.2-py3-none-any.whl (143 kB)
Collecting qtconsole
  Using cached qtconsole-5.4.0-py3-none-any.whl (121 kB)
Collecting ipython
  Using cached ipython-8.7.0-py3-none-any.whl (761 kB)
Requirement already satisfied: packaging in /Users/bendichter/opt/miniconda3/envs/ibl/lib/python3.9/site-packages (from jupyterlab>=1.0->ibllib) (21.3)
Collecting jupyter-server<3,>=1.16.0
  Using cached jupyter_server-1.23.3-py3-none-any.whl (346 kB)
Collecting tomli
  Using cached tomli-2.0.1-py3-none-any.whl (12 kB)
Collecting nbclassic
  Using cached nbclassic-0.4.8-py3-none-any.whl (9.8 MB)
Collecting jupyter-core
  Using cached jupyter_core-5.1.0-py3-none-any.whl (92 kB)
Collecting jinja2>=2.1
  Using cached Jinja2-3.1.2-py3-none-any.whl (133 kB)
Collecting jupyterlab-server~=2.10
  Using cached jupyterlab_server-2.16.3-py3-none-any.whl (54 kB)
Collecting tornado>=6.1.0
  Using cached tornado-6.2-cp37-abi3-macosx_10_9_universal2.whl (421 kB)
Collecting contourpy>=1.0.1
  Using cached contourpy-1.0.6-cp39-cp39-macosx_11_0_arm64.whl (226 kB)
Collecting cycler>=0.10
  Using cached cycler-0.11.0-py3-none-any.whl (6.4 kB)
Requirement already satisfied: pyparsing>=2.2.1 in /Users/bendichter/opt/miniconda3/envs/ibl/lib/python3.9/site-packages (from matplotlib>=3.0.3->ibllib) (3.0.9)
Collecting kiwisolver>=1.0.1
  Using cached kiwisolver-1.4.4-cp39-cp39-macosx_11_0_arm64.whl (63 kB)
Collecting fonttools>=4.22.0
  Using cached fonttools-4.38.0-py3-none-any.whl (965 kB)
Requirement already satisfied: python-dateutil>=2.7 in /Users/bendichter/opt/miniconda3/envs/ibl/lib/python3.9/site-packages (from matplotlib>=3.0.3->ibllib) (2.8.2)
Collecting pillow>=6.2.0
  Using cached Pillow-9.3.0-cp39-cp39-macosx_11_0_arm64.whl (2.9 MB)
Requirement already satisfied: llvmlite<0.40,>=0.39.0dev0 in /Users/bendichter/opt/miniconda3/envs/ibl/lib/python3.9/site-packages (from numba>=0.56->ibllib) (0.39.1)
Requirement already satisfied: setuptools in /Users/bendichter/opt/miniconda3/envs/ibl/lib/python3.9/site-packages (from numba>=0.56->ibllib) (65.5.0)
Requirement already satisfied: pyyaml in /Users/bendichter/opt/miniconda3/envs/ibl/lib/python3.9/site-packages (from ONE-api>=1.16.1->ibllib) (6.0)
Requirement already satisfied: pytz>=2020.1 in /Users/bendichter/opt/miniconda3/envs/ibl/lib/python3.9/site-packages (from pandas>=0.24.2->ibllib) (2022.6)
Collecting dask
  Using cached dask-2022.11.1-py3-none-any.whl (1.1 MB)
Collecting toolz
  Using cached toolz-0.12.0-py3-none-any.whl (55 kB)
Collecting typing-extensions
  Using cached typing_extensions-4.4.0-py3-none-any.whl (26 kB)
Collecting nptyping
  Using cached nptyping-2.4.1-py3-none-any.whl (36 kB)
Requirement already satisfied: idna<4,>=2.5 in /Users/bendichter/opt/miniconda3/envs/ibl/lib/python3.9/site-packages (from requests>=2.22.0->ibllib) (3.4)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /Users/bendichter/opt/miniconda3/envs/ibl/lib/python3.9/site-packages (from requests>=2.22.0->ibllib) (1.26.13)
Requirement already satisfied: charset-normalizer<3,>=2 in /Users/bendichter/opt/miniconda3/envs/ibl/lib/python3.9/site-packages (from requests>=2.22.0->ibllib) (2.1.1)
Requirement already satisfied: certifi>=2017.4.17 in /Users/bendichter/opt/miniconda3/envs/ibl/lib/python3.9/site-packages (from requests>=2.22.0->ibllib) (2022.9.24)
Collecting threadpoolctl>=2.0.0
  Using cached threadpoolctl-3.1.0-py3-none-any.whl (14 kB)
Collecting pyqtwebengine
  Using cached PyQtWebEngine-5.15.6.tar.gz (48 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... error
  error: subprocess-exited-with-error
  
  × Preparing metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [27 lines of output]
      Traceback (most recent call last):
        File "/Users/bendichter/opt/miniconda3/envs/ibl/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 156, in prepare_metadata_for_build_wheel
          hook = backend.prepare_metadata_for_build_wheel
      AttributeError: module 'sipbuild.api' has no attribute 'prepare_metadata_for_build_wheel'
      
      During handling of the above exception, another exception occurred:
      
      Traceback (most recent call last):
        File "/Users/bendichter/opt/miniconda3/envs/ibl/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in <module>
          main()
        File "/Users/bendichter/opt/miniconda3/envs/ibl/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "/Users/bendichter/opt/miniconda3/envs/ibl/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 160, in prepare_metadata_for_build_wheel
          whl_basename = backend.build_wheel(metadata_directory, config_settings)
        File "/private/var/folders/cg/mhhypnc14wn9kz5ydllymyc00000gp/T/pip-build-env-o60zh718/overlay/lib/python3.9/site-packages/sipbuild/api.py", line 46, in build_wheel
          project = AbstractProject.bootstrap('wheel',
        File "/private/var/folders/cg/mhhypnc14wn9kz5ydllymyc00000gp/T/pip-build-env-o60zh718/overlay/lib/python3.9/site-packages/sipbuild/abstract_project.py", line 87, in bootstrap
          project.setup(pyproject, tool, tool_description)
        File "/private/var/folders/cg/mhhypnc14wn9kz5ydllymyc00000gp/T/pip-build-env-o60zh718/overlay/lib/python3.9/site-packages/sipbuild/project.py", line 585, in setup
          self.apply_user_defaults(tool)
        File "/private/var/folders/cg/mhhypnc14wn9kz5ydllymyc00000gp/T/pip-build-env-o60zh718/overlay/lib/python3.9/site-packages/pyqtbuild/project.py", line 70, in apply_user_defaults
          super().apply_user_defaults(tool)
        File "/private/var/folders/cg/mhhypnc14wn9kz5ydllymyc00000gp/T/pip-build-env-o60zh718/overlay/lib/python3.9/site-packages/sipbuild/project.py", line 236, in apply_user_defaults
          self.builder.apply_user_defaults(tool)
        File "/private/var/folders/cg/mhhypnc14wn9kz5ydllymyc00000gp/T/pip-build-env-o60zh718/overlay/lib/python3.9/site-packages/pyqtbuild/builder.py", line 69, in apply_user_defaults
          raise PyProjectOptionException('qmake',
      sipbuild.pyproject.PyProjectOptionException
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant