-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cannot identify image file #2
Comments
I'm just a user, so just suggesting ;-) Regards, Oliver |
I'm doing everything as in this tutorial http://youtu.be/2xYWIv8ksqg .The problem happens short after time 2:19 I click on "image occlusion" button as in the video and at this moment the exception is raised. There is no image selected yet. |
Tried it in my Ubuntu 12.04 VM. After that I wanted to choose a picture from a folder. When I clicked on the "Image Occlusion" button I got exactly the same error message. Trying for another time it worked again perfectly... Now, after restarting Anki I got the error message all the time. I opened a terminal and updated the system:
And ... it did not work either. I opened the python-Skript that is shown in the error message (you will have to change it to your user): gedit /home/oliver/Anki/addons/image_occlusion_2/Imaging/PIL/Image.py Then I used the menu function to navigate to line 1980 (Ctrl+i).
and saved. Now it works... Don't ask me why ;-) I hope this will help, Regards, Oliver |
The commenting of line |
Well, I didn't install anything, just Ubuntu 12.04 and all updates and Anki. But anyway, it works! That counts ;) |
I have the same issue except commenting out the line in Image.py did not solve the issue, it just caught errors elsewhere. |
I can confirm I get this error on ubuntu installed at uni, and on linux mint (basically ubuntu) at home. However, I don't get this problem on windows. I'm now forced to use windows as I've really got into making image occlusion cards. It's a great add-on but it would be much better if this error didn't occur on linux. |
When I installed this addon from this link https://ankiweb.net/shared/info/282798835
and choose "add" -> button with "image occlusion" I get the following error. Where could be the problem? (Ubuntu 12.04)
An error occurred in an add-on. Please contact the add-on author.
Traceback (most recent call last):
File "/home/lucidl/Anki/addons/image_occlusion_2/image_occlusion.py", line 86, in add_notes
self.call_ImageOcc_Editor(image_path)
File "/home/lucidl/Anki/addons/image_occlusion_2/image_occlusion.py", line 98, in call_ImageOcc_Editor
d = svgutils.image2svg(path)
File "/home/lucidl/Anki/addons/image_occlusion_2/svgutils.py", line 54, in image2svg
im = Image.open(im_path)
File "/home/lucidl/Anki/addons/image_occlusion_2/Imaging/PIL/Image.py", line 1980, in open
raise IOError("cannot identify image file")
IOError: cannot identify image file
The text was updated successfully, but these errors were encountered: