You are not logged in.

#1 2013-06-26 14:41:58

chris_blues
Member
Registered: 2013-06-26
Posts: 20

python2-pil [solved]

Hello!
First, I'm sorry if I hit the wrong sub-forum! Please move it as you see fit, dear mod!

My problem:
I've been trying to install python2-pil for quite some time now. The AUR-package cannot be downloaded, as the link is broken. It actually works, if you browse to http://effbot.org/downloads/ and manually download Imaging-1.1.7.tar.gz . But the direkt link doesn't seem to work, so yaourt it helplessly trying to reach that dead link. sad
So, I downloaded it manually and tryed to install it by hand, which seemed to work fine:

python2 setup.py build_ext -i
...
sudo python2 setup.py install
...
python2 selftest.py
--------------------------------------------------------------------
PIL 1.1.7 TEST SUMMARY 
--------------------------------------------------------------------
Python modules loaded from ./PIL
Binary modules loaded from ./PIL
--------------------------------------------------------------------
--- PIL CORE support ok
--- TKINTER support ok
--- JPEG support ok
--- ZLIB (PNG/ZIP) support ok
--- FREETYPE2 support ok
--- LITTLECMS support ok
--------------------------------------------------------------------
Running selftest:
--- 57 tests passed.

I need this in order to run FGo! - it's an starter for FlightGear, available here: https://sites.google.com/site/erobospro … dd-ons/fgo
And somehow this doesn't work! All I get is an python error, complaining about not finding a module named tkinter....

Please can anyone tell, what I'm doing wrong, or what I'm missing?

Background info:
Till recently I used Ubuntu and LinuxMint Debian Edition. Every now and then I get tired of these and try my hands on some other distro. Arch is one I regularly come back to. I like its simplicity and the ability to get to know the system deeply. So far I've managed quite well, I believe. But now I'm stuck on this one. And if anyone could tell my why hddtemp isn't working, I'd be completely happy! smile

Thanks for hints and advice in advance!

Cheers
chris

Last edited by chris_blues (2013-06-27 10:34:19)

Offline

#2 2013-06-26 14:49:47

jakobcreutzfeldt
Member
Registered: 2011-05-12
Posts: 1,041

Re: python2-pil [solved]

The URL in the PKGBUILD is incorrect.  It should be http://effbot.org/media/downloads/Imagi … er}.tar.gz.  You'll have to edit the PKGBUILD (you should be at least looking at it anyway, preferably not using Yaourt since it hides this kind of thing) to fix it.

Edit: regarding the Tkinter problem, make sure you are using python2 and not python (which is Python 3 in Arch).

Last edited by jakobcreutzfeldt (2013-06-26 14:52:22)

Offline

#3 2013-06-26 14:52:33

chris_blues
Member
Registered: 2013-06-26
Posts: 20

Re: python2-pil [solved]

Well yes, the URL is correct in principle, but it returns no download. If you put this into your browser you'll get a 404! See: http://effbot.org/media/downloads/Imaging-1.1.7.tar.gz
Only the click on the download seems to work...

==> Continue building python2-pil ? [Y/n]
==> -------------------------------------
==> 
==> Building and installing package
==> Erstelle Paket: python2-pil 1.1.7-1 (Mi 26. Jun 16:54:00 CEST 2013)
==> WARNUNG: PKGBUILD sollte nicht mehr ohne die Funktion package() verwendet werden.
==> Prüfe Laufzeit-Abhängigkeiten...
==> Prüfe Buildtime-Abhängigkeiten...
==> Empfange Quellen...
  -> Lade Imaging-1.1.7.tar.gz herunter...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (22) The requested URL returned error: 404 Not Found
==> FEHLER: Fehler beim Download von Imaging-1.1.7.tar.gz
    Breche ab ...
==> ERROR: Makepkg was unable to build python2-pil.

Last edited by chris_blues (2013-06-26 14:54:33)

Offline

#4 2013-06-26 14:53:10

jakobcreutzfeldt
Member
Registered: 2011-05-12
Posts: 1,041

Re: python2-pil [solved]

That link worked for me.  I changed the PKGBUILD to use it and it worked just fine.

Be sure to report the problem in a comment on the AUR so the maintainer is aware of the problem.

