Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Notify-python & python-image-library [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
HeXiLeD
Veteran
Veteran


Joined: 20 Aug 2005
Posts: 1159
Location: Online

PostPosted: Sat Sep 22, 2012 7:05 pm    Post subject: Notify-python & python-image-library [SOLVED] Reply with quote

I am having a problem with:

Code:
~] net-print/hplip-3.12.9  USE="X -doc fax hpcups hpijs -kde -libnotify -minimal -parport -policykit qt4 scanner snmp static-ppds"


While i am trying to setup the software and when i execute:

Code:
hp-check or hp-check --fix


I get:

Code:
Missing Optional Dependencies
-----------------------------
error: 'pil' package is missing/incompatible
error: 'python-notify' package is missing/incompatible


For python i have currently on this system:

Code:
 # eselect python list
Available Python interpreters:
  [1]   python2.7
  [2]   python3.2 *


I have also executed python-updater.

When re-emerging notify-python v0.1.1

Code:
Now type make to compile
Then su to root and type: make install

>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-python/notify-python-0.1.1-r2/work/notify-python-0.1.1 ...
 * Building of dev-python/notify-python-0.1.1-r2 with CPython 2.7...
make -j16
make  all-recursive
make[1]: Entering directory `/var/tmp/portage/dev-python/notify-python-0.1.1-r2/work/notify-python-0.1.1-2.7'
Making all in src
make[2]: Entering directory `/var/tmp/portage/dev-python/notify-python-0.1.1-r2/work/notify-python-0.1.1-2.7/src'
if /bin/sh ../libtool --tag=CC --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -DG_LOG_DOMAIN=\"pynotify-python\" -DDATADIR=\"/usr/share\" -DLIBDIR=\"/usr/lib64\" -pthread -I/usr/include/pygtk-2.0 -I/usr/include/gtk-2.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng15 -I/usr/include/libdrm   -I/usr/include/python2.7    -march=nocona -O2 -mtune=nocona -fforce-addr -ftracer -mmmx -msse3 -mfpmath=sse -pipe -mcx16 --param l1-cache-size=16 --param l1-cache-line-size=64 --param l2-cache-size=2048 -MT pynotifymodule.lo -MD -MP -MF ".deps/pynotifymodule.Tpo" -c -o pynotifymodule.lo pynotifymodule.c; \
then mv -f ".deps/pynotifymodule.Tpo" ".deps/pynotifymodule.Plo"; else rm -f ".deps/pynotifymodule.Tpo"; exit 1; fi
(cd . \
 && /usr/bin/python /usr/lib64/python2.7/site-packages/gtk-2.0/codegen/codegen.py \
   --register /usr/share/pygtk/2.0/defs/gtk-types.defs \
   --register /usr/share/pygtk/2.0/defs/gdk-types.defs \
    --override pynotify.override \
    --prefix pypynotify pynotify.defs) > gen-pynotify.c \
 && cp gen-pynotify.c pynotify.c \
 && rm -f gen-pynotify.c
