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 find module "setuptools" #2

Closed
keyboard-magpie opened this issue Jun 15, 2020 · 7 comments
Closed

Comments

@keyboard-magpie
Copy link

Worked through this with u/Erovia on discord.
Trying to install as above.

import setuptools, tokenize
__file__ = 'setup.py'
exec(compile(getattr(tokenize, 'open', open)(__file__).read()
  .replace('\r\n', '\n'), __file__, 'exec'))
--no-user-cfg
install
--prefix=/private/tmp/qmk--homebrew-virtualenv-20200615-92033-c2kdig/target
--install-scripts=/private/tmp/qmk--homebrew-virtualenv-20200615-92033-c2kdig/target/bin
--single-version-externally-managed
--record=installed.txt

Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'setuptools'

Python is up to date and working at 3.7.3 (with a parallel 2.7 version still)
pip is version 20.1.1
setuptools is 44.1.1

Brew/macos/xcode as follows

HOMEBREW_VERSION: 2.4.0
ORIGIN: https://github.com/Homebrew/brew
HEAD: 28ed0801ed5807e176e62a3ba66e47ec867ec17d
Last commit: 5 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: f47c509c1d86b879287b9a4165f5d6038c07b7c2
Core tap last commit: 24 minutes ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_DISPLAY: /private/tmp/com.apple.launchd.Qk6KoAkkU0/org.macosforge.xquartz:0
HOMEBREW_MAKE_JOBS: 16
CPU: 16-core 64-bit skylake
Homebrew Ruby: 2.6.3 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
Clang: 11.0 build 1103
Git: 2.23.0 => /usr/local/bin/git
Curl: 7.64.1 => /usr/bin/curl
Java: 1.8.0_202
macOS: 10.15.4-x86_64
CLT: 11.5.0.0.1.1588476445
Xcode: 11.5
XQuartz: 2.7.11 => /opt/X11

Any suggestions from the macos/brew users of the qmk contributors would be appreciated.
Please let me know if there is any further info that would help.

@diegodesouza
Copy link

Getting the same response in my local.

@YangR13
Copy link

YangR13 commented Jun 29, 2020

Not sure if this is the same issue you're having, but I ran into this error when I didn't have pip installed for Python 3.
It looks like each pip installation is tied to the version of Python used to run the get-pip.py install script.

Installing pip for Python 3 by running python3 get-pip.py fixed this for me.

Hope this helps.

get-pip.py install script:
https://pip.pypa.io/en/stable/installing/#installing-with-get-pip-py

@keyboard-magpie
Copy link
Author

@YangR13 pip is sorted and working for other python3 projects. Just can't work out why its not recognising my setuptools install or how to bypass that.

@adamdpate
Copy link

Also running into the same issue.

@adamdpate
Copy link

For me the issue turned out to be that pip was installed, but not to the right place. Solution found here worked: https://stackoverflow.com/a/46631019

@bodiddlie
Copy link

None of the above worked for me, but following this finally seemed to work.
datawire/homebrew-blackbird#7 (comment)

@tgunderson
Copy link

@bodiddlie thanks for the solution. That worked for me too.

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

7 participants