-
-
Notifications
You must be signed in to change notification settings - Fork 11.3k
Python/Python3: Fix RuntimeError: tk.h version (8.6) doesn't match libtk.a version (8.5) #41728
Python/Python3: Fix RuntimeError: tk.h version (8.6) doesn't match libtk.a version (8.5) #41728
Conversation
The problem was that CPPFLAGS and LDFLAGS for brewed Tk were specified to environment variable but Python (seems) prefer the CPPFLAGS in arguments specified to './configure', mean "-I#{MacOS.sdk_path}/usr/include" version is used. This commit would fix issue Homebrew#18657
Thanks for the pull request! This looks reasonable; I'll review this more carefully soon. I think I know how to reproduce this but can you share the output of |
Sure but currently I don't have my Mac so give me a time to share my |
Ok. Now I cannot reproduce the error with the latest homebrew (it seems the sourceforge for tk is down now, thus I just download archives from ftp and used it). So should I close this issue or do you want to review anyway while the changes looked reasonable? |
I'm experiencing the same issue. Cristians-MacBook-Pro:~ cristianjgomez$ brew config HOMEBREW_VERSION: 0.9.5 ORIGIN: https://github.com/Homebrew/homebrew HEAD: 6f4f74dc4ea040ccb17f2fecdd791a7e5b1eaa9b Last commit: 38 minutes ago HOMEBREW_PREFIX: /usr/local HOMEBREW_REPOSITORY: /usr/local HOMEBREW_CELLAR: /usr/local/Cellar HOMEBREW_BOTTLE_DOMAIN: https://homebrew.bintray.com CPU: quad-core 64-bit haswell OS X: 10.11-x86_64 Xcode: 6.4 CLT: 7.0.0.0.1.1440043355 Clang: 6.1 build 602 X11: N/A System Ruby: 2.0.0-p645 Perl: /usr/bin/perl Python: /usr/bin/python Ruby: /usr/bin/ruby Java: 1.8.0_60 |
@cgomezmendez, you may be seeing that because your Xcode and CLT versions are out of sync. Can you try updating Xcode and seeing if this persists? |
I am getting these same errors when trying to upgrade to Python3 v3.5.0 on Mac OS X Lion (10.7.5) on an older iMac. I tried all the tricks that I know. I can install Python v2.7.10 with tcl-tk flawlessly but no luck installing Python3 v3.5.0 with or without tcl-tk. Would a "bottle install" work? What is the syntax for doing a bottle install? |
Hi, I have the same kind of issue as @cclauss on OS X 10.7.5 trying to install Python 3 with Homebrew on my old MacBook. It used to work on my machine though. It only fails this time with the new Python 3.5. Here are my logs for
And here is my config:
|
Also getting this issue. |
I am facing similar problems:
Here is the config.log:
|
I ran
I ran |
@rodrigc's solution worked for me. |
@rodrigc It worked for me as well. I don't think we need this patch, just more explicit instructions to check the settings. 2:[20:44:01|~]$ brew install python3
==> Downloading https://www.python.org/ftp/python/3.5.0/Python-3.5.0.tar.xz
Already downloaded: /Library/Caches/Homebrew/python3-3.5.0.tar.xz
==> Downloading https://bugs.python.org/file40478/xcode-stubs.diff
Already downloaded: /Library/Caches/Homebrew/python3--patch-029cc0dc72b1bcf4ddc5f913cc4a3fd970378073c6355921891f041aca2f8b12.diff
==> Patching
patching file Lib/distutils/ccompiler.py
patching file Lib/distutils/unixccompiler.py
==> ./configure --prefix=/usr/local/Cellar/python3/3.5.0 --enable-ipv6 --dataroo
Last 15 lines from /Users/mike/Library/Logs/Homebrew/python3/01.configure:
CFLAGS=-isysroot -I/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers
LDFLAGS=-isysroot
MACOSX_DEPLOYMENT_TARGET=10.10
checking build system type... x86_64-apple-darwin14.5.0
checking host system type... x86_64-apple-darwin14.5.0
checking for --enable-universalsdk... no
checking for --with-universal-archs... no
checking MACHDEP... darwin
checking for --without-gcc... yes
checking for gcc... clang
checking whether the C compiler works... no
configure: error: in `/private/tmp/python320150929-11053-zu5w87/Python-3.5.0':
configure: error: C compiler cannot create executables
See `config.log' for more details
READ THIS: https://git.io/brew-troubleshooting
These open issues may also help:
Python/Python3: Fix RuntimeError: tk.h version (8.6) doesn't match libtk.a version (8.5) https://github.com/Homebrew/homebrew/pull/41728
3:[20:44:10|~]$ brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry and just ignore them. Thanks!
Warning: Xcode 7 lacks the 10.10 SDK which can cause some builds to fail.
We recommend installing the Command Line Tools with:
xcode-select --install
to resolve this issue.
xc4:[20:44:58|~]$ xcode-select --install
xcode-select: note: install requested for command line developer tools
5:[20:45:03|~]$ brew install python3
==> Downloading https://homebrew.bintray.com/bottles/python3-3.5.0.yosemite.bott
######################################################################## 100.0%
==> Pouring python3-3.5.0.yosemite.bottle.3.tar.gz
==> /usr/local/Cellar/python3/3.5.0/bin/python3 -s setup.py --no-user-cfg instal
==> /usr/local/Cellar/python3/3.5.0/bin/python3 -s setup.py --no-user-cfg instal
==> /usr/local/Cellar/python3/3.5.0/bin/python3 -s setup.py --no-user-cfg instal
==> Caveats
Pip and setuptools have been installed. To update them
pip3 install --upgrade pip setuptools
You can install Python packages with
pip3 install <package>
They will install into the site-package directory
/usr/local/lib/python3.5/site-packages
See: https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Homebrew-and-Python.md
.app bundles were installed.
Run `brew linkapps python3` to symlink these to /Applications.
==> Summary
🍺 /usr/local/Cellar/python3/3.5.0: 3416 files, 59M |
fixed it for me |
For me is not working: Here is my configuration: Any idea on how to fix it? |
does someone have a solution to update python3 to python3.5 on osx lion (10.7.5)? Last 15 lines from /Users/jussiissa42/Library/Logs/Homebrew/python3/02.make: READ THIS: https://git.io/brew-troubleshooting These open issues may also help: |
Try:
|
Craig Rodrigues schrieb:
quite same issue fatal error: error in backend: Cannot select: 0x10276d510: i8,ch = |
@mrkapqa You can try updating the command line tools to see if you can upgrade to the latest: https://developer.apple.com/downloads/ The issue is that you are also 4 versions out-of-date with OS X. The command line tools have also been updated to go along with them and Apple only updates the command line tools for the more recent version and the last version. Is there a reason why you aren't upgrading? |
Am 21.11.15 um 16:13 schrieb Mike Ho:
|
@mrkapqa : looks like you are hitting this compiler bug: https://llvm.org/bugs/show_bug.cgi?id=22094 Your only way out is to try to upgrade xcode |
Am 21.11.15 um 22:29 schrieb Craig Rodrigues:
Hello all, i found a solution. Now MPV is brewed and active, but i cant play any videos , just hearing it seems that macmini 2.1 is only giving opengl 1.4 whereas mpv requires can someone please help to tweak the MPV configuration with another thanks alot! |
Thanks for your contribution to Homebrew! Without people like you submitting PRs we couldn't run this project. You rock! |
Thanks for your contribution to Homebrew! Without people like you submitting PRs we couldn't run this project. You rock! For future reference the preferred commit message format is |
I couldn't install python with homebrewed Tk in Mac OS X Yostemite with a latest homebrew, homebrew/dupes. When I executed the following code, it fail with
"RuntimeError: tk.h version (8.6) doesn't match libtk.a version (8.5)"
.The problem was that CPPFLAGS and LDFLAGS for brewed Tk were specified to environment variable but Python (seems) prefer the CPPFLAGS in arguments specified to './configure', mean "-I#{MacOS.sdk_path}/usr/include" version is used.
Thus I add these flags into array and build flags at the end (but actually I'm not really familiar with Ruby... )
This commit would fix issue #18657