LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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
 
LinkBack Search this Thread
Old 07-19-2012, 03:41 PM   #1
audriusk
Member
 
Registered: Mar 2011
Location: Klaipėda, Lithuania
Distribution: Slackware
Posts: 231

Rep: Reputation: 102Reputation: 102
pygobject and gobject-introspection in -current


Hi,

Today I have stumbled upon an interesting Python library WeasyPrint, which uses pygobject in a seemingly new way and unfortunately doesn't work on Slackware-current. Perhaps this way is not really new, but since I haven't seen it before until today, it's new to me. import statements in that library are written as follows:
Code:
from gi.repository import GObject
And so on, but gi.repository (or gi module itself) can't be imported. After looking around on the net, I made a connection between gi.repository and gobject-introspection package which recently landed into -current.

So, I was wondering, if this gi.repository stuff should be in gobject-introspection package? Or maybe pygobject? I understand that Slackware team is very busy right now, fixing all sorts of things that broke after last big batch of updates, so I won't be expecting answers from them, but maybe someone else has some clues about this.
 
Old 07-22-2012, 02:50 AM   #2
ppr:kut
Member
 
Registered: Aug 2006
Location: Netherlands
Distribution: Slackware
Posts: 353

Rep: Reputation: 89
There seems to be a module PyGi, which was recently integrated into pygobject. The version in -current seems to be from before that happened, but
I don't know if a newer version is compatible with the pygtk stuff that's also there. You can try either installing the standalone PyGi or upgrading pygobject and see how it goes
 
1 members found this post helpful.
Old 07-22-2012, 11:16 AM   #3
audriusk
Member
 
Registered: Mar 2011
Location: Klaipėda, Lithuania
Distribution: Slackware
Posts: 231

Original Poster
Rep: Reputation: 102Reputation: 102
Thank you for the answer.

After playing a bit with pygobject SlackBuild, I decided to write a separate one for the latest version, seeing that 2.x and 3.x don't have any files with the same names. Installed the package, all seems fine, old PyGTK apps still work, while WeasyPrint is functioning as well. Feeling happy.

Here's the SlackBuild itself for those, who will need it for some app. If PyGObject 3.x won't be included in the next Slackware version, I'll submit it to SBo.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
gobject-introspection package installation rmugunthan Linux - Server 0 07-16-2012 12:00 AM
gobject-introspection package installation rmugunthan Linux - Newbie 0 06-24-2012 11:15 PM
LXer: Rebuild Spice-Gtk-0.7 via Debian Unstable with gobject-introspection enabled LXer Syndicated Linux News 0 08-20-2011 11:21 PM
gobject-introspection-0.6.14 build blowing up ninja master Linux - Software 1 12-31-2010 01:02 AM
pygtk not finding new pygobject johnmich Linux - Software 2 07-13-2007 09:28 PM


All times are GMT -5. The time now is 05:56 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration