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

Issue trying to install on MacOS Ventura M2 Chip #378

Closed
inglesuniversal opened this issue Nov 18, 2022 · 8 comments
Closed

Issue trying to install on MacOS Ventura M2 Chip #378

inglesuniversal opened this issue Nov 18, 2022 · 8 comments
Labels
bug Something isn't working stale

Comments

@inglesuniversal
Copy link

inglesuniversal commented Nov 18, 2022

Describe the bug

Had no issues on MacOS Monterey Intel i5 Chip before ... but now, on a MacBook Air M2 running MacOS Ventura I had issues with a python library ...

    fatal error: 'longintrepr.h' file not found
            #include "longintrepr.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: legacy-install-failure
    
    × Encountered error while trying to install package.
    ╰─> cchardet

Command Used

pip3 install streamrip --upgrade

Debug Traceback

localuser@Users-Air ~ % pip3 install cchardet           
        Collecting cchardet
          Using cached cchardet-2.1.7.tar.gz (653 kB)
          Preparing metadata (setup.py) ... done
        Installing collected packages: cchardet
          DEPRECATION: cchardet is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559
          Running setup.py install for cchardet ... error
          error: subprocess-exited-with-error
          
          × Running setup.py install for cchardet did not run successfully.
          │ exit code: 1
          ╰─> [25 lines of output]
              running install
              /Users/localuser/.pyenv/versions/3.11.0/lib/python3.11/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
                warnings.warn(
              running build
              running build_py
              creating build
              creating build/lib.macosx-13.0-arm64-cpython-311
              creating build/lib.macosx-13.0-arm64-cpython-311/cchardet
              copying src/cchardet/version.py -> build/lib.macosx-13.0-arm64-cpython-311/cchardet
              copying src/cchardet/__init__.py -> build/lib.macosx-13.0-arm64-cpython-311/cchardet
              running build_ext
              building 'cchardet._cchardet' extension
              creating build/temp.macosx-13.0-arm64-cpython-311
              creating build/temp.macosx-13.0-arm64-cpython-311/src
              creating build/temp.macosx-13.0-arm64-cpython-311/src/cchardet
              creating build/temp.macosx-13.0-arm64-cpython-311/src/ext
              creating build/temp.macosx-13.0-arm64-cpython-311/src/ext/uchardet
              creating build/temp.macosx-13.0-arm64-cpython-311/src/ext/uchardet/src
              creating build/temp.macosx-13.0-arm64-cpython-311/src/ext/uchardet/src/LangModels
              clang -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -Isrc/ext/uchardet/src -I/Users/localuser/.pyenv/versions/3.11.0/include/python3.11 -c src/cchardet/_cchardet.cpp -o build/temp.macosx-13.0-arm64-cpython-311/src/cchardet/_cchardet.o
              src/cchardet/_cchardet.cpp:196:12: fatal error: 'longintrepr.h' file not found
                #include "longintrepr.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: legacy-install-failure
        
        × Encountered error while trying to install package.
        ╰─> cchardet
        
        note: This is an issue with the package mentioned above, not pip.
        hint: See above for output from the failure.

Config File

N/A

Operating System

MacOS Ventura

streamrip version

1.9.5

Screenshots and recordings

No response

Additional context

No response

@inglesuniversal inglesuniversal added the bug Something isn't working label Nov 18, 2022
@ghaithnotvertigo
Copy link

I've got the same issue on the m1 mac air 😞

@Justvitz676
Copy link

Justvitz676 commented Nov 24, 2022

I have the same issue on my Intel MacBook Air. Stream rip doesn't work on Monterey and Ventura because of apple updates I think.

@tas231
Copy link

tas231 commented Dec 29, 2022

I suggest to install Python 3.10 , version released around May 2022.
This will still allow 'setup.py install' method !

I tested with macbook pro (intel) 2019 and ventura. It worked.

@inglesuniversal
Copy link
Author

inglesuniversal commented Dec 30, 2022

Right on the money! It worked and it is also fair to say that I tested your solution on a MacBook Air 2022 with an M2 Chip

I even took the time to update a StackOverflow issue where the instructions on how to downgrade were not complete and were poorly written. Thanks for your awesome contribution to this very useful script.

StackOverflow

@Msterty
Copy link

Msterty commented Jan 19, 2023

https://github.com/nathom/streamrip/wiki/Installing-on-Apple-Silicon-Macs you can also install python using rosetta. Works for me on an M1 on Ventura

@stale
Copy link

stale bot commented Mar 20, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Mar 20, 2023
@nathom
Copy link
Owner

nathom commented Mar 23, 2023

I removed the cchardet dependency in the latest release so this should be resolved.

@stale stale bot removed the stale label Mar 23, 2023
@stale
Copy link

stale bot commented May 22, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label May 22, 2023
@stale stale bot closed this as completed May 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale
Projects
None yet
Development

No branches or pull requests

6 participants