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

[BUG] Cannot install from sdist wheel on linux without sudo #225

Closed
T-256 opened this issue Jan 24, 2024 · 0 comments · Fixed by #233
Closed

[BUG] Cannot install from sdist wheel on linux without sudo #225

T-256 opened this issue Jan 24, 2024 · 0 comments · Fixed by #233
Assignees
Labels
bug Something isn't working

Comments

@T-256
Copy link
Contributor

T-256 commented Jan 24, 2024

Ref: #192

~$ python3 -m pip install curl_cffi-0.6.0b8.tar.gz
Defaulting to user installation because normal site-packages is not writeable
Processing ./curl_cffi-0.6.0b8.tar.gz
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting cffi>=1.12.0 (from curl_cffi==0.6.0b8)
  Using cached cffi-1.16.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (1.5 kB)
Requirement already satisfied: certifi in /usr/lib/python3/dist-packages (from curl_cffi==0.6.0b8) (2019.11.28)
Collecting pycparser (from cffi>=1.12.0->curl_cffi==0.6.0b8)
  Using cached pycparser-2.21-py2.py3-none-any.whl (118 kB)
Using cached cffi-1.16.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (444 kB)
Building wheels for collected packages: curl_cffi
  Building wheel for curl_cffi (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for curl_cffi (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [5 lines of output]
      running bdist_wheel
      running build
      Downloading libcurl-impersonate-chrome from https://github.com/yifeikong/curl-impersonate/releases/download/v0.6.0b8/libcurl-impersonate-v0.6.0b8.x86_64-linux-gnu.tar.gz...
      Unpacking downloaded files...
      error: [Errno 13] Permission denied: '/usr/local/lib/libcurl-impersonate-chrome.a'
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for curl_cffi
Failed to build curl_cffi
ERROR: Could not build wheels for curl_cffi, which is required to install pyproject.toml-based projects

I can confirm sudo python3 -m pip install curl_cffi-0.6.0b8.tar.gz works on ubuntu20.04.

Perhaps possible solution is using another directory instead of /usr/local/lib/ for shared lib.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants