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

Installing on Mac M1 - crash on pyqt5 #379

Open
RafalKucharskiPK opened this issue Feb 3, 2023 · 3 comments
Open

Installing on Mac M1 - crash on pyqt5 #379

RafalKucharskiPK opened this issue Feb 3, 2023 · 3 comments

Comments

@RafalKucharskiPK
Copy link

I cannot install AequilibraE on my Mac with pip

It seems ot crash on pyqt5:

""" rafalkucharski@MacBook-Pro-Rafa ~ % pip install aequilibrae
Collecting aequilibrae
Using cached aequilibrae-0.7.7.tar.gz (1.8 MB)
Installing build dependencies ... error
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> [61 lines of output]
Collecting setuptools
Using cached setuptools-67.1.0-py3-none-any.whl (1.1 MB)
Collecting numpy<1.22
Downloading numpy-1.21.6-cp310-cp310-macosx_11_0_arm64.whl (12.4 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 12.4/12.4 MB 6.8 MB/s eta 0:00:00
Collecting cython
Using cached Cython-0.29.33-py2.py3-none-any.whl (987 kB)
Collecting pyaml
Using cached pyaml-21.10.1-py2.py3-none-any.whl (24 kB)
Collecting pyqt5
Using cached PyQt5-5.15.8.tar.gz (3.2 MB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'error'
error: subprocess-exited-with-error

    × Preparing metadata (pyproject.toml) did not run successfully.
    │ exit code: 1
    ╰─> [29 lines of output]
        Traceback (most recent call last):
          File "/Users/rafalkucharski/miniforge3/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 144, 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/rafalkucharski/miniforge3/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 351, in <module>
            main()
          File "/Users/rafalkucharski/miniforge3/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 333, in main
            json_out['return_val'] = hook(**hook_input['kwargs'])
          File "/Users/rafalkucharski/miniforge3/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 148, in prepare_metadata_for_build_wheel
            whl_basename = backend.build_wheel(metadata_directory, config_settings)
          File "/private/var/folders/11/v91c3qb92lg10fbgz1ptll4m0000gn/T/pip-build-env-tgu1esa4/overlay/lib/python3.10/site-packages/sipbuild/api.py", line 46, in build_wheel
            project = AbstractProject.bootstrap('wheel',
          File "/private/var/folders/11/v91c3qb92lg10fbgz1ptll4m0000gn/T/pip-build-env-tgu1esa4/overlay/lib/python3.10/site-packages/sipbuild/abstract_project.py", line 87, in bootstrap
            project.setup(pyproject, tool, tool_description)
          File "/private/var/folders/11/v91c3qb92lg10fbgz1ptll4m0000gn/T/pip-build-env-tgu1esa4/overlay/lib/python3.10/site-packages/sipbuild/project.py", line 585, in setup
            self.apply_user_defaults(tool)
          File "/private/var/folders/11/v91c3qb92lg10fbgz1ptll4m0000gn/T/pip-install-wc89xob1/pyqt5_9a1165a045ff47f28c505d69fbefeca4/project.py", line 69, in apply_user_defaults
            super().apply_user_defaults(tool)
          File "/private/var/folders/11/v91c3qb92lg10fbgz1ptll4m0000gn/T/pip-build-env-tgu1esa4/overlay/lib/python3.10/site-packages/pyqtbuild/project.py", line 70, in apply_user_defaults
            super().apply_user_defaults(tool)
          File "/private/var/folders/11/v91c3qb92lg10fbgz1ptll4m0000gn/T/pip-build-env-tgu1esa4/overlay/lib/python3.10/site-packages/sipbuild/project.py", line 236, in apply_user_defaults
            self.builder.apply_user_defaults(tool)
          File "/private/var/folders/11/v91c3qb92lg10fbgz1ptll4m0000gn/T/pip-build-env-tgu1esa4/overlay/lib/python3.10/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.
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
"""

Desktop (please complete the following information):

  • OS: Ventura, Apple M1 on MacBookPro
  • Python version: 3.10.8
  • Version: pip

Additional context
Add any relevant data to this issue you are reporting.

@pedrocamargo
Copy link
Contributor

@RafalKucharskiPK , This is an upstream issue, so we have no control. I also don't have a machine with an M1 chip available for testing. What you can do for now is to install aequilibrae with the --no-deps flag and install all other requirements (e.g. scipy) manually.

@jamiecook
Copy link
Contributor

jamiecook commented May 10, 2023 via email

@lindsaymorgan
Copy link

lindsaymorgan commented Nov 17, 2023

@RafalKucharskiPK , This is an upstream issue, so we have no control. I also don't have a machine with an M1 chip available for testing. What you can do for now is to install aequilibrae with the --no-deps flag and install all other requirements (e.g. scipy) manually.

I am now trying to install AequilibraE in an arm64 base linux machine. I installed PyQt5 in advance but still met this problem. I also tried to add --no-deps flag but the install process still tried to install pyqt5 by itself. Is there any other solution? Or could I compile and install it from the source code? If so, how can I do it?

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

4 participants