(btw, check the edit in my last post)

Last edited by jakobcreutzfeldt (2013-06-26 14:54:06)

Offline

#5 2013-06-26 14:55:36

chris_blues
Member
Registered: 2013-06-26
Posts: 20

Re: python2-pil [solved]

Yes, I've already came across the python2 vs python problem (or feature) smile

Edit:
Strange, now the link works for me too... :-$

Last edited by chris_blues (2013-06-26 14:57:55)

Offline

#6 2013-06-26 15:00:04

chris_blues
Member
Registered: 2013-06-26
Posts: 20

Re: python2-pil [solved]

Aahh! Now I've got it! I only changed the part Imaging{xyz}.tar.gz to Imaging-1.1.7.tar.gz, and didn't see the subfolder /media/...
Thanks for your time!!!

Offline

#7 2013-06-26 15:09:30

chris_blues
Member
Registered: 2013-06-26
Posts: 20

Re: python2-pil [solved]

It would seem I was a bit premature with my happiness! "yaourt python2-pil --force" did indeed install PIL, but it's still not working. I get the same error over and over:

python2 /media/FG/fgo/fgo
Traceback (most recent call last):
  File "/media/FG/fgo/fgo", line 8, in <module>
    from src import run
  File "/media/FG/fgo/src/__init__.py", line 5, in <module>
    from tkinter import Tk
ImportError: No module named tkinter

Do I have to register this module somewhere or sth?

Edit:
Changing the file fgo in the first line from python to python2 didn't help either...

Last edited by chris_blues (2013-06-26 15:13:56)

Offline

#8 2013-06-26 17:18:42

jakobcreutzfeldt
Member
Registered: 2011-05-12
Posts: 1,041

Re: python2-pil [solved]

Why did you --force?

It should be importing Tkinter, not tkinter.  Try changing the offending file as such.

Offline

#9 2013-06-26 18:00:37

tharugrim
Member
Registered: 2012-07-20
Posts: 6

Re: python2-pil [solved]

Why don't you just install PIL from the community repository? smile
The package is called python2-imaging.

Offline

#10 2013-06-26 22:59:00

chris_blues
Member
Registered: 2013-06-26
Posts: 20

Re: python2-pil [solved]

jakobcreutzfeldt wrote:

Why did you --force?
It should be importing Tkinter, not tkinter.  Try changing the offending file as such.

I had to, because I already built it from source, since yaourt didn't do the job! So all the files were already there and yaourt quitted accordingly. So I used --force, to force yaourt to do it's job, so that in future it will keep doing it's job, when needed.
As far as I understand things, I defenitely need the python2 tkinter. If I understand correctly Tkinter is part of python3... (note the capital T)
Left a comment at the AUR-Site, by the way...

tharugrim wrote:

Why don't you just install PIL from the community repository? smile
The package is called python2-imaging.

First thing I did! But no results! That made me look for python2-pil, tk and others...

Still, FGo isn't running and I have no idea, why! On all debian-distros it was quite easy! "apt-get install python-imaging-tk" That's all that is needed to be done... No bashing intended!!! But I just don't get it, why this doesn't work...
No hard feelings! smile

Cheers
chris

Edit:
Here is, where my search began: http://www.flightgear.org/forums/viewto … 20&t=20250
Which makes me realize, I got to read up on python-pillow etc...

Last edited by chris_blues (2013-06-26 23:20:12)

Offline

#11 2013-06-27 00:18:09

tharugrim
Member
Registered: 2012-07-20
Posts: 6

Re: python2-pil [solved]

The module is called Tkinter in Python2 and tkinter in Python3.

As jakobcreutzfeldt already said, it should be Tkinter here, and not tkinter.
I downloaded the newest release of fgo and the module name is correct (Tkinter) in the original files.
So it looks like your copy of the fgo plugin was converted to Python3.

Try to download FGo! again and check if it works. smile

Offline

#12 2013-06-27 10:32:36

chris_blues
Member
Registered: 2013-06-26
Posts: 20

Re: python2-pil [solved]

yay! smile "python2 fgo" did it!

Thanks a lot!!!

cheers
chris

Last edited by chris_blues (2013-06-27 10:33:46)

Offline

Board footer

Powered by FluxBB