Thanks to visit codestin.com
Credit goes to github.com

Skip to content

pip install fails on bdist_wheel #158

@dchassin

Description

@dchassin

The following pip install command fails on a Mac (Catalina) when running Python 3.9.6:

Note that the link provided in the deprecation warning is unhelpful, leaving the user to fend for themselves.

% python3 -m pip install metar               
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 metar
  Using cached metar-1.8.0.tar.gz (211 kB)
  Preparing metadata (setup.py) ... done
Building wheels for collected packages: metar
  Building wheel for metar (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/local/opt/[email protected]/bin/python3.9 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/83/g2b52wlj1vs5fcwdm05jt_zm0000gn/T/pip-install-bnpf2hbw/metar_e8b87925b40f4ecea7a59d54275d9f66/setup.py'"'"'; __file__='"'"'/private/var/folders/83/g2b52wlj1vs5fcwdm05jt_zm0000gn/T/pip-install-bnpf2hbw/metar_e8b87925b40f4ecea7a59d54275d9f66/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/83/g2b52wlj1vs5fcwdm05jt_zm0000gn/T/pip-wheel-hl2kvqg_
       cwd: /private/var/folders/83/g2b52wlj1vs5fcwdm05jt_zm0000gn/T/pip-install-bnpf2hbw/metar_e8b87925b40f4ecea7a59d54275d9f66/
  Complete output (6 lines):
  usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
     or: setup.py --help [cmd1 cmd2 ...]
     or: setup.py --help-commands
     or: setup.py cmd --help
  
  error: invalid command 'bdist_wheel'
  ----------------------------------------
  ERROR: Failed building wheel for metar
  Running setup.py clean for metar
Failed to build metar
Installing collected packages: metar
    Running setup.py install for metar ... error
    ERROR: Command errored out with exit status 1:
     command: /usr/local/opt/[email protected]/bin/python3.9 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/83/g2b52wlj1vs5fcwdm05jt_zm0000gn/T/pip-install-bnpf2hbw/metar_e8b87925b40f4ecea7a59d54275d9f66/setup.py'"'"'; __file__='"'"'/private/var/folders/83/g2b52wlj1vs5fcwdm05jt_zm0000gn/T/pip-install-bnpf2hbw/metar_e8b87925b40f4ecea7a59d54275d9f66/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/83/g2b52wlj1vs5fcwdm05jt_zm0000gn/T/pip-record-lio3yn76/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.9/metar
         cwd: /private/var/folders/83/g2b52wlj1vs5fcwdm05jt_zm0000gn/T/pip-install-bnpf2hbw/metar_e8b87925b40f4ecea7a59d54275d9f66/
    Complete output (14 lines):
    running install
    running build
    running build_py
    creating build
    creating build/lib
    creating build/lib/metar
    copying metar/Metar.py -> build/lib/metar
    copying metar/__init__.py -> build/lib/metar
    copying metar/Station.py -> build/lib/metar
    copying metar/Datatypes.py -> build/lib/metar
    copying metar/nsd_cccc.txt -> build/lib/metar
    running install_lib
    creating /usr/local/opt/[email protected]/lib/python3.9/site-packages/metar
    error: could not create '/usr/local/opt/[email protected]/lib/python3.9/site-packages/metar': Permission denied
    ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/local/opt/[email protected]/bin/python3.9 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/83/g2b52wlj1vs5fcwdm05jt_zm0000gn/T/pip-install-bnpf2hbw/metar_e8b87925b40f4ecea7a59d54275d9f66/setup.py'"'"'; __file__='"'"'/private/var/folders/83/g2b52wlj1vs5fcwdm05jt_zm0000gn/T/pip-install-bnpf2hbw/metar_e8b87925b40f4ecea7a59d54275d9f66/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/83/g2b52wlj1vs5fcwdm05jt_zm0000gn/T/pip-record-lio3yn76/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.9/metar Check the logs for full command output.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions