Pegasus installation issues for macOS

70 views
Skip to first unread message

He, Yiwen

unread,
May 18, 2023, 4:32:56 PM5/18/23
to cumulus...@googlegroups.com
Hi,

I tried to install pegasus via conda but there was an error message shown below:

Collecting package metadata (current_repodata.json): done

Solving environment: failed with initial frozen solve. Retrying with flexible solve.

Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.

Collecting package metadata (repodata.json): done

Solving environment: failed with initial frozen solve. Retrying with flexible solve.

Solving environment: \ 

Found conflicts! Looking for incompatible packages.

This can take several minutes.  Press CTRL-C to abort.

failed                                                                                                                             


UnsatisfiableError: The following specifications were found to be incompatible with each other:


Output in format: Requested package -> Available versionsThe following specifications were found to be incompatible with your system:


  - feature:/osx-64::__osx==10.16=0

  - feature:|@/osx-64::__osx==10.16=0

  - pegasuspy -> matplotlib-base[version='>=2.0.0'] -> __osx[version='>=10.11']


Your installed version is: 10.16


I also tried to install via PyPI using the command shown below:
python3 -m pip install pegasuspy[all]
However, I also got the error message shown below:

File "/private/var/folders/q3/5c3brbz521g1mzm7fy8r9mnm0000gn/T/pip-install-pam14b7k/lightgbm_27ebb7881ee143a782cc18597a714dfc/setup.py", line 99, in silent_call

          raise Exception("\n".join((error_msg, LOG_NOTICE)))

      Exception: Please install CMake and all required dependencies first

      The full version of error log was saved into /Users/cynthia/LightGBM_compilation.log

      [end of output]

  

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

  ERROR: Failed building wheel for lightgbm

  Running setup.py clean for lightgbm

  Building wheel for fitsne (setup.py) ... error

  error: subprocess-exited-with-error

  

  × python setup.py bdist_wheel did not run successfully.

  exit code: 1

  ╰─> [46 lines of output]

      Warning: passing language='c++' to cythonize() is deprecated. Instead, put "# distutils: language=c++" in your .pyx or .pxd file(s)

      /opt/homebrew/lib/python3.11/site-packages/setuptools/dist.py:788: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead

        warnings.warn(

      running bdist_wheel

      running build

      running build_py

      creating build

      creating build/lib.macosx-12-arm64-cpython-311

      creating build/lib.macosx-12-arm64-cpython-311/fitsne

      copying fitsne/_version.py -> build/lib.macosx-12-arm64-cpython-311/fitsne

      copying fitsne/__init__.py -> build/lib.macosx-12-arm64-cpython-311/fitsne

      copying fitsne/cywrap.py -> build/lib.macosx-12-arm64-cpython-311/fitsne

      running build_ext

      building 'fitsne.cppwrap' extension

      creating build/temp.macosx-12-arm64-cpython-311

      creating build/temp.macosx-12-arm64-cpython-311/fitsne

      creating build/temp.macosx-12-arm64-cpython-311/fitsne/src

      clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Ifitsne -I/opt/homebrew/opt/pyt...@3.11/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c fitsne/cppwrap.cpp -o build/temp.macosx-12-arm64-cpython-311/fitsne/cppwrap.o -std=c++11 -O3 -pthread -lfftw3 -lm

      clang: warning: -lfftw3: 'linker' input unused [-Wunused-command-line-argument]

      clang: warning: -lm: 'linker' input unused [-Wunused-command-line-argument]

      clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Ifitsne -I/opt/homebrew/opt/pyt...@3.11/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c fitsne/src/nbodyfft.cpp -o build/temp.macosx-12-arm64-cpython-311/fitsne/src/nbodyfft.o -std=c++11 -O3 -pthread -lfftw3 -lm

      clang: warning: -lfftw3: 'linker' input unused [-Wunused-command-line-argument]

      clang: warning: -lm: 'linker' input unused [-Wunused-command-line-argument]

      In file included from fitsne/src/nbodyfft.cpp:4:

      fitsne/src/nbodyfft.h:7:10: fatal error: 'fftw3.h' file not found

      #include <fftw3.h>

               ^~~~~~~~~

      1 error generated.

      Warning: passing language='c++' to cythonize() is deprecated. Instead, put "# distutils: language=c++" in your .pyx or .pxd file(s)

      running bdist_wheel

      running build

      running build_py

      running build_ext

      building 'fitsne.cppwrap' extension

      clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Ifitsne -I/opt/homebrew/opt/pyt...@3.11/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c fitsne/cppwrap.cpp -o build/temp.macosx-12-arm64-cpython-311/fitsne/cppwrap.o -std=c++11 -O3 -pthread -lfftw3 -lm -stdlib=libc++

      clang: warning: -lfftw3: 'linker' input unused [-Wunused-command-line-argument]

      clang: warning: -lm: 'linker' input unused [-Wunused-command-line-argument]

      clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Ifitsne -I/opt/homebrew/opt/pyt...@3.11/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c fitsne/src/nbodyfft.cpp -o build/temp.macosx-12-arm64-cpython-311/fitsne/src/nbodyfft.o -std=c++11 -O3 -pthread -lfftw3 -lm -stdlib=libc++

      clang: warning: -lfftw3: 'linker' input unused [-Wunused-command-line-argument]

      clang: warning: -lm: 'linker' input unused [-Wunused-command-line-argument]

      In file included from fitsne/src/nbodyfft.cpp:4:

      fitsne/src/nbodyfft.h:7:10: fatal error: 'fftw3.h' file not found

      #include <fftw3.h>

               ^~~~~~~~~

      1 error generated.

      error: command '/usr/bin/clang' failed with exit code 1

      [end of output]

  

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

  ERROR: Failed building wheel for fitsne

  Running setup.py clean for fitsne

Failed to build lightgbm fitsne

ERROR: Could not build wheels for lightgbm, fitsne, which is required to install pyproject.toml-based projects


I am wondering how to solve this problem. Thanks.

By the way, my python version is Python 3.11.3 and macOS is Monterey version 12.5, Apple M2 chip

Best,
Yiwen

Bo Li

unread,
May 28, 2023, 8:40:08 PM5/28/23
to He, Yiwen, cumulus...@googlegroups.com, Yiming Yang
Hi Yiming,

Can you take a look when you have time?

Thanks,
Bo

Bo Li, Ph.D.
Principal Scientist, 
Cellular and Tissue Genomics,
Genentech, A Member of the Roche Group



--
You received this message because you are subscribed to the Google Groups "Cumulus Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cumulus-suppo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cumulus-support/BYAPR07MB59604F171E9DE50433AE420DE37F9%40BYAPR07MB5960.namprd07.prod.outlook.com.
Reply all
Reply to author
Forward
0 new messages