Ok, so there were two final issues.  First, there were the three JPEG
libraries that were not installed on my target system.  So I installed
them.  (I am not sure why the Mezzanine site worked in debug mod even
without having those libraries installed, but it works now.)
Secondly, SELinux was denying access to httpd to execute those shared
libraries, even when they were there.  So I used the SELinux
diagnostic tools to create SELinux policies to allow that to occur.
presto!  Everything works now.

ProTip: There are some SELinux denials that are not logged by default!
 A program that tries to execute a bit of code within a shared library
will silently fail if SELinux doesn't approve of that execution.  The
documentation for RedHat 7 describes how to fix this.  (Basically
rebuild the selinux policy with an option enabled, and reboot the
system.  The problem is your logs will fill up quickly and you'll have
to sift through some stuff to find the denial.  But then you can
rebuild the selinux policy without this option enabled to return to
normal operation.  Once you sift through the denial you can use the
normal audit2allow and friends to create the correct policy.)

If anyone is curious: I am running this on CentOS 7 with the Software
Collections versions of Python 3.5 and Apache 2.4.  Lots of custom
configuration here.  But now it appears to work fully!

On Sat, Jun 10, 2017 at 6:44 PM, Karim <[email protected]> wrote:
>
> On Sun, Jun 11, 2017 at 8:39 AM, Joshua Kramer <[email protected]>
> wrote:
>>
>> ...it tries to import PIL, but it fails.  When I switch to this
>> virtualenv and try to import Image from PIL, I get an error about
>> loading a JPEG shared library.  So I need to chase down why this JPEG
>> library isn't there.
>
>
> check if you have all the requirements to compile Pillow correctly.
>
> http://pillow.readthedocs.io/en/3.4.x/installation.html
>
> If you check the requirements, you must have `libjpeg` installed and I
> suppose also `libjpeg-dev`.
>
> Have a look
>
>
> --
> Karim N. Gorjux
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Mezzanine Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/mezzanine-users/2_hf9eIc4eM/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to