Page 1 of 1

Python module pygtk is broken.

Posted: 14 Sep 2013, 10:30
by cpoakes
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

Re: Python module pygtk is broken.

Posted: 14 Sep 2013, 11:39
by wread
Try this one, it works for me!

Good luck!

Re: Python module pygtk is broken.

Posted: 14 Sep 2013, 12:25
by cpoakes
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.

Re: Python module pygtk is broken.

Posted: 14 Sep 2013, 13:03
by wread
El placer es mío.

Now please edit your post to add [SOLVED]

Saludos :D

Re: Python module pygtk is broken.

Posted: 06 Oct 2013, 10:13
by cpoakes
@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".

Re: Python module pygtk is broken.

Posted: 06 Oct 2013, 10:35
by cpoakes
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.

Re: Python module pygtk is broken.

Posted: 06 Oct 2013, 10:39
by wread
Don't worry, brokenman will take care of that!

Re: Python module pygtk is broken.

Posted: 06 Oct 2013, 15:41
by brokenman
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.

Re: Python module pygtk is broken.

Posted: 06 Oct 2013, 22:51
by wread
Hi Jay!
It is the current Slackware 14 as posted here http://forum.porteus.org/viewtopic.php? ... 593#p17866
Extract it and see if I put all the necessary stuff in var/log to be Slackware-compliant...

Regards!

Re: Python module pygtk is broken.

Posted: 09 Oct 2013, 01:37
by brokenman
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.