Error Unable To Find Pygobject Codegen
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Install python, pygtk in user's space up vote 1 down vote favorite I am trying to install python with pygtk in my ubuntu system. I don't have root access so I need to install all the packages locally say /home/user/local/lib I am able to install python, but I am not able to link other packages(pygobject, pygtk, etc) to the locally installed python. And if I try to install pygtk locally using the command ./configure --prefix=/home/shrihari/local/lib/pygtk2.24/ It gives the following error checking for GLIB - version >= 2.8.0... yes (version 2.28.6) checking for PYGOBJECT... yes checking for gio-types.defs... no checking for ATK... yes checking for PANGO... yes checking for codegen... configure: error: unable to find PyGObject codegen My default python version is python2.4. If I try to import pygtk in python2.4 it works fine but i need pygtk in python2.7. So how can I achieve this? If there is any good documentation available for installing python, pygtk, pygobject locally in user space please share. Thanks in advance python linux pygtk ubuntu-11.04 share|improve this question edited Mar 11 '14 at 12:12 asked Mar 11 '14 at 11:41 user2109788 13917 add a comment| 2 Answers 2 active oldest votes up vote 1 down vote In general, to be able to link a build to something already installed, you need to have set up the LD_LIBRARY_PATH and (for Python modules) PYTHONPATH to the directories where you have installed that "something". So in this example, if you install Python 2.7 with prefix /home/shrinari/local/python27, you need afterwards set the system variables like this (for bash): export LD_LIBRARY_PATH=/home/shrinari/local/python27/lib:$LD_LIBRARY_PATH export PYTHONPATH=/home/shrinari/local/python27/lib/python2.7/site-packages:$PYTHONPATH export PKG_CONFIG_PATH=/home/shrinari/local/python27/lib/pkgconfig:$PKG_CONF
Sign in Pricing Blog Support Search GitHub This repository Watch 1,054 Star 29,528 Fork 14,086 Homebrew/legacy-homebrew Code Issues 2 Pull requests 0 Projects 0 Pulse Graphs pygtksourceview failed to build on 10.8.5 #25150 Closed sandover opened this Issue Dec 11, 2013 · 7 comments Projects None yet Labels user configuration Milestone No milestone Assignees No one assigned http://stackoverflow.com/questions/22324680/install-python-pygtk-in-users-space 6 participants sandover commented Dec 11, 2013 gist: https://gist.github.com/anonymous/7917546 mistydemeo commented Dec 11, 2013 Looks like the issue is that it can't find codegen from pygtk. Do you have a codegen tool on your system, for example in /usr/local/bin/codegen or /usr/local/share/python/codegen? adamv commented Dec 17, 2013 Closing due https://github.com/Homebrew/legacy-homebrew/issues/25150 to no response. adamv closed this Dec 17, 2013 sandover commented Dec 21, 2013 Been travelling. There's no codegen on my (OS X 10.8.5) system. Here's a different version of the same error (from brew install pygtksourceview) ==> ./configure --prefix=/usr/local/Cellar/pygtksourceview/2.10.0 --disable-docs checking for PYGOBJECT... yes checking for PYGTKSOURCEVIEW... yes checking for pygtk codegen... /usr/local/Cellar/pygtk/2.24.0/share/pygobject/2.0/codegen no configure: error: Error: codegen not found (should be shipped with pygtk!) My system does have /usr/local/bin/pygtk-codegen-2.0, but here's what happens when I run it. » pygtk-codegen-2.0 note: pygtk-codegen-2.0 is deprecated, use pygobject-codegen-2.0 instead note: I will now try to invoke pygobject-codegen-2.0 in the same directory /usr/local/bin/pygtk-codegen-2.0: line 10: /usr/local/Cellar/pygtk/2.24.0/bin/pygobject-codegen-2.0: No such file or directory /usr/local/bin/pygtk-codegen-2.0: line 10: exec: /usr/local/Cellar/pygtk/2.24.0/bin/pygobject-codegen-2.0: cannot execute: No such file or directory maradatscha commented Jan 9, 2014 I had the same issue, I fixed it by doing a clean install of pygtk: brew
SCAP-on-Apple SmartCard Services WebKit XQuartz Contact Terms of Use Privacy Policy All user-submitted text and content on this https://trac.macports.org/ticket/16872 website is licensed under a Creative Commons Attribution 2.5 License unless otherwise noted. Copyright © 2011 Apple Inc. All rights reserved. New Ticket Tickets Wiki Browse Source Timeline Roadmap Ticket Reports Search Search: Context Navigation ← Previous error unable TicketNext Ticket → Ticket #16872 (closed defect: worksforme) Opened 8 years ago Last modified 6 years ago configure: error: Package requirements (pygobject-2.0 >= 2.14.0) were not met: Reported by: rsopublic@… Owned by: kimuraw@… Priority: Normal Milestone: Component: ports Version: 1.6.0 Keywords: Cc: Port: rb-gnome Description checking for PYGOBJECT... configure: error: Package requirements error unable to (pygobject-2.0 >= 2.14.0) were not met: No package 'pygobject-2.0' found Had another issue wil gail like this. installing rb-gnome. Thanks Change History comment:1 Changed 8 years ago by rsopublic@… Ok, now I know I have py-gobject @2.14.1_0+darwin_9 (active) So after activating and deactivating I get this XXXX$ sudo port install rb-gnome Password: ---> Configuring py25-gtk Error: Target org.macports.configure returned: configure failure: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py25-gtk/work/pygtk-2.12.1" && ./configure --prefix=/opt/local --disable-glibtest " returned error 1 Command output: checking dynamic linker characteristics... darwin9.5.0 dyld checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no configure: creating libtool checking whether /opt/local/bin/python2.5 version >= 2.3.5... yes checking for /opt/local/bin/python2.5 version... 2.5 checking for /opt/local/bin/python2.5 platform... darwin checking for /opt/local/bin/python2.5 script directory... ${prefix}/lib/python2.5/site-packages checking for /opt/local/bin/python2.5 extension module directory... ${exec_prefix}/lib/python2.5/site-packages checking f