Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 317469 - games-board/pysolfc-2.0 fails to run (ImportError: No module named _imagingtk)
Summary: games-board/pysolfc-2.0 fails to run (ImportError: No module named _imagingtk)
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 315295
  Show dependency tree
 
Reported: 2010-04-27 13:02 UTC by Paweł Hajdan, Jr. (RETIRED)
Modified: 2010-04-27 17:15 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2010-04-27 13:02:43 UTC
$ pysolfc 
Traceback (most recent call last):
  File "/usr/share/games/pysolfc/pysol.py", line 32, in <module>
    sys.exit(main(sys.argv))
  File "/usr/lib/python2.6/site-packages/pysollib/main.py", line 359, in main
    r = pysol_init(app, args)
  File "/usr/lib/python2.6/site-packages/pysollib/main.py", line 196, in pysol_init
    app.loadImages1()
  File "/usr/lib/python2.6/site-packages/pysollib/app.py", line 712, in loadImages1
    im = loadImage(fn)
  File "/usr/lib/python2.6/site-packages/pysollib/tile/tkutil.py", line 276, in makeImage
    im = PIL_Image(file)
  File "/usr/lib/python2.6/site-packages/pysollib/tile/tkutil.py", line 254, in __init__
    ImageTk.PhotoImage.__init__(self, image)
  File "/usr/lib/python2.6/site-packages/PIL/ImageTk.py", line 116, in __init__
    self.paste(image)
  File "/usr/lib/python2.6/site-packages/PIL/ImageTk.py", line 181, in paste
    import _imagingtk
ImportError: No module named _imagingtk

Both dev-lang/python and dev-python/imaging have USE="tk" enabled. I also have python 3.1 installed.
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2010-04-27 13:11:32 UTC
Seems fine here,

USE="tk" emerge -av1 imaging

[ .. ]

>>> /usr/lib64/python2.6/site-packages/PIL/_imagingtk.so

[ .. ]

$ python
Python 2.6.5 (r265:79063, Apr 26 2010, 06:21:46) 
[GCC 4.5.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import _imagingtk
>>>
Comment 2 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2010-04-27 13:23:14 UTC
(In reply to comment #1)
> Seems fine here,

That's weird.

$ equery files imaging | grep \.so
/usr/lib/debug/usr/lib/python2.6/site-packages/PIL/_imaging.so.debug
/usr/lib/debug/usr/lib/python2.6/site-packages/PIL/_imagingcms.so.debug
/usr/lib/debug/usr/lib/python2.6/site-packages/PIL/_imagingft.so.debug
/usr/lib/debug/usr/lib/python2.6/site-packages/PIL/_imagingmath.so.debug
/usr/lib/python2.6/site-packages/PIL/_imaging.so
/usr/lib/python2.6/site-packages/PIL/_imagingcms.so
/usr/lib/python2.6/site-packages/PIL/_imagingft.so
/usr/lib/python2.6/site-packages/PIL/_imagingmath.so

[ebuild   R   ] dev-python/imaging-1.1.7  USE="X tk -doc -examples -scanner" 0 kB
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2010-04-27 15:40:22 UTC
Sounds like you should post build.log of imaging and reassign the bug to python@
:)
Comment 4 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2010-04-27 17:15:09 UTC
Weird, I can't repro now (after doing a few other things in that system).