When attempting to run "pelican-quickstart" with Pelican version 3.3, users may encounter the following error:
ValueError: unknown locale: UTF-8
This error stems from a known bug in Python that is triggered by Pelican's reliance on the docutils package.
Solution:
To resolve this issue, add the following lines to your ~/.bash_profile:
export LC_ALL=en_US.UTF-8 export LANG=en_US.UTF-8
This workaround explicitly sets the locale environment variables, overriding the problematic Python assumptions.
Note: The default settings in the provided solution assume English and the United States. If necessary, you can update the values to match your specific locale preferences. To determine the available options for your locale, run the following command:
locale -a
The above is the detailed content of How to Fix \'ValueError: unknown locale: UTF-8\' in Pelican-Quickstart with Version 3.3?. For more information, please follow other related articles on the PHP Chinese website!