/usr/bin/python2.7: can't open file '/usr/lib64/python2.7/site-packages/gtk-2.0/codegen/codegen.py': [Errno 2] No such file or directory
make[2]: *** [pynotify.c] Error 2
make[2]: *** Waiting for unfinished jobs....
mkdir .libs
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -DG_LOG_DOMAIN=\"pynotify-python\" -DDATADIR=\"/usr/share\" -DLIBDIR=\"/usr/lib64\" -pthread -I/usr/include/pygtk-2.0 -I/usr/include/gtk-2.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng15 -I/usr/include/libdrm -I/usr/include/python2.7 -march=nocona -O2 -mtune=nocona -fforce-addr -ftracer -mmmx -msse3 -mfpmath=sse -pipe -mcx16 --param l1-cache-size=16 --param l1-cache-line-size=64 --param l2-cache-size=2048 -MT pynotifymodule.lo -MD -MP -MF .deps/pynotifymodule.Tpo -c pynotifymodule.c  -fPIC -DPIC -o .libs/pynotifymodule.o
make[2]: Leaving directory `/var/tmp/portage/dev-python/notify-python-0.1.1-r2/work/notify-python-0.1.1-2.7/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-python/notify-python-0.1.1-r2/work/notify-python-0.1.1-2.7'
make: *** [all] Error 2
emake failed
 * ERROR: dev-python/notify-python-0.1.1-r2 failed (compile phase):
 *   Building failed with CPython 2.7 in python_default_function() function
 *
 * Call stack:
 *     ebuild.sh, line   85:  Called src_compile
 *   environment, line 4666:  Called python_src_compile
 *   environment, line 4605:  Called python_execute_function '-d' '-s' '--'
 *   environment, line 3050:  Called die
 * The specific snippet of code:
 *                       die "${failure_message}";
 *
 * If you need support, post the output of `emerge --info '=dev-python/notify-python-0.1.1-r2'`,
 * the complete build log and the output of `emerge -pqv '=dev-python/notify-python-0.1.1-r2'`.
 * The complete build log is located at '/var/log/portage/dev-python:notify-python-0.1.1-r2:20120922-184955.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-python/notify-python-0.1.1-r2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-python/notify-python-0.1.1-r2/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-python/notify-python-0.1.1-r2/work/notify-python-0.1.1-2.7'
 * S: '/var/tmp/portage/dev-python/notify-python-0.1.1-r2/work/notify-python-0.1.1'



I belive the problem is here:

Code:
/usr/bin/python2.7: can't open file '/usr/lib64/python2.7/site-packages/gtk-2.0/codegen/codegen.py': [Errno 2] No such file or directory
make[2]: *** [pynotify.c] Error 2


Emerge --info can be seen here.
_________________
Do you hear the sound of inevitability?
With age, comes great grumpiness and that, was 20 years ago...

CertFP: becbbd161d5a5c31de3c45171b77bf710911db29 / d985d21f89fe2977b593c4d381a1a86802e62990d9328d893db76d59f9935244


Last edited by HeXiLeD on Wed Jul 23, 2014 8:13 pm; edited 1 time in total
Back to top
View user's profile Send private message
dol-sen
Retired Dev
Retired Dev


Joined: 30 Jun 2002
Posts: 2805
Location: Richmond, BC, Canada

PostPosted: Sat Sep 22, 2012 11:55 pm    Post subject: Reply with quote

Well, for hplip, it will need python-2 only. Looking at the deps, they are all python-2 based, along with notify-python

Have you run python-updater on your python-2.7 install? From what you showed, you have it set to python-3.
_________________
Brian
Porthole, the Portage GUI frontend irc@freenode: #gentoo-guis, #porthole, Blog
layman, gentoolkit, CoreBuilder, esearch...
Back to top
View user's profile Send private message
HeXiLeD
Veteran
Veteran


Joined: 20 Aug 2005
Posts: 1159
Location: Online

PostPosted: Sun Sep 23, 2012 12:10 pm    Post subject: Reply with quote

Code:
 # eselect python list
Available Python interpreters:
  [1]   python2.7 *
  [2]   python3.2


Ran python-updater and the errors still remain as well as another one:

Code:
$ hp-toolbox

HP Linux Imaging and Printing System (ver. 3.12.9)
HP Device Manager ver. 15.0

Copyright (c) 2001-14 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

Traceback (most recent call last):
  File "/usr/bin/hp-toolbox", line 249, in <module>
    from ui4.devmgr5 import DevMgr5
  File "/usr/share/hplip/ui4/devmgr5.py", line 34, in <module>
    from base import device, utils, pml, maint, models, pkit
  File "/usr/share/hplip/base/pkit.py", line 42, in <module>
    import gobject
ImportError: No module named gobject



Code:
 # eix -s gobject
[I] dev-libs/gobject-introspection
     Available versions:  1.30.0-r2 (~)1.32.1 {{doc doctool test}}
     Installed versions:  1.32.1(09:16:49 PM 07/25/2012)(-doc -doctool -test)
     Homepage:            http://live.gnome.org/GObjectIntrospection/
     Description:         Introspection infrastructure for generating gobject li                                                                                                                                 brary bindings for various languages

[I] dev-libs/gobject-introspection-common
     Available versions:  ~1.32.0 (~)1.32.1
     Installed versions:  1.32.1(09:17:14 PM 07/25/2012)
     Homepage:            http://live.gnome.org/GObjectIntrospection/
     Description:         Build infrastructure for GObject Introspection

[I] dev-python/pygobject
     Available versions: 
        (2)     2.28.6-r51^t ~2.28.6-r52^t
        (3)     3.0.2 3.0.4 ~3.2.1 ~3.2.2
        {{+cairo doc examples +introspection libffi test +threads}}
     Installed versions:  2.28.6-r51(2)^t(01:49:45 PM 12/31/2011)(introspection                                                                                                                                  -doc -examples -libffi -test) 3.0.4(3)(08:20:53 AM 04/27/2012)(cairo threads -ex                                                                                                                                 amples -test)
     Homepage:            http://www.pygtk.org/
     Description:         GLib's GObject library bindings for Python


Also:

Code:
error: Unable to lock /home/user/.hplip/hp-systray.lock. Is hp-systray already running?
warning: Unable to connect to dbus. Is hp-systray running?

Communication status: Good


Code:
 # /etc/init.d/dbus status
 * status: started


and hp-systray was not running.

Code:
error: python-notify Desktop-notifications     OPTIONAL   -   -    MISSING    'python-notify needs to be installed'


Code:
# eix notify-python -s
[I] dev-python/notify-python
     Available versions:  0.1.1-r2 {{examples}}
     Installed versions:  0.1.1-r2(07:37:22 AM 12/26/2011)(-examples)
     Homepage:            http://www.galago-project.org/
     Description:         Python bindings for libnotify

_________________
Do you hear the sound of inevitability?
With age, comes great grumpiness and that, was 20 years ago...

CertFP: becbbd161d5a5c31de3c45171b77bf710911db29 / d985d21f89fe2977b593c4d381a1a86802e62990d9328d893db76d59f9935244
Back to top
View user's profile Send private message
dol-sen
Retired Dev
Retired Dev


Joined: 30 Jun 2002
Posts: 2805
Location: Richmond, BC, Canada

PostPosted: Tue Sep 25, 2012 1:13 am    Post subject: Reply with quote

Ahh, looks like you only have gobject installed for python-3

Add
Code:
USE_PYTHON="2.7 3.2"
to your make.conf, and re-run python-updater. That will install pkgs to both python versions. Perhaps run revdep-rebuild just in case.
_________________
Brian
Porthole, the Portage GUI frontend irc@freenode: #gentoo-guis, #porthole, Blog
layman, gentoolkit, CoreBuilder, esearch...
Back to top
View user's profile Send private message
HeXiLeD
Veteran
Veteran


Joined: 20 Aug 2005
Posts: 1159
Location: Online

PostPosted: Tue Sep 25, 2012 10:27 pm    Post subject: Reply with quote

Code:
# cat /etc/make.conf| grep USE_PYTHON
USE_PYTHON="2.7 3.2"

Code:
python-updater ; revdep-rebuild ; emerge dev-libs/gobject-introspection dev-libs/gobject-introspection-common dev-python/pygobject dev-python/notify-python

and updated my hplip drivers

Code:
*  net-print/hplip
      Latest version available: 3.12.9-r1
      Latest version installed: 3.12.9-r1


Problem still remains.

EDIT:
Problem got solved overtime with updates to the system
_________________
Do you hear the sound of inevitability?
With age, comes great grumpiness and that, was 20 years ago...

CertFP: becbbd161d5a5c31de3c45171b77bf710911db29 / d985d21f89fe2977b593c4d381a1a86802e62990d9328d893db76d59f9935244
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum