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

scancode installed via pip command not working on Mac M1 #3166

Open
rohitcoder opened this issue Dec 1, 2022 · 2 comments
Open

scancode installed via pip command not working on Mac M1 #3166

rohitcoder opened this issue Dec 1, 2022 · 2 comments
Labels
Milestone

Comments

@rohitcoder
Copy link

Description

Hi, I'm trying to run this on my Mac M1, i installed from this command pip install scancode-toolkit but i'm getting below error, when i run scancode command

image

How To Reproduce

  1. pip install scancode-toolkit
  2. scancode
  3. You'll get error now

System configuration

For bug reports, it really helps us to know:

  • What OS are you running on? MacOS
  • What installation method was used to install/run scancode? pip
@rohitcoder rohitcoder added the bug label Dec 1, 2022
@pombredanne
Copy link
Member

pombredanne commented Dec 1, 2022

We have native C code and we need rosetta on M1 for now, though I would welcome help to compile and eventually port all of native deps to ARM.
For now, see for instance for the workarounds in https://github.com/nexB/scancode-toolkit/blob/d64acdded0b1f9e760cb9a5e47aecffab814b811/configure#L121 and f6064ea

TLDR; : either start a terminal in x86 mode or use arch -x86_64 to the same effect.
https://scancode-toolkit.readthedocs.io/en/stable/getting-started/install.html#system-requirements

Mac: on recent x86 64-bit macOS (10.15 and up, including 11 and 12), Use the X86 emulation mode on Apple ARM M1 CPUs.

@AyanSinhaMahapatra AyanSinhaMahapatra added this to the v32.0 milestone Jan 4, 2023
@pombredanne
Copy link
Member

We need to add more doc for this, but we cannot solve this short of having a free hosted CI for now. See also #3205 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants