错误:无法从 /usr/local/opt/pygtk/.brew/pygtk.rb

我正在安装mitmproxy

brew reinstall mitmproxy

错误:无法从 /usr/local/opt/pygtk/.brew/pygtk.rb 获取运行时依赖项!

错误:无法从 /usr/local/opt/pygtk/.brew/pygtk.rb 获取运行时依赖项!

brew reinstall pygobject3  gtk+3

错误:无法从 /usr/local/opt/pygtk/.brew/pygtk.rb 获取运行时依赖项!

错误:无法从 /usr/local/opt/pygtk/.brew/pygtk.rb 获取运行时依赖项!

错误:无法从 /usr/local/opt/pygtk/.brew/pygtk.rb 获取运行时依赖项!

错误:无法从 /usr/local/opt/pygtk/.brew/pygtk.rb 获取运行时依赖项!

文件/usr/local/opt/pygtk/.brew/pygtk.rb存在且其内容为:

class Pygtk < Formula

  desc "GTK+ bindings for Python"

  homepage "http://www.pygtk.org/"

  url "https://download.gnome.org/sources/pygtk/2.24/pygtk-2.24.0.tar.bz2"

  sha256 "cd1c1ea265bd63ff669e92a2d3c2a88eb26bcd9e5365e0f82c896e649f206912"

  revision 1


  option :universal


  depends_on "pkg-config" => :build

  depends_on "glib"

  depends_on "gtk+"

  depends_on "atk"

  depends_on "pygobject"

  depends_on "py2cairo"

  depends_on "libglade" => :optional


  def install

    ENV.append "CFLAGS", "-ObjC"

    ENV.universal_binary if build.universal?

    system "./configure", "--disable-dependency-tracking",

                          "--prefix=#{prefix}"

    system "make", "install"


    # Fixing the pkgconfig file to find codegen, because it was moved from

    # pygtk to pygobject. But our pkgfiles point into the cellar and in the

    # pygtk-cellar there is no pygobject.

    inreplace lib/"pkgconfig/pygtk-2.0.pc", "codegendir=${datadir}/pygobject/2.0/codegen", "codegendir=#{HOMEBREW_PREFIX}/share/pygobject/2.0/codegen"

    inreplace bin/"pygtk-codegen-2.0", "exec_prefix=${prefix}", "exec_prefix=#{Formula["pygobject"].opt_prefix}"

  end


  test do

    (testpath/"codegen.def").write("(define-enum asdf)")

    system "#{bin}/pygtk-codegen-2.0", "codegen.def"

  end

end

brew doctor


守着星空守着你
浏览 125回答 1
1回答

桃花长相依

基于 brew doctor 在这里你去:brew&nbsp;uninstall&nbsp;pygtk&nbsp;pygobject brew&nbsp;install&nbsp;pyk+3&nbsp;pygobject3 brew&nbsp;install&nbsp;mitmproxy
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Python