LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-08-2014, 10:24 AM   #1
slacksam
Member
 
Registered: Oct 2012
Location: Germany
Distribution: Slackware, Salix, slarm64
Posts: 210

Rep: Reputation: 37
Question pygobject3 slackbuild fails


Hi,
after building py3cairo successfully, I'm having an issue with building pygobject3 from slackbuilds on Slackware 14.1.
The original script for version 3.10.2 fails with this error message:
Code:
...
libtool: install: /bin/ginstall -c .libs/_gi.lai /tmp/SBo/package-pygobject3/usr/lib/python3.4/site-packages/gi/_gi.la
libtool: install: /bin/ginstall -c .libs/_gi_cairo.cpython-34m.so /tmp/SBo/package-pygobject3/usr/lib/python3.4/site-packages/gi/_gi_cairo.cpython-34m.so
libtool: install: /bin/ginstall -c .libs/_gi_cairo.lai /tmp/SBo/package-pygobject3/usr/lib/python3.4/site-packages/gi/_gi_cairo.la
libtool: install: warning: remember to run `libtool --finish /usr/lib/python3.4/site-packages/gi'
 /bin/mkdir -p '/tmp/SBo/package-pygobject3/usr/lib/python3.4/site-packages/gi'
 /bin/ginstall -c -m 644 __init__.py types.py module.py importer.py pygtkcompat.py docstring.py '/tmp/SBo/package-pygobject3/usr/lib/python3.4/site-packages/gi'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib/python3.4/py_compile.py", line 6, in <module>
    import importlib._bootstrap
  File "/usr/lib/python3.4/importlib/__init__.py", line 35, in <module>
    import types
  File "/tmp/SBo/pygobject-3.10.2/gi/types.py", line 28, in <module>
    from . import _gobject
SystemError: Parent module '' not loaded, cannot perform relative import
make[3]: *** [install-pygiPYTHON] Error 1
make[3]: Leaving directory `/tmp/SBo/pygobject-3.10.2/gi'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory `/tmp/SBo/pygobject-3.10.2/gi'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/tmp/SBo/pygobject-3.10.2/gi'
make: *** [install-recursive] Error 1
So following ml4711's e advice, I downloaded version 3.12.1 and 3.13.1 of the pygobject3 package and modified the slackbuild script to extract the right archive format (tar.gz instead of tar.xz).
But when I try to build it (with version 3.12.1 the same as version 3.13.1), this error message occurs:
Code:
...
pygobject-3.13.1/tests/test_subprocess.py
pygobject-3.13.1/tests/test_thread.py
pygobject-3.13.1/tests/test_unknown.py
pygobject-3.13.1/tests/testhelpermodule.c
pygobject-3.13.1/tests/testmodule.py
./pygobject3.SlackBuild: line 73: ./configure: No such file or directory
There is no configure script in the package any more.
Any ideas how to fix it?

Last edited by slacksam; 05-08-2014 at 03:30 PM.
 
Old 05-08-2014, 11:04 AM   #2
ml4711
Member
 
Registered: Aug 2012
Location: Ryomgård, Danmark
Distribution: Slackware64
Posts: 146

Rep: Reputation: 103Reputation: 103
get pygobject3 from here:

http://ftp.gnome.org/pub/GNOME/sources/pygobject/3.12/

Also You may need to add "PYTHON=/usr/bin/python3"
to the configure call in the buildscript

Edit:
The libtool script is missing from the package!

Good luck

Last edited by ml4711; 05-08-2014 at 11:13 AM.
 
1 members found this post helpful.
Old 05-08-2014, 11:07 AM   #3
gengisdave
Member
 
Registered: Dec 2013
Location: Turin, Italy
Distribution: slackware
Posts: 328

Rep: Reputation: 74
there is a script called autogen.sh, invoke it before ./configure; otherwise, try "autoconf"

I compiled 3.10 some time ago, but i reverted to 2.x due to wicd
 
Old 05-08-2014, 03:29 PM   #4
slacksam
Member
 
Registered: Oct 2012
Location: Germany
Distribution: Slackware, Salix, slarm64
Posts: 210

Original Poster
Rep: Reputation: 37
Thumbs up

Works. Thank you, guys!

@ml4711: The package you linked did it. As you mentioned here, first I had to build actual packages for glib2 and gobject-introspection-1.0 (with the slackbuild scripts) and install them before I could build pygobject3.
Thank you for your great support!

@gengisdave: Calling the autogen.sh script failed with the error message:
Code:
lcov not installed, not enabling code coverage
which: no gnome-autogen.sh in (/usr/local/sbin:/usr/local/bin:/sbin:/usr/sbin:/bin:/usr/bin)
You need to install gnome-common.
so I tried to build it without autogen and it worked.
 
Old 05-08-2014, 03:57 PM   #5
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,650

Rep: Reputation: 1770Reputation: 1770Reputation: 1770Reputation: 1770Reputation: 1770Reputation: 1770Reputation: 1770Reputation: 1770Reputation: 1770Reputation: 1770Reputation: 1770
Hi

I have it fixed on my branch (http://slackbuilds.org/cgit/slackbui...3dbf56942d8840)
basically it built fine against python2, but when you have python3 installed, you will require 2 new deps, gnome-common and py3cairo

Last edited by willysr; 05-08-2014 at 04:36 PM.
 
1 members found this post helpful.
Old 05-08-2014, 04:51 PM   #6
slacksam
Member
 
Registered: Oct 2012
Location: Germany
Distribution: Slackware, Salix, slarm64
Posts: 210

Original Poster
Rep: Reputation: 37
@Willy: For version 3.10.2 of pygobject I didn't try, but for version 3.12.1 (for python3) your sb script works for me only without the patch and with the two deps installed.
 
Old 05-08-2014, 04:58 PM   #7
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,650

Rep: Reputation: 1770Reputation: 1770Reputation: 1770Reputation: 1770Reputation: 1770Reputation: 1770Reputation: 1770Reputation: 1770Reputation: 1770Reputation: 1770Reputation: 1770
The policy of SBo is that the script should work on top of latest Slackware packages, so in this case, upgrading glib and gobject-introspection is out of the warranty

Yes, perhaps it has been fixed in 3.12.1, but then it will require newer packages than what we have in 14.1
 
Old 05-08-2014, 05:22 PM   #8
slacksam
Member
 
Registered: Oct 2012
Location: Germany
Distribution: Slackware, Salix, slarm64
Posts: 210

Original Poster
Rep: Reputation: 37
Ok Willy, so I downgraded the glib2 and gobject-introspection back to the versions of Slackware 14.1 and ran your sb script for version 3.10.2.
It works!

Last edited by slacksam; 05-08-2014 at 05:32 PM.
 
Old 05-08-2014, 08:11 PM   #9
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,650

Rep: Reputation: 1770Reputation: 1770Reputation: 1770Reputation: 1770Reputation: 1770Reputation: 1770Reputation: 1770Reputation: 1770Reputation: 1770Reputation: 1770Reputation: 1770
Thanks for confirming it
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] WebkitGtk Slackbuild fails pcelka Slackware 2 11-03-2012 04:50 AM
[SOLVED] ffmpeg slackbuild fails in 13.37 arubin Slackware 3 04-29-2011 10:02 AM
FBReader Slackbuild fails bogzab Slackware 3 04-08-2011 09:41 AM
[SOLVED] Conky SlackBuild fails agi93 Slackware 6 07-02-2010 05:21 PM
wmii slackbuild fails... What can I do...? Alexvader Slackware 3 11-02-2009 09:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration