Python module pygtk is broken.

Please reproduce your error on a second machine before posting, and check the error by running without saved changes or extra modules (See FAQ No. 13, "How to report a bug"). For unstable Porteus versions (alpha, beta, rc) please use the relevant thread in our "Development" section.
Post Reply
cpoakes
White ninja
White ninja
Posts: 10
Joined: 08 Sep 2013, 18:51
Distribution: Debian
Location: Arizona

Python module pygtk is broken.

Post#1 by cpoakes » 14 Sep 2013, 10:30

The Porteus v2.1 python package pygtk (pygtk-2.24.0-i486-1.xzm) is not useable. The basic python interpreter is working: interpreter starts, will import other modules (Xlib), and other python programs work. However, a program trying to import pygtk fails "No module named pygtk".

For validation, starting the interpreter for a quick import check also fails:

Code: Select all

guest@porteus:~$ python
Python 2.7.3 (default, Jul  3 2012, 21:16:07) 
[GCC 4.7.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pygtk
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named pygtk
>>> 
This was verified on a base only, no magic, no rootcopy, no changes lxde system. The following were activated manually:

db44-4.4.20-i486-3.xzm
python-2.7.3-i486-2.xzm
tcl-8.5.11-i486-1.xzm
tk-8.5.11-i486-1.xzm


The python interpreter was verified to work and then pygtk was manually activated:

pygtk-2.24.0-i486-1.xzm

Error replicated.

Alternatively, execute the demo /usr/bin/pygtk-demo installed with the package:

Code: Select all

guest@porteus: bin $ /usr/bin/pygtk-demo
Traceback (most recent call last):
  File "/usr/bin/pygtk-demo", line 7, in <module>
    execfile(os.path.join(pygtklibdir, "pygtk-demo.py"))
  File "/usr/lib/pygtk/2.0/pygtk-demo.py", line 13, in <module>
    import pygtk
ImportError: No module named pygtk

User avatar
wread
Module Guard
Module Guard
Posts: 1062
Joined: 09 Jan 2011, 18:48
Distribution: Porteus v3.2.5-kde5-64 bits
Location: Santo Domingo
Contact:

Re: Python module pygtk is broken.

Post#2 by wread » 14 Sep 2013, 11:39

Try this one, it works for me!

Good luck!
Porteus is proud of the FASTEST KDE ever made.....(take akonadi, nepomuk and soprano out and you will have a decent OS).
The Porteus Community never sleeps!

cpoakes
White ninja
White ninja
Posts: 10
Joined: 08 Sep 2013, 18:51
Distribution: Debian
Location: Arizona

Re: Python module pygtk is broken.

Post#3 by cpoakes » 14 Sep 2013, 12:25

That one works. As Porteus is my first foray into the world of slackware (I am a mostly a Debianista), I was concerned this was "operator error". I note the version number on your package is in sync with the python version number. But it seems many py-packages don't sync up their version numbers, so I don't know what to think of the one in the repo.

Gracias por ayudarme.

User avatar
wread
Module Guard
Module Guard
Posts: 1062
Joined: 09 Jan 2011, 18:48
Distribution: Porteus v3.2.5-kde5-64 bits
Location: Santo Domingo
Contact:

Re: Python module pygtk is broken.

Post#4 by wread » 14 Sep 2013, 13:03

El placer es mío.

Now please edit your post to add [SOLVED]

Saludos :D
Porteus is proud of the FASTEST KDE ever made.....(take akonadi, nepomuk and soprano out and you will have a decent OS).
The Porteus Community never sleeps!

cpoakes
White ninja
White ninja
Posts: 10
Joined: 08 Sep 2013, 18:51
Distribution: Debian
Location: Arizona

Re: Python module pygtk is broken.

Post#5 by cpoakes » 06 Oct 2013, 10:13

@wread - Thanks for the workaround. The bug still exists in the Porteus repository, so I do not consider it solved. Maybe we have different expectations, but I expect two things: 1) Porteus developers to maintain and fix everything that is contained in the Porteus repos, and 2) a bug report remains open until the bug is corrected in the repos or specifically resolved as "won't fix".

cpoakes
White ninja
White ninja
Posts: 10
Joined: 08 Sep 2013, 18:51
Distribution: Debian
Location: Arizona

Re: Python module pygtk is broken.

Post#6 by cpoakes » 06 Oct 2013, 10:35

After further experimentation, I note the upstream version pygtk-2.24.0-i486-1.txz in the Slackware repository shares the same bug. However, the version used in 07-printing.xzm does not! Two possible solutions to this bug:
  1. Remove pygtk-2.24.0-i486-1.xzm from the Porteus repos and rely solely on 07-printing.xzm to supply pygtk, OR
  2. Create a new pygtk module from the build scripts used to create 07-printing.xzm or wread's version.
Both seem reasonable, and the first is simple to implement.

User avatar
wread
Module Guard
Module Guard
Posts: 1062
Joined: 09 Jan 2011, 18:48
Distribution: Porteus v3.2.5-kde5-64 bits
Location: Santo Domingo
Contact:

Re: Python module pygtk is broken.

Post#7 by wread » 06 Oct 2013, 10:39

Don't worry, brokenman will take care of that!
Porteus is proud of the FASTEST KDE ever made.....(take akonadi, nepomuk and soprano out and you will have a decent OS).
The Porteus Community never sleeps!

User avatar
brokenman
Site Admin
Site Admin
Posts: 5436
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

Re: Python module pygtk is broken.

Post#8 by brokenman » 06 Oct 2013, 15:41

Wread can you pass me your build script so I can compare the two and see what is going on. I'd like to keep the repository using the current slackware-14.0 version and removing the package is not an option as it would most certainly break some dependency resolution for other packages.
How do i become super user?
Wear your underpants on the outside and put on a cape.

User avatar
wread
Module Guard
Module Guard
Posts: 1062
Joined: 09 Jan 2011, 18:48
Distribution: Porteus v3.2.5-kde5-64 bits
Location: Santo Domingo
Contact:

Re: Python module pygtk is broken.

Post#9 by wread » 06 Oct 2013, 22:51

Hi Jay!
It is the current Slackware 14 as posted here viewtopic.php?f=117&t=2593#p17866
Extract it and see if I put all the necessary stuff in var/log to be Slackware-compliant...

Regards!
Porteus is proud of the FASTEST KDE ever made.....(take akonadi, nepomuk and soprano out and you will have a decent OS).
The Porteus Community never sleeps!

User avatar
brokenman
Site Admin
Site Admin
Posts: 5436
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

Re: Python module pygtk is broken.

Post#10 by brokenman » 09 Oct 2013, 01:37

Slackware 14.0 stable and slackware current both use: v2.24 which I have in the repo already.

http://ftp.slackware-brasil.com.br/slac ... e/l/pygtk/

I will do some testing with updating the pygtk module and see how much gets borked.
How do i become super user?
Wear your underpants on the outside and put on a cape.

Post Reply