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

brew install qmk/qmk/qmk fails to install with pip error #5

Closed
jedimilk opened this issue Dec 2, 2020 · 21 comments
Closed

brew install qmk/qmk/qmk fails to install with pip error #5

jedimilk opened this issue Dec 2, 2020 · 21 comments

Comments

@jedimilk
Copy link

jedimilk commented Dec 2, 2020

Here is the error I am seeing when I run brew install qmk/qmk/qmk

Last 15 lines from /Users/austy/Library/Logs/Homebrew/qmk/10.pip:
    requirement.install(
  File "/usr/local/Cellar/qmk/0.0.36/libexec/lib/python3.9/site-packages/pip/_internal/req/req_install.py", line 856, in install
    six.reraise(*exc.parent)
  File "/usr/local/Cellar/qmk/0.0.36/libexec/lib/python3.9/site-packages/pip/_vendor/six.py", line 703, in reraise
    raise value
  File "/usr/local/Cellar/qmk/0.0.36/libexec/lib/python3.9/site-packages/pip/_internal/operations/install/legacy.py", line 74, in install
    runner(
  File "/usr/local/Cellar/qmk/0.0.36/libexec/lib/python3.9/site-packages/pip/_internal/utils/subprocess.py", line 273, in runner
    call_subprocess(
  File "/usr/local/Cellar/qmk/0.0.36/libexec/lib/python3.9/site-packages/pip/_internal/utils/subprocess.py", line 242, in call_subprocess
    raise InstallationError(exc_msg)
pip._internal.exceptions.InstallationError: Command errored out with exit status 1: /usr/local/Cellar/qmk/0.0.36/libexec/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/tmp/pip-req-build-xhqkxt92/setup.py'"'"'; __file__='"'"'/private/tmp/pip-req-build-xhqkxt92/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/tmp/pip-record-b632yznf/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/Cellar/qmk/0.0.36/libexec/include/site/python3.9/coverage Check the logs for full command output.
WARNING: You are using pip version 20.2.4; however, version 20.3 is available.
You should consider upgrading via the '/usr/local/Cellar/qmk/0.0.36/libexec/bin/python -m pip install --upgrade pip' command.

I have done quite a bit of troubleshooting and I can't see why it's seeing pip as 20.2.4 when my Mac is seeing it as 20.3

python3 -m pip --version
pip 20.3 from /Users/austy/Library/Python/3.8/lib/python/site-packages/pip (python 3.8)

Any help here would be nice. I'm assuming it's going to be something simple I'm just being blind.

@axsk
Copy link

axsk commented Dec 2, 2020

I have the same problem on MacOS 11.0.1

@bhlong
Copy link

bhlong commented Dec 2, 2020

Last 15 lines from /Users/bhlong/Library/Logs/Homebrew/qmk/10.pip:
    requirement.install(
  File "/usr/local/Cellar/qmk/0.0.36/libexec/lib/python3.9/site-packages/pip/_internal/req/req_install.py", line 856, in install
    six.reraise(*exc.parent)
  File "/usr/local/Cellar/qmk/0.0.36/libexec/lib/python3.9/site-packages/pip/_vendor/six.py", line 703, in reraise
    raise value
  File "/usr/local/Cellar/qmk/0.0.36/libexec/lib/python3.9/site-packages/pip/_internal/operations/install/legacy.py", line 74, in install
    runner(
  File "/usr/local/Cellar/qmk/0.0.36/libexec/lib/python3.9/site-packages/pip/_internal/utils/subprocess.py", line 273, in runner
    call_subprocess(
  File "/usr/local/Cellar/qmk/0.0.36/libexec/lib/python3.9/site-packages/pip/_internal/utils/subprocess.py", line 242, in call_subprocess
    raise InstallationError(exc_msg)
pip._internal.exceptions.InstallationError: Command errored out with exit status 1: /usr/local/Cellar/qmk/0.0.36/libexec/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/tmp/pip-req-build-e2k4zjvf/setup.py'"'"'; __file__='"'"'/private/tmp/pip-req-build-e2k4zjvf/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/tmp/pip-record-lsfhwmb4/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/Cellar/qmk/0.0.36/libexec/include/site/python3.9/coverage Check the logs for full command output.
WARNING: You are using pip version 20.2.4; however, version 20.3 is available.
You should consider upgrading via the '/usr/local/Cellar/qmk/0.0.36/libexec/bin/python -m pip install --upgrade pip' command.
Removed build tracker: '/private/tmp/pip-req-tracker-hphq66dj'

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
  https://github.com/qmk/homebrew-qmk/issues

These open issues may also help:
brew install qmk/qmk/qmk fails to install with pip error https://github.com/qmk/homebrew-qmk/issues/5
brew install qmk/qmk/qmk fails to find module "setuptools" https://github.com/qmk/homebrew-qmk/issues/2

I am having the same issue, also getting "setuptools" error on top of that. I have the latest versions of python, pip, setuptools. I've tried everything I could find online to no avail. I'm also on MacOS 11.0.1. If anyone can help that'd be great! And let me know if you need more information.

@axsk
Copy link

axsk commented Dec 2, 2020

a workaround for me was installing qmk directly via pip.

@bhlong
Copy link

bhlong commented Dec 2, 2020

a workaround for me was installing qmk directly via pip.

Yep that worked for me too, thanks! Unfortunately the official set up guide didn't mention anything about the possibility of installing via pip for mac os.

@jedimilk
Copy link
Author

jedimilk commented Dec 2, 2020

a workaround for me was installing qmk directly via pip.

Can you share the code that you ran to install it

@axsk
Copy link

axsk commented Dec 2, 2020

Can you share the code that you ran to install it

pip install qmk

Yep that worked for me too, thanks! Unfortunately the official set up guide didn't mention anything about the possibility of installing via pip for mac os.

Im still curious about the implications, anything besides not getting the updates automatically?

@skullydazed
Copy link
Member

The pip error message is a red herring. Can you share the entire log file located at ~/Library/Logs/Homebrew/qmk/10.pip? That should reveal the actual problem.

@jedimilk
Copy link
Author

jedimilk commented Dec 2, 2020

The pip error message is a red herring. Can you share the entire log file located at ~/Library/Logs/Homebrew/qmk/10.pip? That should reveal the actual problem.

Sure when I get home today I will send those logs

@bhlong
Copy link

bhlong commented Dec 2, 2020

The pip error message is a red herring. Can you share the entire log file located at ~/Library/Logs/Homebrew/qmk/10.pip? That should reveal the actual problem.

2020-12-02 10:10:45 -0500

/usr/local/Cellar/qmk/0.0.36/libexec/bin/pip
install
-v
--no-deps
--no-binary
:all:
--ignore-installed
/private/tmp/qmk--coverage-20201202-25955-1jtaf6f/coverage-5.3

Using pip 20.2.4 from /usr/local/Cellar/qmk/0.0.36/libexec/lib/python3.9/site-packages/pip (python 3.9)
Non-user install because user site-packages disabled
Created temporary directory: /private/tmp/pip-ephem-wheel-cache-hhfp_rhw
Created temporary directory: /private/tmp/pip-req-tracker-0e8fk4bf
Initialized build tracking at /private/tmp/pip-req-tracker-0e8fk4bf
Created build tracker: /private/tmp/pip-req-tracker-0e8fk4bf
Entered build tracker: /private/tmp/pip-req-tracker-0e8fk4bf
Created temporary directory: /private/tmp/pip-install-s6k_0twl
Processing /private/tmp/qmk--coverage-20201202-25955-1jtaf6f/coverage-5.3
  Created temporary directory: /private/tmp/pip-req-build-h4ftx6a3
  Added file:///private/tmp/qmk--coverage-20201202-25955-1jtaf6f/coverage-5.3 to build tracker '/private/tmp/pip-req-tracker-0e8fk4bf'
    Running setup.py (path:/private/tmp/pip-req-build-h4ftx6a3/setup.py) egg_info for package from file:///private/tmp/qmk--coverage-20201202-25955-1jtaf6f/coverage-5.3
    Created temporary directory: /private/tmp/pip-pip-egg-info-2hg1jlho
    Running command python setup.py egg_info
    running egg_info
    creating /private/tmp/pip-pip-egg-info-2hg1jlho/coverage.egg-info
    writing /private/tmp/pip-pip-egg-info-2hg1jlho/coverage.egg-info/PKG-INFO
    writing dependency_links to /private/tmp/pip-pip-egg-info-2hg1jlho/coverage.egg-info/dependency_links.txt
    writing entry points to /private/tmp/pip-pip-egg-info-2hg1jlho/coverage.egg-info/entry_points.txt
    writing requirements to /private/tmp/pip-pip-egg-info-2hg1jlho/coverage.egg-info/requires.txt
    writing top-level names to /private/tmp/pip-pip-egg-info-2hg1jlho/coverage.egg-info/top_level.txt
    writing manifest file '/private/tmp/pip-pip-egg-info-2hg1jlho/coverage.egg-info/SOURCES.txt'
    reading manifest file '/private/tmp/pip-pip-egg-info-2hg1jlho/coverage.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    warning: no previously-included files found matching 'ci/*.token'
    no previously-included directories found matching 'doc/_build'
    no previously-included directories found matching 'doc/_spell'
    no previously-included directories found matching 'tests/eggsrc/build'
    warning: no previously-included files matching '*.py[co]' found anywhere in distribution
    writing manifest file '/private/tmp/pip-pip-egg-info-2hg1jlho/coverage.egg-info/SOURCES.txt'
  Source in /private/tmp/pip-req-build-h4ftx6a3 has version 5.3, which satisfies requirement coverage==5.3 from file:///private/tmp/qmk--coverage-20201202-25955-1jtaf6f/coverage-5.3
  Removed coverage==5.3 from file:///private/tmp/qmk--coverage-20201202-25955-1jtaf6f/coverage-5.3 from build tracker '/private/tmp/pip-req-tracker-0e8fk4bf'
Skipping wheel build for coverage, due to binaries being disabled for it.
Installing collected packages: coverage
  Created temporary directory: /private/tmp/pip-record-uyfbye8c
    Running setup.py install for coverage: started
    Running command /usr/local/Cellar/qmk/0.0.36/libexec/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/tmp/pip-req-build-h4ftx6a3/setup.py'"'"'; __file__='"'"'/private/tmp/pip-req-build-h4ftx6a3/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/tmp/pip-record-uyfbye8c/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/Cellar/qmk/0.0.36/libexec/include/site/python3.9/coverage
    running install
    running build
    running build_py
    creating build
    creating build/lib.macosx-11-x86_64-3.9
    creating build/lib.macosx-11-x86_64-3.9/coverage
    copying coverage/misc.py -> build/lib.macosx-11-x86_64-3.9/coverage
    copying coverage/files.py -> build/lib.macosx-11-x86_64-3.9/coverage
    copying coverage/phystokens.py -> build/lib.macosx-11-x86_64-3.9/coverage
    copying coverage/optional.py -> build/lib.macosx-11-x86_64-3.9/coverage
    copying coverage/config.py -> build/lib.macosx-11-x86_64-3.9/coverage
    copying coverage/version.py -> build/lib.macosx-11-x86_64-3.9/coverage
    copying coverage/env.py -> build/lib.macosx-11-x86_64-3.9/coverage
    copying coverage/backunittest.py -> build/lib.macosx-11-x86_64-3.9/coverage
    copying coverage/templite.py -> build/lib.macosx-11-x86_64-3.9/coverage
    copying coverage/results.py -> build/lib.macosx-11-x86_64-3.9/coverage
    copying coverage/plugin_support.py -> build/lib.macosx-11-x86_64-3.9/coverage
    copying coverage/numbits.py -> build/lib.macosx-11-x86_64-3.9/coverage
    copying coverage/control.py -> build/lib.macosx-11-x86_64-3.9/coverage
    copying coverage/html.py -> build/lib.macosx-11-x86_64-3.9/coverage
    copying coverage/cmdline.py -> build/lib.macosx-11-x86_64-3.9/coverage
    copying coverage/collector.py -> build/lib.macosx-11-x86_64-3.9/coverage
    copying coverage/__init__.py -> build/lib.macosx-11-x86_64-3.9/coverage
    copying coverage/pytracer.py -> build/lib.macosx-11-x86_64-3.9/coverage
    copying coverage/annotate.py -> build/lib.macosx-11-x86_64-3.9/coverage
    copying coverage/sqldata.py -> build/lib.macosx-11-x86_64-3.9/coverage
    copying coverage/disposition.py -> build/lib.macosx-11-x86_64-3.9/coverage
    copying coverage/parser.py -> build/lib.macosx-11-x86_64-3.9/coverage
    copying coverage/summary.py -> build/lib.macosx-11-x86_64-3.9/coverage
    copying coverage/context.py -> build/lib.macosx-11-x86_64-3.9/coverage
    copying coverage/backward.py -> build/lib.macosx-11-x86_64-3.9/coverage
    copying coverage/xmlreport.py -> build/lib.macosx-11-x86_64-3.9/coverage
    copying coverage/debug.py -> build/lib.macosx-11-x86_64-3.9/coverage
    copying coverage/python.py -> build/lib.macosx-11-x86_64-3.9/coverage
    copying coverage/plugin.py -> build/lib.macosx-11-x86_64-3.9/coverage
    copying coverage/inorout.py -> build/lib.macosx-11-x86_64-3.9/coverage
    copying coverage/jsonreport.py -> build/lib.macosx-11-x86_64-3.9/coverage
    copying coverage/bytecode.py -> build/lib.macosx-11-x86_64-3.9/coverage
    copying coverage/tomlconfig.py -> build/lib.macosx-11-x86_64-3.9/coverage
    copying coverage/execfile.py -> build/lib.macosx-11-x86_64-3.9/coverage
    copying coverage/multiproc.py -> build/lib.macosx-11-x86_64-3.9/coverage
    copying coverage/__main__.py -> build/lib.macosx-11-x86_64-3.9/coverage
    copying coverage/report.py -> build/lib.macosx-11-x86_64-3.9/coverage
    copying coverage/data.py -> build/lib.macosx-11-x86_64-3.9/coverage
    creating build/lib.macosx-11-x86_64-3.9/coverage/htmlfiles
    copying coverage/htmlfiles/coverage_html.js -> build/lib.macosx-11-x86_64-3.9/coverage/htmlfiles
    copying coverage/htmlfiles/pyfile.html -> build/lib.macosx-11-x86_64-3.9/coverage/htmlfiles
    copying coverage/htmlfiles/index.html -> build/lib.macosx-11-x86_64-3.9/coverage/htmlfiles
    copying coverage/htmlfiles/jquery.tablesorter.min.js -> build/lib.macosx-11-x86_64-3.9/coverage/htmlfiles
    copying coverage/htmlfiles/keybd_open.png -> build/lib.macosx-11-x86_64-3.9/coverage/htmlfiles
    copying coverage/htmlfiles/jquery.isonscreen.js -> build/lib.macosx-11-x86_64-3.9/coverage/htmlfiles
    copying coverage/htmlfiles/jquery.min.js -> build/lib.macosx-11-x86_64-3.9/coverage/htmlfiles
    copying coverage/htmlfiles/style.scss -> build/lib.macosx-11-x86_64-3.9/coverage/htmlfiles
    copying coverage/htmlfiles/style.css -> build/lib.macosx-11-x86_64-3.9/coverage/htmlfiles
    copying coverage/htmlfiles/jquery.ba-throttle-debounce.min.js -> build/lib.macosx-11-x86_64-3.9/coverage/htmlfiles
    copying coverage/htmlfiles/keybd_closed.png -> build/lib.macosx-11-x86_64-3.9/coverage/htmlfiles
    copying coverage/htmlfiles/jquery.hotkeys.js -> build/lib.macosx-11-x86_64-3.9/coverage/htmlfiles
    creating build/lib.macosx-11-x86_64-3.9/coverage/fullcoverage
    copying coverage/fullcoverage/encodings.py -> build/lib.macosx-11-x86_64-3.9/coverage/fullcoverage
    running build_ext
    building 'coverage.tracer' extension
    creating build/temp.macosx-11-x86_64-3.9
    creating build/temp.macosx-11-x86_64-3.9/coverage
    creating build/temp.macosx-11-x86_64-3.9/coverage/ctracer
    clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk -I/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk/usr/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -I/usr/local/include -I/usr/local/opt/[email protected]/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/qmk/0.0.36/libexec/include -I/usr/local/Cellar/[email protected]/3.9.0_3/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c coverage/ctracer/datastack.c -o build/temp.macosx-11-x86_64-3.9/coverage/ctracer/datastack.o
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/tmp/pip-req-build-h4ftx6a3/setup.py", line 217, in <module>
        main()
      File "/private/tmp/pip-req-build-h4ftx6a3/setup.py", line 207, in main
        setup(**setup_args)
      File "/usr/local/Cellar/qmk/0.0.36/libexec/lib/python3.9/site-packages/setuptools/__init__.py", line 153, in setup
        return distutils.core.setup(**attrs)
      File "/usr/local/Cellar/[email protected]/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/core.py", line 148, in setup
        dist.run_commands()
      File "/usr/local/Cellar/[email protected]/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 966, in run_commands
        self.run_command(cmd)
      File "/usr/local/Cellar/[email protected]/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 985, in run_command
        cmd_obj.run()
      File "/usr/local/Cellar/qmk/0.0.36/libexec/lib/python3.9/site-packages/setuptools/command/install.py", line 61, in run
        return orig.install.run(self)
      File "/usr/local/Cellar/[email protected]/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/command/install.py", line 546, in run
        self.run_command('build')
      File "/usr/local/Cellar/[email protected]/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "/usr/local/Cellar/[email protected]/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 985, in run_command
        cmd_obj.run()
      File "/usr/local/Cellar/[email protected]/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/command/build.py", line 135, in run
        self.run_command(cmd_name)
      File "/usr/local/Cellar/[email protected]/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "/usr/local/Cellar/[email protected]/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 985, in run_command
        cmd_obj.run()
      File "/private/tmp/pip-req-build-h4ftx6a3/setup.py", line 152, in run
        build_ext.run(self)
      File "/usr/local/Cellar/[email protected]/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/command/build_ext.py", line 340, in run
        self.build_extensions()
      File "/usr/local/Cellar/[email protected]/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/command/build_ext.py", line 449, in build_extensions
        self._build_extensions_serial()
      File "/usr/local/Cellar/[email protected]/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/command/build_ext.py", line 474, in _build_extensions_serial
        self.build_extension(ext)
      File "/private/tmp/pip-req-build-h4ftx6a3/setup.py", line 161, in build_extension
        build_ext.build_extension(self, ext)
      File "/usr/local/Cellar/[email protected]/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/command/build_ext.py", line 529, in build_extension
        objects = self.compiler.compile(sources,
      File "/usr/local/Cellar/[email protected]/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/ccompiler.py", line 574, in compile
        self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
      File "/usr/local/Cellar/[email protected]/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/unixccompiler.py", line 117, in _compile
        self.spawn(compiler_so + cc_args + [src, '-o', obj] +
      File "/usr/local/Cellar/[email protected]/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/ccompiler.py", line 910, in spawn
        spawn(cmd, dry_run=self.dry_run)
      File "/usr/local/Cellar/[email protected]/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/spawn.py", line 66, in spawn
        if _cfg_target_split > [int(x) for x in cur_target.split('.')]:
    AttributeError: 'int' object has no attribute 'split'
    Running setup.py install for coverage: finished with status 'error'
ERROR: Command errored out with exit status 1: /usr/local/Cellar/qmk/0.0.36/libexec/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/tmp/pip-req-build-h4ftx6a3/setup.py'"'"'; __file__='"'"'/private/tmp/pip-req-build-h4ftx6a3/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/tmp/pip-record-uyfbye8c/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/Cellar/qmk/0.0.36/libexec/include/site/python3.9/coverage Check the logs for full command output.
Exception information:
Traceback (most recent call last):
  File "/usr/local/Cellar/qmk/0.0.36/libexec/lib/python3.9/site-packages/pip/_internal/req/req_install.py", line 838, in install
    success = install_legacy(
  File "/usr/local/Cellar/qmk/0.0.36/libexec/lib/python3.9/site-packages/pip/_internal/operations/install/legacy.py", line 86, in install
    raise LegacyInstallFailure
pip._internal.operations.install.legacy.LegacyInstallFailure

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/Cellar/qmk/0.0.36/libexec/lib/python3.9/site-packages/pip/_internal/cli/base_command.py", line 228, in _main
    status = self.run(options, args)
  File "/usr/local/Cellar/qmk/0.0.36/libexec/lib/python3.9/site-packages/pip/_internal/cli/req_command.py", line 182, in wrapper
    return func(self, options, args)
  File "/usr/local/Cellar/qmk/0.0.36/libexec/lib/python3.9/site-packages/pip/_internal/commands/install.py", line 397, in run
    installed = install_given_reqs(
  File "/usr/local/Cellar/qmk/0.0.36/libexec/lib/python3.9/site-packages/pip/_internal/req/__init__.py", line 82, in install_given_reqs
    requirement.install(
  File "/usr/local/Cellar/qmk/0.0.36/libexec/lib/python3.9/site-packages/pip/_internal/req/req_install.py", line 856, in install
    six.reraise(*exc.parent)
  File "/usr/local/Cellar/qmk/0.0.36/libexec/lib/python3.9/site-packages/pip/_vendor/six.py", line 703, in reraise
    raise value
  File "/usr/local/Cellar/qmk/0.0.36/libexec/lib/python3.9/site-packages/pip/_internal/operations/install/legacy.py", line 74, in install
    runner(
  File "/usr/local/Cellar/qmk/0.0.36/libexec/lib/python3.9/site-packages/pip/_internal/utils/subprocess.py", line 273, in runner
    call_subprocess(
  File "/usr/local/Cellar/qmk/0.0.36/libexec/lib/python3.9/site-packages/pip/_internal/utils/subprocess.py", line 242, in call_subprocess
    raise InstallationError(exc_msg)
pip._internal.exceptions.InstallationError: Command errored out with exit status 1: /usr/local/Cellar/qmk/0.0.36/libexec/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/tmp/pip-req-build-h4ftx6a3/setup.py'"'"'; __file__='"'"'/private/tmp/pip-req-build-h4ftx6a3/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/tmp/pip-record-uyfbye8c/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/Cellar/qmk/0.0.36/libexec/include/site/python3.9/coverage Check the logs for full command output.
WARNING: You are using pip version 20.2.4; however, version 20.3 is available.
You should consider upgrading via the '/usr/local/Cellar/qmk/0.0.36/libexec/bin/python -m pip install --upgrade pip' command.
Removed build tracker: '/private/tmp/pip-req-tracker-0e8fk4bf'

HOMEBREW_VERSION: 2.6.0
ORIGIN: https://github.com/Homebrew/brew
HEAD: 1d5e354cc2ff048bd7161d95b3fa7f91dc9dd081
Last commit: 26 hours ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: fdb83fcfb482e5ed1f1c3c442a85b99223fcabeb
Core tap last commit: 2 hours ago
Core tap branch: master
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CASK_OPTS: []
HOMEBREW_DISPLAY: /private/tmp/com.apple.launchd.wMDoxzkaOT/org.macosforge.xquartz:0
HOMEBREW_MAKE_JOBS: 4
Homebrew Ruby: 2.6.3 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: quad-core 64-bit skylake
Clang: 12.0 build 1200
Git: 2.24.3 => /Library/Developer/CommandLineTools/usr/bin/git
Curl: 7.64.1 => /usr/bin/curl
Java: 1.8.0_161, 1.8.0_101
macOS: 11.0.1-x86_64
CLT: 12.2.0.0.1.1604076827
Xcode: 12.2
XQuartz: 2.7.11 => /opt/X11

HOMEBREW_CC: clang
HOMEBREW_CXX: clang++
MAKEFLAGS: -j4
CMAKE_PREFIX_PATH: /usr/local/opt/arm-gcc-bin@8:/usr/local/opt/avr-gcc@8:/usr/local/opt/[email protected]:/usr/local/opt/readline:/usr/local/opt/sqlite:/usr/local
CMAKE_INCLUDE_PATH: /Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
CMAKE_LIBRARY_PATH: /Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
CMAKE_FRAMEWORK_PATH: /usr/local/opt/[email protected]/Frameworks
PKG_CONFIG_PATH: /usr/local/opt/libelf/lib/pkgconfig:/usr/local/opt/libusb/lib/pkgconfig:/usr/local/opt/libusb-compat/lib/pkgconfig:/usr/local/opt/libftdi0/lib/pkgconfig:/usr/local/opt/libhid/lib/pkgconfig:/usr/local/opt/gmp/lib/pkgconfig:/usr/local/opt/isl/lib/pkgconfig:/usr/local/opt/mpfr/lib/pkgconfig:/usr/local/opt/[email protected]/lib/pkgconfig:/usr/local/opt/readline/lib/pkgconfig:/usr/local/opt/sqlite/lib/pkgconfig:/usr/local/opt/xz/lib/pkgconfig:/usr/local/opt/[email protected]/lib/pkgconfig
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/usr/local/Homebrew/Library/Homebrew/os/mac/pkgconfig/11.0
HOMEBREW_GIT: git
HOMEBREW_SDKROOT: /Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk
ACLOCAL_PATH: /usr/local/share/aclocal
PATH: /usr/local/Homebrew/Library/Homebrew/shims/mac/super:/usr/local/opt/libusb-compat/bin:/usr/local/opt/libftdi0/bin:/usr/local/opt/libhid/bin:/usr/local/opt/avrdude/bin:/usr/local/opt/bootloadhid/bin:/usr/local/opt/clang-format/bin:/usr/local/opt/dfu-programmer/bin:/usr/local/opt/dfu-util/bin:/usr/local/opt/arm-gcc-bin@8/bin:/usr/local/opt/avr-binutils/bin:/usr/local/opt/avr-gcc@8/bin:/usr/local/opt/gdbm/bin:/usr/local/opt/[email protected]/bin:/usr/local/opt/sqlite/bin:/usr/local/opt/xz/bin:/usr/local/opt/[email protected]/bin:/usr/local/opt/teensy_loader_cli/bin:/usr/bin:/bin:/usr/sbin:/sbin

These are my logs. Looks like there's an attribute error.

@bhlong
Copy link

bhlong commented Dec 2, 2020

Im still curious about the implications, anything besides not getting the updates automatically?

Not sure if it is related, but I also encountered problems when running qmk setup about not being able to find some executables. I resolved that by running qmk_firmware/util/qmk_install.sh manually.

@skullydazed
Copy link
Member

Looks like a problem installing the coverage dependency. Can you try running pip3 install coverage to see what happens?

@bhlong
Copy link

bhlong commented Dec 2, 2020

Looks like a problem installing the coverage dependency. Can you try running pip3 install coverage to see what happens?

I get Requirement already satisfied: coverage in /usr/local/lib/python3.9/site-packages (5.3)

@jedimilk
Copy link
Author

jedimilk commented Dec 3, 2020

The pip error message is a red herring. Can you share the entire log file located at ~/Library/Logs/Homebrew/qmk/10.pip? That should reveal the actual problem.

Sure when I get home today I will send those logs

Looks like I don't even have that directory?

austy@Austins-MacBook-Pro ~ % cat ~/Library/Logs/Hombrew/qmk/10.pip
cat: /Users/austy/Library/Logs/Hombrew/qmk/10.pip: No such file or directory

Another thing I noticed is consistent with each failure

==> python3 -c import setuptools... --no-user-cfg install --prefix=/private/tmp/qmk--homebrew-virtualenv-20201202-10437-1wjega8/target/vendor --install-scrip
==> python3 -c import setuptools... --no-user-cfg install --prefix=/private/tmp/qmk--homebrew-virtualenv-20201202-10437-1wjega8/target/vendor --install-scrip
==> python3 -c import setuptools... --no-user-cfg install --prefix=/private/tmp/qmk--homebrew-virtualenv-20201202-10437-1wjega8/target/vendor --install-scrip
==> python3 -c import setuptools... --no-user-cfg install --prefix=/private/tmp/qmk--homebrew-virtualenv-20201202-10437-1wjega8/target/vendor --install-scrip
==> python3 -c import setuptools... --no-user-cfg install --prefix=/private/tmp/qmk--homebrew-virtualenv-20201202-10437-1wjega8/target --install-scripts=/pri
==> python3 -s /private/tmp/qmk--homebrew-virtualenv-20201202-10437-1wjega8/target/bin/virtualenv -p python3 /usr/local/Cellar/qmk/0.0.36/libexec
==> /usr/local/Cellar/qmk/0.0.36/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/qmk--appdirs-20201202-10437-1d3bftu/a
==> /usr/local/Cellar/qmk/0.0.36/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/qmk--argcomplete-20201202-10437-q68qz
==> /usr/local/Cellar/qmk/0.0.36/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/qmk--colorama-20201202-10437-16corci/
==> /usr/local/Cellar/qmk/0.0.36/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/qmk--coverage-20201202-10437-130dane/
Last 15 lines from /Users/austy/Library/Logs/Homebrew/qmk/10.pip:
    requirement.install(
  File "/usr/local/Cellar/qmk/0.0.36/libexec/lib/python3.9/site-packages/pip/_internal/req/req_install.py", line 856, in install
    six.reraise(*exc.parent)
  File "/usr/local/Cellar/qmk/0.0.36/libexec/lib/python3.9/site-packages/pip/_vendor/six.py", line 703, in reraise
    raise value
  File "/usr/local/Cellar/qmk/0.0.36/libexec/lib/python3.9/site-packages/pip/_internal/operations/install/legacy.py", line 74, in install
    runner(
  File "/usr/local/Cellar/qmk/0.0.36/libexec/lib/python3.9/site-packages/pip/_internal/utils/subprocess.py", line 273, in runner
    call_subprocess(
  File "/usr/local/Cellar/qmk/0.0.36/libexec/lib/python3.9/site-packages/pip/_internal/utils/subprocess.py", line 242, in call_subprocess
    raise InstallationError(exc_msg)
pip._internal.exceptions.InstallationError: Command errored out with exit status 1: /usr/local/Cellar/qmk/0.0.36/libexec/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/tmp/pip-req-build-azdm8b2e/setup.py'"'"'; __file__='"'"'/private/tmp/pip-req-build-azdm8b2e/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/tmp/pip-record-xuyenq7d/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/Cellar/qmk/0.0.36/libexec/include/site/python3.9/coverage Check the logs for full command output.
WARNING: You are using pip version 20.2.4; however, version 20.3 is available.
You should consider upgrading via the '/usr/local/Cellar/qmk/0.0.36/libexec/bin/python -m pip install --upgrade pip' command.
Removed build tracker: '/private/tmp/pip-req-tracker-j0_wdzmk'

It looks like it's getting hung on setuptools although I could be wrong.

@blacksunix2
Copy link

blacksunix2 commented Apr 28, 2021

Here is what I am seeing with MacOS 11.3:

Last 15 lines from /Users//Library/Logs/Homebrew/qmk/04.pip:
File "/usr/local/Cellar/qmk/0.0.45/libexec/lib/python3.9/site-packages/pip/_internal/utils/subprocess.py", line 258, in call_subprocess
raise InstallationSubprocessError(proc.returncode, command_desc)
pip._internal.exceptions.InstallationSubprocessError: Command errored out with exit status 1: /usr/local/Cellar/qmk/0.0.45/libexec/bin/python3.9 /usr/local/Cellar/qmk/0.0.45/libexec/lib/python3.9/site-packages/pip install --ignore-installed --no-user --prefix /private/tmp/pip-build-env-i51h51bd/overlay --no-warn-script-location -v --no-binary :all: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=40.6.0' wheel Check the logs for full command output.
1 location(s) to search for versions of pip:

  • https://pypi.org/simple/pip/
    Fetching project page and analyzing links: https://pypi.org/simple/pip/
    Getting page https://pypi.org/simple/pip/
    Found index url https://pypi.org/simple
    Looking up "https://pypi.org/simple/pip/" in the cache
    Request header has "max_age" as 0, cache bypassed
    Starting new HTTPS connection (1): pypi.org:443
    Could not fetch URL https://pypi.org/simple/pip/: connection error: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=5)")) - skipping
    Given no hashes to check 0 links for project 'pip': discarding no candidates
    Removed file:///private/tmp/qmk--attrs-20210428-65457-1avy8fd/attrs-20.3.0 from build tracker '/private/tmp/pip-req-tracker-ocijznqm'
    Removed build tracker: '/private/tmp/pip-req-tracker-ocijznqm'

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/qmk/homebrew-qmk/issues

These open issues may also help:
brew install qmk/qmk/qmk fails to install with pip error #5

Interestingly:

python3 -m pip --version
pip 21.0.1 from /usr/local/lib/python3.9/site-packages/pip (python 3.9)

And this?

pip3 install qmk
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/qmk/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/qmk/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/qmk/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/qmk/
^CERROR: Operation cancelled by user

@blacksunix2
Copy link

Any estimate as to when this issue might be attended to?

@skullydazed
Copy link
Member

Any estimate as to when this issue might be attended to?

When we have something we can action.

Your issue seems to be that pypi.org, or your path to pypi.org, is broken. There's nothing we can do to fix that, it's a problem you'll have to resolve yourself. The other reported issues are either transient or we haven't been able to reproduce them. Without the ability to reproduce them or someone who is affected suggesting a specific fix there's not a whole lot we can do, even though we want to ensure that everyone can install qmk.

@blacksunix2
Copy link

blacksunix2 commented May 5, 2021 via email

@skullydazed
Copy link
Member

It's working fine here:

$ python3 -m pip install qmk
Collecting qmk
  Using cached qmk-0.0.45-py2.py3-none-any.whl (9.3 kB)
Requirement already satisfied: milc>=1.3.0 in ./.local/lib/python3.8/site-packages (from qmk) (1.3.0)
Requirement already satisfied: colorama in ./.local/lib/python3.8/site-packages (from qmk) (0.4.4)
Requirement already satisfied: hjson in ./.local/lib/python3.8/site-packages (from qmk) (3.0.2)
Requirement already satisfied: flake8 in ./.local/lib/python3.8/site-packages (from qmk) (3.9.1)
Requirement already satisfied: appdirs in ./.local/lib/python3.8/site-packages (from qmk) (1.4.4)
Requirement already satisfied: pygments in ./.local/lib/python3.8/site-packages (from qmk) (2.8.1)
Requirement already satisfied: dotty-dict in ./.local/lib/python3.8/site-packages (from qmk) (1.3.0)
Requirement already satisfied: jsonschema>=3 in ./.local/lib/python3.8/site-packages (from qmk) (3.2.0)
Requirement already satisfied: nose2 in ./.local/lib/python3.8/site-packages (from qmk) (0.10.0)
Requirement already satisfied: yapf in ./.local/lib/python3.8/site-packages (from qmk) (0.31.0)
Requirement already satisfied: argcomplete in ./.local/lib/python3.8/site-packages (from qmk) (1.12.3)
Requirement already satisfied: mccabe<0.7.0,>=0.6.0 in ./.local/lib/python3.8/site-packages (from flake8->qmk) (0.6.1)
Requirement already satisfied: pycodestyle<2.8.0,>=2.7.0 in ./.local/lib/python3.8/site-packages (from flake8->qmk) (2.7.0)
Requirement already satisfied: pyflakes<2.4.0,>=2.3.0 in ./.local/lib/python3.8/site-packages (from flake8->qmk) (2.3.1)
Requirement already satisfied: setuptools-scm in ./.local/lib/python3.8/site-packages (from dotty-dict->qmk) (6.0.1)
Requirement already satisfied: setuptools in /usr/lib/python3/dist-packages (from jsonschema>=3->qmk) (45.2.0)
Requirement already satisfied: pyrsistent>=0.14.0 in ./.local/lib/python3.8/site-packages (from jsonschema>=3->qmk) (0.17.3)
Requirement already satisfied: six>=1.11.0 in /usr/lib/python3/dist-packages (from jsonschema>=3->qmk) (1.14.0)
Requirement already satisfied: attrs>=17.4.0 in ./.local/lib/python3.8/site-packages (from jsonschema>=3->qmk) (20.3.0)
Requirement already satisfied: coverage>=4.4.1 in ./.local/lib/python3.8/site-packages (from nose2->qmk) (5.5)
Installing collected packages: qmk
Successfully installed qmk-0.0.45

Are you able to download the package manually with wget https://files.pythonhosted.org/packages/99/bb/131bbeab7521c3ca57c6193c03019026bd9115bc6f396b5366ca44c67da8/qmk-0.0.45.tar.gz?

@blacksunix2
Copy link

blacksunix2 commented May 5, 2021 via email

@skullydazed
Copy link
Member

Do you need to setup proxy settings? On some systems the CLI tools don't pick up the proxy set by the GUI. Otherwise I'm not sure what could be going on, seems like something local to your system.

@blacksunix2
Copy link

blacksunix2 commented May 5, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants