I am running 12.3/KDE4.10.2, video is ATI fglrx
I am attempting to load and run PyCAM, which is python based.
A stated dependency is package python-gtkglext, which is not found (using PkageSearch) for 12.3.
I tried installing the package from the 12.2 repo, but it does not run.
Hacking about, I downloaded the Source from the 12.2 repo, but it will not build due to missing pygtk-2.0 package, which I can not find.
Rather than make a bigger mess of my system, I decided to ask for suggestions from a Python guru
My python is ver 2.7.3-10.1.1-x86 from the 12.3-Oss repo.
Thanks, Martin.
I added python-gtk-devel which does resolve the “missing pggtk-2.0” issue, but a new issue appears
./configure --prefix=/foo/bar
.....
.....
checking for PYGTK... yes
checking for pygtk-codegen-2.0... /usr/bin/pygtk-codegen-2.0
checking for pygtk defs... /usr/share/pygtk/2.0/defs
checking for pkg-config... /usr/bin/pkg-config
checking for GLIB - version >= 2.0.0... yes (version 2.34.3)
checking for pkg-config... (cached) /usr/bin/pkg-config
checking for GTK+ - version >= 2.0.0... yes (version 2.24.14)
checking for pkg-config... (cached) /usr/bin/pkg-config
checking for GtkGLExt - version >= 1.0.0...
*** pkg-config cannot find gtkglext-1.0 >= 1.0.0
*** Set the environment variable PKG_CONFIG_PATH to point to the correct
*** configuration files.
no
configure: error: GtkGLExt not found
But now I realize I am probably doing this wrong, I downloaded the file python-gtkglext-1.1.0-126.1.2.src.rpm, so I probably need to build/rebuild the rpm.
You need “gtkglext-devel” which is available for openSUSE 12.3 in the standard update repo.
But now I realize I am probably doing this wrong, I downloaded the file python-gtkglext-1.1.0-126.1.2.src.rpm, so I probably need to build/rebuild the rpm.
Thanks wolfi323, it appears I have the dependencies resolved, but a library macro is found missing.
Googled a bit, see this error pop up a while ago but nothing recent.
Perhaps this is why this RPM did not make it into the 12.3 release (would not build)
I know this doesn’t answer your specific point but I must admit I’ve encountered a number of problems using RPM builds
from texlive and python packages. Have you considered the traditional `pythonic’ approach of using distutils from source
(e.g. https://github.com/GNOME/pygtkglext ), a route I’ve found more reliable than anything else? The disadvantage is
that distutils AFAIK has no good way of uninstalling packages. YMMV
Thanks wolfi323, it appears I have the dependencies resolved, but a
library macro is found missing.
Googled a bit, see this error pop up a while ago but nothing recent.
Perhaps this is why this RPM did not make it into the 12.3 release
(would not build)
autoreconf -f -i
acinclude.m4:4: warning: underquoted definition of AM_CHECK_PYMOD
acinclude.m4:4: run info Automake ‘Extending aclocal’
acinclude.m4:4: or see automake
configure.in:174: warning: macro ‘AM_PATH_GTKGLEXT_1_0’ not found in library
libtoolize: putting auxiliary files in .'. > libtoolize: copying file ./ltmain.sh’
libtoolize: Consider adding AC_CONFIG_MACRO_DIR([m4])' to configure.in and > libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree. > libtoolize: Consider adding -I m4’ to ACLOCAL_AMFLAGS in Makefile.am.
> acinclude.m4:4: warning: underquoted definition of AM_CHECK_PYMOD
> acinclude.m4:4: run info Automake ‘Extending aclocal’
> acinclude.m4:4: or see automake
> configure.in:174: warning: macro ‘AM_PATH_GTKGLEXT_1_0’ not found in library
> configure.in:137: error: possibly undefined macro: AC_MSG_ERROR
> If this token and others are legitimate, please use m4_pattern_allow.
> See the Autoconf documentation.
> configure.in:174: error: possibly undefined macro: AM_PATH_GTKGLEXT_1_0
> autoreconf: /usr/bin/autoconf failed with exit status: 1
> error: Bad exit status from /var/tmp/rpm-tmp.K4kTYh (%build)
>
>
> RPM build errors:
> Bad exit status from /var/tmp/rpm-tmp.K4kTYh (%build)
> --------------------
>
>
> I am not sure where to look next
>
>
Yes, I think so too.
The problem is that python-gtkglext and gtkglext are “dead” for quite some time already.
From the gtkglext package changelog:
NOTE: gtkglext is unmaintained and provided as-is for 3rd party
packages only. Nothing inside openSUSE is supposed to use it.
Unfortunately the latest git version from https://github.com/GNOME/pygtkglext doesn’t compile either, which is not surprising since that is exactly the version contained in the 12.2 package. The last change for python-gtkglext in its git repo was in 2010, the last release was 2006.
Well, I will try to get it to build, but it doesn’t look too good…:\
I was able to compile the python-gtkglext src rpm for openSUSE 12.3 by installing “gtkglext-devel” and “libgtkglext-x11” from 12.2! (the 12.3 packages are missing some stuff)
Afterwards you can update those packages again to the 12.3 versions without breaking a dependency.
But I haven’t tested the resulting package, so I cannot say if it really works…
I don’t know if I understand this correctly. You mean, why it is included at all in 12.3?
Well, originally it wasn’t. But it was released as online update a few days before the general release of 12.3 because of this bug report: https://bugzilla.novell.com/show_bug.cgi?id=799544
After looking at the Bug you highlighted and contemplating for a bit, I think I better understand the issue.
The python code is deprecated and is unchanged for quite a while.
Modifications were required to the system libraries(“gtkglext-devel” and “libgtkglext-x11”) to accommodate the updated X used in 12.3.
These modifications apparently did not implement the entire legacy API interface.
PYCAM is itself rather legacy code, being tweaked in areas of functionality but (probably) not in the UI code.
I’ll dig around in Bugzilla to see if other python code has a similar issue already logged.
It might be useful for the package maintainers to know what APIs are still in use as they make the “fix” vs “No Fix” decision.
An added note, for anyone trying this hack – for pycam to run, the packages from 12.2 need to be left installed.
They are | libgtkglext-x11-1_0-0 - OpenGL Extension to GTK
|
|