Permissions error during pip install on MacOS/Homebrew Python3
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 停滞
- 技術スタック
- python
- 領域
- build-system
調査の方向性
まず setup.py と MANIFEST.in を調査し、次に macOS 上で Homebrew Python 3 の pip3 install を再現します。パッケージのインストールで README.rst、CHANGELOG.rst、または LICENSE を /usr/local にコピーしようとせず、権限エラーなしで完了すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Hi,
I ran into a permissions error during pip3 install as your setup.py seems to want to copy data files to /usr/local on my machine, i.e.
$ pip3 install base64io
DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621
Collecting base64io
Using cached base64io-1.0.3-py2.py3-none-any.whl (17 kB)
Installing collected packages: base64io
ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: '/usr/local/CHANGELOG.rst'
Consider using the `--user` option or check the permissions.
As it happens, the installation does still succeed, despite the error message indicating otherwise.
I realise I can simply perform a --user install and work around this issue, but I don't think that should be necessary. I'm using Homebrew installed Python 3.9.5 on MacOS, both pip3 and python3 are in /usr/local/bin.
I think this can be solved by replacing
data_files=["README.rst", "CHANGELOG.rst", "LICENSE"],
with
include_package_data=True,
in setup.py as the files are already listed for inclusion in MANIFEST.in.
- 主要言語
- Python
- スター
- 42
- フォーク
- 30
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
aws/base64io-python のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
aws/base64io-python#40 · リアクション 1 件 ·
aws/base64io-python の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
use-agent-os/agent-os#3314 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
BasedHardware/omi#15662 · コメント 1 件 ·
-
documentation help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
AiursoftWeb/AnduinOS-2#19 ·