MVoz / tv-maxe

Automatically exported from code.google.com/p/tv-maxe
0 stars 0 forks source link

TV-Maxe not working in Ubuntu 13.04 Raring: ImportError: No module named Image #55

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm using TV-Maxe from this PPA: https://launchpad.net/~venerix/+archive/blug 
in Ubuntu 13.04 Raring Ringtail. There are no packages for 13.04 yet so I've 
just used the Quantal one in Raring.

It used to work until recently. Now it displays the following error:
Traceback (most recent call last):
  File "tvmaxe.py", line 34, in <module>
    import irwatch, which, sqlite3, re, json, base64, Image, StringIO
ImportError: No module named Image

I think it's a missing dependency but if it is, I couldn't figure out which one 
it is. Or maybe it's something else?

Original issue reported on code.google.com by nilarimo...@gmail.com on 4 Feb 2013 at 7:16

GoogleCodeExporter commented 9 years ago
You need to install PIL (Python Imaging Library). I guess that on Ubuntu it's 
"python-imaging".

Original comment by nitanovi...@gmail.com on 4 Feb 2013 at 7:18

GoogleCodeExporter commented 9 years ago
Like I've said, I thought it was a dependency issue so python-imaging was the 
first thing I've checked (it was already installed). Any other ideas?

Original comment by nilarimo...@gmail.com on 4 Feb 2013 at 7:19

GoogleCodeExporter commented 9 years ago
Hmm, I don't know what could be the problem...

Could you try to run python2 from terminal and then execute:

import Image

manually? Thanks

Original comment by nitanovi...@gmail.com on 4 Feb 2013 at 7:23

GoogleCodeExporter commented 9 years ago
Mmm yup, it seems something is wrong with Python in Ubuntu 13.04 because:

andrei@ubuntu-desktop:~/Downloads$ python2
Python 2.7.3 (default, Jan 26 2013, 15:27:43) 
[GCC 4.7.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import Image
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named Image
>>> 

sudo apt-get install python-imaging
Reading package lists... Done
Building dependency tree       
Reading state information... Done
python-imaging is already the newest version.

Original comment by nilarimo...@gmail.com on 4 Feb 2013 at 7:26

GoogleCodeExporter commented 9 years ago
I've found a fix, apparently because of a recent python-imaging change "import 
Image" fails in all apps: 
https://bugs.launchpad.net/ubuntu/+source/python-imaging/+bug/1112496

But this works: 
import PIL.Image

Original comment by nilarimo...@gmail.com on 4 Feb 2013 at 7:28

GoogleCodeExporter commented 9 years ago
Apropo, puteam sa vorbim si pe Facebook, ma ai in lista, dar am zis sa vada si 
altii in caz ca au aceeasi problema :)

Original comment by nilarimo...@gmail.com on 4 Feb 2013 at 7:29

GoogleCodeExporter commented 9 years ago
I was also reading a Launchpad bug and "import PIL.Image" was the proposed 
solution, too. As Ubuntu 13.04 is still in beta, I'll wait to see if this is 
fixed until the final release or I'll update the TV-Maxe code according to this 
change in this distribution.

Original comment by nitanovi...@gmail.com on 4 Feb 2013 at 7:32

GoogleCodeExporter commented 9 years ago
Damn, and it's more than needs to be updated, e.g: mageDraw, ImageFont -> 
PIL.ImageDraw, PIL.ImageFont, etc.

Original comment by nilarimo...@gmail.com on 4 Feb 2013 at 7:36

GoogleCodeExporter commented 9 years ago
The bug has been fixed by the Ubuntu devs by creating a new package: 
python-imaging-compat - I think it's installed automatically but if it's 
not, the PPA packages for Raring should depend on it...

Original comment by nilarimo...@gmail.com on 10 Feb 2013 at 9:21

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Thank you for your investigation. I will add python-imaging-compat as a 
dependecy for 13.04 package.

Original comment by vene...@gmail.com on 18 Feb 2013 at 8:11