Red Hat Bugzilla – Bug 1305623
Nikola won't run due to incompatible library version for python-dateutil
Last modified: 2016-02-09 09:09:13 EST
Description of problem:
Nikola will not run due to missing version dependency in Fedora 23. Nikola requires python-dateutil==2.4.1, however python-dateutil==2.4.2 is in the repository.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. dnf install python-nikola
2. nikola init testsite
[david@example ~]$ nikola init testsite
Traceback (most recent call last):
File "/usr/bin/nikola", line 5, in <module>
from pkg_resources import load_entry_point
File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3084, in <module>
File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3070, in _call_aside
File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3097, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 653, in _build_master
File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 666, in _build_from_requirements
dists = ws.resolve(reqs, Environment())
File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 839, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'python-dateutil==2.4.1' distribution was not found and is required by Nikola
$ nikola init --demo my_first_site
Creating Nikola Site
This is Nikola. We will now ask you a few easy questions about your new site.
If you do not want to answer and want to go with the defaults instead, simply restart with the `-q` parameter.
--- Questions about the site ---
Site title [My Nikola Site]: My First Nikola Site
...a couple more questions...
That's it, Nikola is now configured. Make sure to edit conf.py to your liking.
If you are looking for themes and addons, check out https://themes.getnikola.com/ and https://plugins.getnikola.com/.
INFO: init: A new site with example data has been created at my_first_site.
INFO: init: See README.txt in that folder for more information.
This also affects python3-nikola. I'll file a bug there too, as support for python 2.7 is being deprecated, see https://getnikola.com/blog/env-survey-results-and-the-future-of-python-27.html
*** This bug has been marked as a duplicate of bug 1268039 ***