Quoting Joerg Dorchain (2017-08-21 16:42:41)
> when trying to use the supplied /usr/share/radicale/radicale.wsgi file 
> with libapache2-mod-wsgi 4.5.17-1, the following error is displayed in 
> the apache error log:
> 
>  SyntaxError: Non-ASCII character '\\xc2' in file
>  .../radicale.wsgi on line 4, but no encoding declared; see
>  http://python.org/dev/peps/pep-0263/ for details
> 
> Externally a 500 internal error is shown.
> 
> Inserting # coding: utf-8 as second line solves it for me.

Thanks!

Apparently libapache2-mod-wsgi is more picky than uwsgi which I use 
myself - that's the reason I wasn't aware of this.

You might want to consider uwsgi: I believe with libapache2-mod-wsgi all 
data will be writable by the www-data user, which might be a problem if 
you host more than a single application on your server.


 - Jonas

-- 
 * Jonas Smedegaard - idealist & Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/

 [x] quote me freely  [ ] ask before reusing  [ ] keep private

Attachment: signature.asc
Description: signature

Reply via email to