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

Semgrep installing the wrong binary for Darwin #4505

Closed
1 of 3 tasks
ajinabraham opened this issue Jan 11, 2022 · 4 comments
Closed
1 of 3 tasks

Semgrep installing the wrong binary for Darwin #4505

ajinabraham opened this issue Jan 11, 2022 · 4 comments
Labels
bug Something isn't working devops Building issues, distribution issues, CI issues priority:high Issue requires immediate attention

Comments

@ajinabraham
Copy link
Contributor

Describe the bug

Install from pip copy over the wrong semgrep-core binary.

To Reproduce

  • pip install semgrep
  • run semgrep on a file
    raise child_exception_type(errno_num, err_msg, err_filename)
OSError: [Errno 8] Exec format error: '/Users/..../venv/lib/python3.8/site-packages/semgrep/bin/semgrep-core'
file semgrep-core 
semgrep-core: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, with debug_info, not stripped

I am on Mac Intel chip, using zsh.

uname -a
Darwin*** 20.6.0 Darwin Kernel Version 20.6.0: Wed Nov 10 22:23:07 PST 2021; root:xnu-7195.141.14~1/RELEASE_X86_64 x86_64

Semgrep version: 0.77.0
Python: 3.8.9

Expected behavior

Install a MachO semgrep-core.

Screenshots
If applicable, add screenshots to help explain your problem.

What is the priority of the bug to you?

  • P0: blocking your adoption of Semgrep or workflow
  • P1: important to fix or quite annoying
  • P2: regular bug that should get fixed

Environment
If not using semgrep.dev: are you running off docker, an official binary, a local build?

@IagoAbal IagoAbal added bug Something isn't working devops Building issues, distribution issues, CI issues priority:high Issue requires immediate attention labels Jan 12, 2022
@IagoAbal
Copy link
Collaborator

Probably the same as #4311.

@ajinabraham
Copy link
Contributor Author

This is Intel Mac

@brendongo
Copy link
Member

Could be #2402 ? What version of pip are you running?

@ajinabraham
Copy link
Contributor Author

That was it. Updating pip resolved it. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working devops Building issues, distribution issues, CI issues priority:high Issue requires immediate attention
Development

No branches or pull requests

3 participants