Bugzilla (bugzilla.redhat.com) will be under maintenance for infrastructure upgrades and will not be available on July 31st between 12:30 AM - 05:30 AM UTC. We appreciate your understanding and patience. You can follow status.redhat.com for details.
Bug 1410127 - mkdocs serve fails because of missing livereload module
Summary: mkdocs serve fails because of missing livereload module
Status: NEW
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: mkdocs
Version: epel7
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: William Moreno
QA Contact: Fedora Extras Quality Assurance
Depends On: 1411586
TreeView+ depends on / blocked
Reported: 2017-01-04 14:24 UTC by Eric Lavarde
Modified: 2017-01-10 08:21 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed:
Type: Bug

Attachments (Terms of Use)

Description Eric Lavarde 2017-01-04 14:24:56 UTC
Description of problem:
mkdocs serve fails with an error about a missing livereload module. AFAICS LiveReload hasn't even been packaged for EPEL/RHEL (it's packaged for Fedora though).

Version-Release number of selected component (if applicable):
Red Hat Enterprise Linux Workstation release 7.3 (Maipo)

How reproducible:

Steps to Reproduce:
1. mkdocs init someproject
2. cd someproject
3. mkdocs serve

Actual results:
Traceback (most recent call last):
  File "/usr/bin/mkdocs", line 9, in <module>
    load_entry_point('mkdocs==0.14.0', 'console_scripts', 'mkdocs')()
  File "/usr/lib/python2.7/site-packages/click/core.py", line 716, in __call__
    return self.main(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/click/core.py", line 696, in main
    rv = self.invoke(ctx)
  File "/usr/lib/python2.7/site-packages/click/core.py", line 1060, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/lib/python2.7/site-packages/click/core.py", line 889, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/lib/python2.7/site-packages/click/core.py", line 534, in invoke
    return callback(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/mkdocs/cli.py", line 111, in serve_command
  File "/usr/lib/python2.7/site-packages/mkdocs/serve.py", line 84, in serve
    _livereload(host, port, config, builder, tempdir)
  File "/usr/lib/python2.7/site-packages/mkdocs/serve.py", line 16, in _livereload
    from livereload import Server
ImportError: No module named livereload

Expected results:

It works... livereload is packaged and a dependency of mkdocs.

Additional info:

mkdocs build works fine

Looking at `rpm -qi mkdocs`, it states "MkDocs is Python powered, this package is built with Python 3." but `/usr/bin/mkdocs` has a shebang on python2...

Comment 1 William Moreno 2017-01-10 02:41:46 UTC
I need live certifi to have live reload in epel7, for the moment the server options will not work in epel7.

Comment 2 Eric Lavarde 2017-01-10 08:21:52 UTC
It would perhaps be nice to have it documented in the package itself? As some kind of README.EPEL (equivalent to README.Debian).

Note You need to log in before you can comment on or make changes to this bug.