Closed fralau closed 6 years ago
Hi there,
Questions:
I've just published the 0.0.3 version to pypi
Hi,
Thanks a lot for the prompt reaction! On my system the default is python2, so that added a little complication.
I did install mkdocs with pip3; I assumed it run under python3, but the safety setup.py file was still failing. In my case (on MacOs), pip3 was mixed-up and it was running… python2:
$ cat /usr/local/bin/pip3
#!/usr/local/opt/python@2/bin/python2.7
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(
load_entry_point('pip==10.0.1', 'console_scripts', 'pip3')()
)
Finally, I solved this by:
brew upgrade python3
pip uninstall
mkdocs and mkdocs-markdownextra (and pip3 uninstall
)pip3 install
. Basically, upgrading python3 and a clean reinstall of mkdocs.
But now I have another problem: the server does not recognize markdownextra plugin:
$ mkdocs serve
INFO - Building documentation...
ERROR - Config value: 'plugins'. Error: The "markdownextra" plugin is not installed
Aborted with 1 Configuration Errors!
Maybe a little piece still missing?
This is to evidence that mkdocs run under python3:
$ which mkdocs
/usr/local/bin/mkdocs
$ head /usr/local/bin/mkdocs
#!/usr/local/opt/python/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from mkdocs.__main__ import cli
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
Hi there,
plugins:
- search
- markdownextradata
note how its markdownextradata
and not markdownextra
Thanks my mistake was the wrong name of the setup: not but markdownextra
markdownextradata
.
I recognize that a virtualenv might be the best solution, but fortunately it wasn't necessary in this case.
I now works, thanks!
Thats great news!
Thanks for raising the problem! forced me to fix a few issues :) all the best and i wish you luck with your project
Following the procedure, I called the following command:
I tried to download the code in a local directory and run
python setup.py install
. It worked, but then I get the following error:What should I do?