Skip to content
This repository has been archived by the owner on May 8, 2019. It is now read-only.

Document libjpeg/zlib etc as dependencies of PIL; add a runserver check for their presence #12

Closed
btipling opened this issue Feb 14, 2014 · 15 comments
Assignees

Comments

@btipling
Copy link

Is this expected?

2014-02-14 at 5 39 am 2x

@btipling
Copy link
Author

Seeing a 404 for /static/demo/css/vendor/images/bx_loader.gif

Looking into some more.

@btipling
Copy link
Author

There is no bx_loader.gif anywhere in wagtaildemo:

(wagtail)bjorn@ubuntu:~/dev/wagtaildemo$ find ./ -iname 'bx_loader.gif'
(wagtail)bjorn@ubuntu:~/dev/wagtaildemo$

@kaedroho kaedroho self-assigned this Feb 14, 2014
@kaedroho
Copy link
Contributor

Hi @btipling
Thanks for spotting, just taking a look into this now

@kaedroho
Copy link
Contributor

I've just added the missing image files. I'm not sure if this will solve your issue though.
The box should contain a photo of a wagtail, can you see any of the other pictures on the homepage? (there should be some under "People")
Also, do you get a picture at this link? "/media/images/grey_wagtail_by_lip_kee.width-1000.jpg"

@btipling
Copy link
Author

No I don't see the images.

I have them in the file system, but they show up as not found:

./demo/fixtures/images/David_Mitchell_by_Kubik.JPG
./demo/fixtures/images/grey_wagtail_by_lip_kee.jpg
./demo/fixtures/images/hopalong_wagtail_by_Ruth_Flickr.jpg
./demo/fixtures/images/James_Joyce_in_1915.jpg
./demo/fixtures/images/pied_wagtail_by_Marie_Hale.jpg
./demo/fixtures/images/wagtail_at_Borovoye_Kazakhstan_by_Ken_and_Nyetta.jpg
./demo/fixtures/images/wagtail_by_fs-phil.jpg
./demo/fixtures/images/wagtail_by_joe_buckingham.jpg
./demo/fixtures/images/wagtail_by_markyharky.jpg
./demo/fixtures/images/wagtail_collects_insects_by_Maggi_94.jpg
./demo/fixtures/images/wagtail_sproing_by_Jim_Bendon.jpg
./demo/fixtures/images/white_wagtail_by_Koshyk.jpg
./media/original_images/David_Mitchell_by_Kubik.JPG
./media/original_images/grey_wagtail_by_lip_kee.jpg
./media/original_images/hopalong_wagtail_by_Ruth_Flickr.jpg
./media/original_images/James_Joyce_in_1915.jpg
./media/original_images/pied_wagtail_by_Marie_Hale.jpg
./media/original_images/wagtail_at_Borovoye_Kazakhstan_by_Ken_and_Nyetta.jpg
./media/original_images/wagtail_by_fs-phil.jpg
./media/original_images/wagtail_by_joe_buckingham.jpg
./media/original_images/wagtail_by_markyharky.jpg
./media/original_images/wagtail_collects_insects_by_Maggi_94.jpg
./media/original_images/wagtail_sproing_by_Jim_Bendon.jpg
./media/original_images/white_wagtail_by_Koshyk.jpg

2014-02-14 at 6 40 am 2x

2014-02-14 at 6 41 am 2x

<img src="/media/not-found" width="0" height="0" alt="Grey wagtail by Lip Kee">

@kaedroho
Copy link
Contributor

Are you running it in the VM or on your host machine?

If you're running it on your host machine, do you have the following packages installed?
libjpeg-dev libtiff-dev zlib1g-dev libfreetype6-dev liblcms2-dev

@btipling
Copy link
Author

I didn't have those, but I am still not seeing the images after adding them. I am using a vm, but I'm not using vagrant because vagrant for Vmware Fusion is not free. I'm using Ubuntu 13.10

I dumped my database and recreated running all the ./manage.py commands again, but no luck.

@kaedroho
Copy link
Contributor

You'll need to rebuild Pillow as it was first built without those packages (so it hasn't linked to them)

You can do this by running:

pip uninstall Pillow
pip install Pillow

Let me know if that gets you anywhere

@btipling
Copy link
Author

That worked. Thank you. Some kind of check maybe when starting runserver may be helpful in the future. :)

@btipling
Copy link
Author

Maybe just update the readme for non vagrant with those requirements (and others people have had to install)?

@oyvindsk
Copy link

oyvindsk commented Mar 4, 2014

Adding the dependencies fixed this issue for me as well..

@BertrandBordage
Copy link
Contributor

I can’t reproduce this bug. Maybe it’s a file/folder permission issue?

@gasman gasman changed the title Demo home page has a big empty box on it Document libjpeg/zlib etc as dependencies of PIL; add a runserver check for their presence Feb 5, 2015
@gasman
Copy link
Contributor

gasman commented Feb 5, 2015

It sounds like this is universally caused by missing dependencies of PIL. Have updated the issue title to address the fixes that @btipling proposes.

@BertrandBordage
Copy link
Contributor

So this could be closed in favor of #7 if I understand well.

@gasman
Copy link
Contributor

gasman commented Aug 26, 2015

http://docs.wagtail.io/en/v1.0/getting_started/index.html now covers the fact that Pillow requires additional libraries (and this document is the current recommended route for new users, rather than wagtaildemo). Adding a runserver check is covered in wagtail/wagtail#1644.

@gasman gasman closed this as completed Aug 26, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants