AttributeError: 'NoneType' object has no attribute 'split' while execute pelican-quickstart

858 Views Asked by At

I'm trying to build a static site using Pelican with Git Pages but I got this little problem when execute the command pelican-quickstart .

I got this on the prompt: image of output

Any ideas? I found this on pelican's github but I don't really understand what exactly I must do to fix this issue.

I'm using Python 3.5, Pelican 3.7.0 inside a virtualenv.

1

There are 1 best solutions below

1
On

For same unknown reason, my file pelican-quickstart.py doesn't verify the lenght of sys.version_info.major . So I just put these two lines on the code:

if (sys.version_info.major >= 2): locale.setlocale(locale.LC_ALL, '')

Just below the line from pelican import __version__ .

This works pretty well for me. The solution comes from this code snippet .