x11/keybinder + python

Luiz Gustavo S. Costa luizgustavo at luizgustavo.pro.br
Wed Oct 5 20:03:54 UTC 2011


Hi list,

I have a problem in the port x11/keybinder

Using:
[root at desktop] /usr/local/share/examples/keybinder# uname -a
FreeBSD desktop.luizgustavo.pro.br 10.0-CURRENT FreeBSD 10.0-CURRENT
#9 r225914M: Sun Oct  2 13:58:50 BRT 2011
root at desktop.luizgustavo.pro.br:/usr/obj/usr/src/sys/GENERIC  amd64



It seems that this one missing file to the python, see example:

[root at desktop] /usr/ports/x11/keybinder# make install clean
===>  Installing for keybinder-0.2.2
===>   keybinder-0.2.2 depends on file: /usr/local/bin/python2.7 - found
===>   keybinder-0.2.2 depends on executable: pkg-config - found
===>   keybinder-0.2.2 depends on file:
/usr/local/lib/gio/modules/libgiofam.so - found
===>   keybinder-0.2.2 depends on executable: pygobject-codegen-2.0 - found
===>   keybinder-0.2.2 depends on file:
/usr/local/libdata/pkgconfig/pygtk-2.0.pc - found
===>   keybinder-0.2.2 depends on shared library: atk-1.0.0 - found
===>   keybinder-0.2.2 depends on shared library: glib-2.0.0 - found
===>   keybinder-0.2.2 depends on shared library: gtk-x11-2.0.0 - found
===>   keybinder-0.2.2 depends on shared library: glade-2.0.0 - found
===>   keybinder-0.2.2 depends on shared library: xml2.5 - found
===>   keybinder-0.2.2 depends on shared library: pango-1.0.0 - found
===>   Generating temporary packing list
===>  Checking if x11/keybinder already installed
Making install in libkeybinder
gmake[1]: Entrando no diretório
`/usr/ports/x11/keybinder/work/keybinder-0.2.2/libkeybinder'
gmake[2]: Entrando no diretório
`/usr/ports/x11/keybinder/work/keybinder-0.2.2/libkeybinder'
.....
.... blah, blah ....
.....
test -z "/usr/local/libdata/pkgconfig" || .././install-sh -c -d
"/usr/local/libdata/pkgconfig"
 install  -o root -g wheel -m 444 keybinder.pc '/usr/local/libdata/pkgconfig'
gmake[2]: Saindo do diretório
`/usr/ports/x11/keybinder/work/keybinder-0.2.2/libkeybinder'
gmake[1]: Saindo do diretório
`/usr/ports/x11/keybinder/work/keybinder-0.2.2/libkeybinder'
Making install in python-keybinder
gmake[1]: Entrando no diretório
`/usr/ports/x11/keybinder/work/keybinder-0.2.2/python-keybinder'
gmake[2]: Entrando no diretório
`/usr/ports/x11/keybinder/work/keybinder-0.2.2/python-keybinder'
gmake[2]: Nada a ser feito para `install-exec-am'.
test -z "/usr/local/lib/python2.7/site-packages/keybinder" ||
.././install-sh -c -d
"/usr/local/lib/python2.7/site-packages/keybinder"
 /bin/sh ../libtool   --mode=install /usr/bin/install -c -o root -g
wheel   _keybinder.la
'/usr/local/lib/python2.7/site-packages/keybinder'
libtool: install: /usr/bin/install -c -o root -g wheel
.libs/_keybinder.lai
/usr/local/lib/python2.7/site-packages/keybinder/_keybinder.la
libtool: install: /usr/bin/install -c -o root -g wheel
.libs/lib_keybinder.a
/usr/local/lib/python2.7/site-packages/keybinder/lib_keybinder.a
libtool: install: chmod 644
/usr/local/lib/python2.7/site-packages/keybinder/lib_keybinder.a
libtool: install: ranlib
/usr/local/lib/python2.7/site-packages/keybinder/lib_keybinder.a
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/lib/python2.7/site-packages/keybinder

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,-rpath -Wl,LIBDIR' linker flag

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
test -z "/usr/local/lib/python2.7/site-packages/keybinder" ||
.././install-sh -c -d
"/usr/local/lib/python2.7/site-packages/keybinder"
 install  -o root -g wheel -m 444 __init__.py
'/usr/local/lib/python2.7/site-packages/keybinder'
Byte-compiling python modules...
__init__.py
Byte-compiling python modules (optimized versions) ...
__init__.py
gmake[2]: Saindo do diretório
`/usr/ports/x11/keybinder/work/keybinder-0.2.2/python-keybinder'
gmake[1]: Saindo do diretório
`/usr/ports/x11/keybinder/work/keybinder-0.2.2/python-keybinder'
gmake[1]: Entrando no diretório `/usr/ports/x11/keybinder/work/keybinder-0.2.2'
gmake[2]: Entrando no diretório `/usr/ports/x11/keybinder/work/keybinder-0.2.2'
gmake[2]: Nada a ser feito para `install-exec-am'.
gmake[2]: Nada a ser feito para `install-data-am'.
gmake[2]: Saindo do diretório `/usr/ports/x11/keybinder/work/keybinder-0.2.2'
gmake[1]: Saindo do diretório `/usr/ports/x11/keybinder/work/keybinder-0.2.2'
/bin/cp /usr/ports/x11/keybinder/work/keybinder-0.2.2/examples/*
/usr/local/share/examples/keybinder
===>   Running ldconfig
/sbin/ldconfig -m /usr/local/lib
===>   Registering installation for keybinder-0.2.2
===>  Cleaning for keybinder-0.2.2

[lgcosta at desktop] /usr/ports> cd /usr/local/share/examples/keybinder
[lgcosta at desktop] /usr/local/share/examples/keybinder> ls
Makefile        example.lua*    keybinder.vapi  main.c
README          example.py*     lminigtk.c      vexample.vala
[lgcosta at desktop] /usr/local/share/examples/keybinder> python example.py
Traceback (most recent call last):
  File "example.py", line 9, in <module>
    import keybinder
  File "/usr/local/lib/python2.7/site-packages/keybinder/__init__.py",
line 26, in <module>
    from _keybinder import *
ImportError: No module named _keybinder
[lgcosta at desktop] /usr/local/share/examples/keybinder>



-- 
  /\             Luiz Gustavo S. Costa
 /  \            Programmer at BSD Perimeter
/    \ /\/\/\    Visit the pfSense Project
/      \    \ \   http://www.pfsense.org
---------------------------------------------------------------------
BSD da serra carioca, Teresopolis (visite: http://miud.in/Inv)
Contatos: luizgustavo at luizgustavo.pro.br / lgcosta at pfsense.org
Blog: http://www.luizgustavo.pro.br


More information about the freebsd-ports mailing list