multi-build/multibuild

Python3.6 PermissionError: [Errno 1] Operation not permitted: 'cert.pem'

Closed this issue · 3 comments

Hi, our project (Protocol buffer team) release is reporting this error:

  • curl https://www.python.org/ftp/python/3.6.8/python-3.6.8-macosx10.9.pkg
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed

    0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
    5 25.8M 5 1401k 0 0 2131k 0 0:00:12 --:--:-- 0:00:12 2129k
    37 25.8M 37 9953k 0 0 6005k 0 0:00:04 0:00:01 0:00:03 6003k
    100 25.8M 100 25.8M 0 0 10.7M 0 0:00:02 0:00:02 --:--:-- 10.7M

  • '[' pkg == dmg ']'

  • sudo installer -pkg downloads/python-3.6.8-macosx10.9.pkg -target /
    installer: Package name is Python
    installer: Upgrading at base path /
    installer: The upgrade was successful.

  • local py_mm=3.6

  • PYTHON_EXE=/Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6

  • local 'inst_cmd=/Applications/Python 3.6/Install Certificates.command'

  • '[' -e '/Applications/Python 3.6/Install Certificates.command' ']'

  • sh '/Applications/Python 3.6/Install Certificates.command'
    Requirement already up-to-date: certifi in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (2019.11.28)
    WARNING: You are using pip version 19.1.1, however version 20.0.2 is available.
    You should consider upgrading via the 'pip install --upgrade pip' command.
    -- pip install --upgrade certifi
    -- removing any existing file or link
    -- creating symlink to certifi certificate bundle
    -- setting permissions
    Traceback (most recent call last):
    File "", line 44, in
    File "", line 40, in main
    PermissionError: [Errno 1] Operation not permitted: 'cert.pem'

I am wondering if you happen to know this issue?

I don't know this issue - no - that's odd. Maybe try putting 'sudo' in front of the installation command, as in:

sudo sh "$inst_cmd"

@anandolee any news?

Closing. Please reopen or open a new issue if this problem reappears