Python TK

Anything that pertains to Portage

Moderator: Moderators

Python TK

Postby kosovafan » Thu Jul 26, 2012 2:44

Hello,

i need Python 2.7. with TK and imaging with TK USE. I try to install a game which need it. I install the game with equo but want not run. TK i have installed with equo in Python but imaging gives not in equo. I try to emerge but all end with error message.

Code: Select all
>>> Emerging (2 of 3) dev-python/imaging-1.1.7-r1
 * Imaging-1.1.7.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...             [ ok ]
 * Please rebuild dev-lang/python:2.7 with the following USE flags enabled: tk
 * ERROR: dev-python/imaging-1.1.7-r1 failed (setup phase):
 *   Please rebuild dev-lang/python:2.7 with the following USE flags enabled: tk
 *
 * Call stack:
 *                 ebuild.sh, line   85:  Called pkg_setup
 *   imaging-1.1.7-r1.ebuild, line   38:  Called python_pkg_setup
 *             python.eclass, line  470:  Called python_execute_function '-q' 'python_pkg_setup_check_USE_flags'
 *             python.eclass, line 1107:  Called python_pkg_setup_check_USE_flags
 *             python.eclass, line  453:  Called die
 * The specific snippet of code:
 *                  die "Please rebuild ${python_atom} with the following USE flags enabled: ${PYTHON_USE_WITH}"
 *
 * If you need support, post the output of `emerge --info '=dev-python/imaging-1.1.7-r1'`,
 * the complete build log and the output of `emerge -pqv '=dev-python/imaging-1.1.7-r1'`.
 * The complete build log is located at '/var/tmp/portage/dev-python/imaging-1.1.7-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-python/imaging-1.1.7-r1/temp/die.env'.
 * Working directory: '/var/tmp/portage/dev-python/imaging-1.1.7-r1'
 * S: '/var/tmp/portage/dev-python/imaging-1.1.7-r1/work/Imaging-1.1.7'

>>> Failed to emerge dev-python/imaging-1.1.7-r1, Log file:

>>>  '/var/tmp/portage/dev-python/imaging-1.1.7-r1/temp/build.log'


When i emerge python, say me i should use newuse and update, but self when give both in emerge nothing happen.

Code: Select all
gentoo-mobile siefke # emerge --newuse --update =dev-lang/python-2.7.2-r3
Calculating dependencies... done!
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.
gentoo-mobile siefke #


The game:
Code: Select all
siefke@gentoo-mobile ~ $ 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.7/site-packages/pysollib/main.py", line 359, in main
    r = pysol_init(app, args)
  File "/usr/lib/python2.7/site-packages/pysollib/main.py", line 196, in pysol_init
    app.loadImages1()
  File "/usr/lib/python2.7/site-packages/pysollib/app.py", line 712, in loadImages1
    im = loadImage(fn)
  File "/usr/lib/python2.7/site-packages/pysollib/tile/tkutil.py", line 276, in makeImage
    im = PIL_Image(file)
  File "/usr/lib/python2.7/site-packages/pysollib/tile/tkutil.py", line 254, in __init__
    ImageTk.PhotoImage.__init__(self, image)
  File "/usr/lib/python2.7/site-packages/PIL/ImageTk.py", line 116, in __init__
    self.paste(image)
  File "/usr/lib/python2.7/site-packages/PIL/ImageTk.py", line 181, in paste
    import _imagingtk
ImportError: No module named _imagingtk

Can me someone say what can i do?

Thank u. Regards
Silvio
kosovafan
Baby Hen
 
Posts: 7
Joined: Sun Mar 11, 2012 3:34

Re: Python TK

Postby sabayonino » Thu Jul 26, 2012 11:46

run :
Code: Select all
# USE="tk" emerge dev-lang/python:2.7


Code: Select all
# equo rescue spmsync


if it works , for the future operations You can definitely run :
Code: Select all
# echo "dev-lang/python tk" >> /etc/portage/package.use


[edit] Please file a bug report https://bugs.sabayon.org/ to request new use flag.
User avatar
sabayonino
Sagely Hen
 
Posts: 1574
Joined: Sun Sep 21, 2008 1:12
Location: Italy

Re: Python TK

Postby svantoviit » Thu Aug 23, 2012 8:58

I wouldn't mess with emerging python…
Try to install dev-lang/python-tk maybe it helps.

Edit: No it doesn't :(
Seems you need to recompile dev-lang/python and dev-python/imaging with tk useflag enabled.
Would file a bug.
User avatar
svantoviit
Technological Hen
 
Posts: 395
Joined: Sun Feb 28, 2010 17:55
Location: Europe


Return to Portage|Emerge Package Managers

Who is online

Users browsing this forum: No registered users and 2 guests

cron