vladris / tinkerer

Python blogging engine
https://vladris.com/tinkerer
Other
305 stars 81 forks source link

Could not import extension tinkerer.ext.blog (exception: cannot import name 'Directive') #108

Open Firstyear opened 6 years ago

Firstyear commented 6 years ago
tinker --build         
Running Sphinx v1.7.1

Extension error:
Could not import extension tinkerer.ext.blog (exception: cannot import name 'Directive')

Fedora 27 x86_64. Installed with "sudo pip3 install tinkerer". This is a freshly installed system with no modifications.

Files are:

  /usr/local/bin/tinker
  /usr/local/lib/python3.6/site-packages/Tinkerer-1.6.0-py3.6.egg-info
  /usr/local/lib/python3.6/site-packages/tinkerer/__init__.py
  /usr/local/lib/python3.6/site-packages/tinkerer/__pycache__/__init__.cpython-36.pyc
  /usr/local/lib/python3.6/site-packages/tinkerer/__pycache__/cmdline.cpython-36.pyc
  /usr/local/lib/python3.6/site-packages/tinkerer/__pycache__/draft.cpython-36.pyc
  /usr/local/lib/python3.6/site-packages/tinkerer/__pycache__/master.cpython-36.pyc
  /usr/local/lib/python3.6/site-packages/tinkerer/__pycache__/output.cpython-36.pyc
  /usr/local/lib/python3.6/site-packages/tinkerer/__pycache__/page.cpython-36.pyc
  /usr/local/lib/python3.6/site-packages/tinkerer/__pycache__/paths.cpython-36.pyc
  /usr/local/lib/python3.6/site-packages/tinkerer/__pycache__/post.cpython-36.pyc
  /usr/local/lib/python3.6/site-packages/tinkerer/__pycache__/utils.cpython-36.pyc
  /usr/local/lib/python3.6/site-packages/tinkerer/__pycache__/writer.cpython-36.pyc
  /usr/local/lib/python3.6/site-packages/tinkerer/__templates/__pycache__/conf.cpython-36.pyc
  /usr/local/lib/python3.6/site-packages/tinkerer/__templates/conf.py
  /usr/local/lib/python3.6/site-packages/tinkerer/__templates/index.html
  /usr/local/lib/python3.6/site-packages/tinkerer/__templates/master.rst
  /usr/local/lib/python3.6/site-packages/tinkerer/__templates/page.rst
  /usr/local/lib/python3.6/site-packages/tinkerer/__templates/post.rst
  /usr/local/lib/python3.6/site-packages/tinkerer/cmdline.py
  /usr/local/lib/python3.6/site-packages/tinkerer/draft.py
  /usr/local/lib/python3.6/site-packages/tinkerer/ext/__init__.py
  /usr/local/lib/python3.6/site-packages/tinkerer/ext/__pycache__/__init__.cpython-36.pyc
  /usr/local/lib/python3.6/site-packages/tinkerer/ext/__pycache__/aggregator.cpython-36.pyc
  /usr/local/lib/python3.6/site-packages/tinkerer/ext/__pycache__/author.cpython-36.pyc
  /usr/local/lib/python3.6/site-packages/tinkerer/ext/__pycache__/blog.cpython-36.pyc
  /usr/local/lib/python3.6/site-packages/tinkerer/ext/__pycache__/disqus.cpython-36.pyc
  /usr/local/lib/python3.6/site-packages/tinkerer/ext/__pycache__/filing.cpython-36.pyc
  /usr/local/lib/python3.6/site-packages/tinkerer/ext/__pycache__/html5.cpython-36.pyc
  /usr/local/lib/python3.6/site-packages/tinkerer/ext/__pycache__/metadata.cpython-36.pyc
  /usr/local/lib/python3.6/site-packages/tinkerer/ext/__pycache__/patch.cpython-36.pyc
  /usr/local/lib/python3.6/site-packages/tinkerer/ext/__pycache__/readmore.cpython-36.pyc
  /usr/local/lib/python3.6/site-packages/tinkerer/ext/__pycache__/rss.cpython-36.pyc
  /usr/local/lib/python3.6/site-packages/tinkerer/ext/__pycache__/uistr.cpython-36.pyc
  /usr/local/lib/python3.6/site-packages/tinkerer/ext/aggregator.py
  /usr/local/lib/python3.6/site-packages/tinkerer/ext/author.py
  /usr/local/lib/python3.6/site-packages/tinkerer/ext/blog.py
  /usr/local/lib/python3.6/site-packages/tinkerer/ext/disqus.py
  /usr/local/lib/python3.6/site-packages/tinkerer/ext/filing.py
  /usr/local/lib/python3.6/site-packages/tinkerer/ext/html5.py
  /usr/local/lib/python3.6/site-packages/tinkerer/ext/locale/ca/LC_MESSAGES/tinkerer.mo
  /usr/local/lib/python3.6/site-packages/tinkerer/ext/locale/de/LC_MESSAGES/tinkerer.mo
  /usr/local/lib/python3.6/site-packages/tinkerer/ext/locale/en_GB/LC_MESSAGES/tinkerer.mo
  /usr/local/lib/python3.6/site-packages/tinkerer/ext/locale/es/LC_MESSAGES/tinkerer.mo
  /usr/local/lib/python3.6/site-packages/tinkerer/ext/locale/fr/LC_MESSAGES/tinkerer.mo
  /usr/local/lib/python3.6/site-packages/tinkerer/ext/locale/it/LC_MESSAGES/tinkerer.mo
  /usr/local/lib/python3.6/site-packages/tinkerer/ext/locale/ja/LC_MESSAGES/tinkerer.mo
  /usr/local/lib/python3.6/site-packages/tinkerer/ext/locale/pl/LC_MESSAGES/tinkerer.mo
  /usr/local/lib/python3.6/site-packages/tinkerer/ext/locale/pt_BR/LC_MESSAGES/tinkerer.mo
  /usr/local/lib/python3.6/site-packages/tinkerer/ext/locale/ru/LC_MESSAGES/tinkerer.mo
  /usr/local/lib/python3.6/site-packages/tinkerer/ext/locale/sk/LC_MESSAGES/tinkerer.mo
  /usr/local/lib/python3.6/site-packages/tinkerer/ext/locale/zh_CN/LC_MESSAGES/tinkerer.mo
  /usr/local/lib/python3.6/site-packages/tinkerer/ext/locale/zh_TW/LC_MESSAGES/tinkerer.mo
  /usr/local/lib/python3.6/site-packages/tinkerer/ext/metadata.py
  /usr/local/lib/python3.6/site-packages/tinkerer/ext/patch.py
  /usr/local/lib/python3.6/site-packages/tinkerer/ext/readmore.py
  /usr/local/lib/python3.6/site-packages/tinkerer/ext/rss.py
  /usr/local/lib/python3.6/site-packages/tinkerer/ext/uistr.py
  /usr/local/lib/python3.6/site-packages/tinkerer/master.py
  /usr/local/lib/python3.6/site-packages/tinkerer/output.py
  /usr/local/lib/python3.6/site-packages/tinkerer/page.py
  /usr/local/lib/python3.6/site-packages/tinkerer/paths.py
  /usr/local/lib/python3.6/site-packages/tinkerer/post.py
  /usr/local/lib/python3.6/site-packages/tinkerer/static/disqus.js
  /usr/local/lib/python3.6/site-packages/tinkerer/static/tinkerer.ico
  /usr/local/lib/python3.6/site-packages/tinkerer/themes/boilerplate/404.html
  /usr/local/lib/python3.6/site-packages/tinkerer/themes/boilerplate/CHANGELOG.md
  /usr/local/lib/python3.6/site-packages/tinkerer/themes/boilerplate/CONTRIBUTING.md
  /usr/local/lib/python3.6/site-packages/tinkerer/themes/boilerplate/LICENSE.md
  /usr/local/lib/python3.6/site-packages/tinkerer/themes/boilerplate/README.md
  /usr/local/lib/python3.6/site-packages/tinkerer/themes/boilerplate/aggregated.html
  /usr/local/lib/python3.6/site-packages/tinkerer/themes/boilerplate/archive.html
  /usr/local/lib/python3.6/site-packages/tinkerer/themes/boilerplate/categories.html
  /usr/local/lib/python3.6/site-packages/tinkerer/themes/boilerplate/crossdomain.xml
  /usr/local/lib/python3.6/site-packages/tinkerer/themes/boilerplate/doc/TOC.md
  /usr/local/lib/python3.6/site-packages/tinkerer/themes/boilerplate/doc/crossdomain.md
  /usr/local/lib/python3.6/site-packages/tinkerer/themes/boilerplate/doc/css.md
  /usr/local/lib/python3.6/site-packages/tinkerer/themes/boilerplate/doc/extend.md
  /usr/local/lib/python3.6/site-packages/tinkerer/themes/boilerplate/doc/faq.md
  /usr/local/lib/python3.6/site-packages/tinkerer/themes/boilerplate/doc/htaccess.md
  /usr/local/lib/python3.6/site-packages/tinkerer/themes/boilerplate/doc/html.md
  /usr/local/lib/python3.6/site-packages/tinkerer/themes/boilerplate/doc/js.md
  /usr/local/lib/python3.6/site-packages/tinkerer/themes/boilerplate/doc/misc.md
  /usr/local/lib/python3.6/site-packages/tinkerer/themes/boilerplate/doc/usage.md
  /usr/local/lib/python3.6/site-packages/tinkerer/themes/boilerplate/favicon.ico
  /usr/local/lib/python3.6/site-packages/tinkerer/themes/boilerplate/genindex.html
  /usr/local/lib/python3.6/site-packages/tinkerer/themes/boilerplate/humans.txt
  /usr/local/lib/python3.6/site-packages/tinkerer/themes/boilerplate/index.html
  /usr/local/lib/python3.6/site-packages/tinkerer/themes/boilerplate/layout.html
  /usr/local/lib/python3.6/site-packages/tinkerer/themes/boilerplate/page.html
  /usr/local/lib/python3.6/site-packages/tinkerer/themes/boilerplate/recent.html
  /usr/local/lib/python3.6/site-packages/tinkerer/themes/boilerplate/robots.txt
  /usr/local/lib/python3.6/site-packages/tinkerer/themes/boilerplate/rss.html
  /usr/local/lib/python3.6/site-packages/tinkerer/themes/boilerplate/search.html
  /usr/local/lib/python3.6/site-packages/tinkerer/themes/boilerplate/searchbox.html
  /usr/local/lib/python3.6/site-packages/tinkerer/themes/boilerplate/static/doctools.js
  /usr/local/lib/python3.6/site-packages/tinkerer/themes/boilerplate/static/font-awesome.min.css
  /usr/local/lib/python3.6/site-packages/tinkerer/themes/boilerplate/static/fontawesome-webfont.eot
  /usr/local/lib/python3.6/site-packages/tinkerer/themes/boilerplate/static/fontawesome-webfont.svg
  /usr/local/lib/python3.6/site-packages/tinkerer/themes/boilerplate/static/fontawesome-webfont.ttf
  /usr/local/lib/python3.6/site-packages/tinkerer/themes/boilerplate/static/fontawesome-webfont.woff
  /usr/local/lib/python3.6/site-packages/tinkerer/themes/boilerplate/static/img/apple-touch-icon-114x114-precomposed.png
  /usr/local/lib/python3.6/site-packages/tinkerer/themes/boilerplate/static/img/apple-touch-icon-144x144-precomposed.png
  /usr/local/lib/python3.6/site-packages/tinkerer/themes/boilerplate/static/img/apple-touch-icon-57x57-precomposed.png
  /usr/local/lib/python3.6/site-packages/tinkerer/themes/boilerplate/static/img/apple-touch-icon-72x72-precomposed.png
  /usr/local/lib/python3.6/site-packages/tinkerer/themes/boilerplate/static/img/apple-touch-icon-precomposed.png
  /usr/local/lib/python3.6/site-packages/tinkerer/themes/boilerplate/static/img/apple-touch-icon.png
  /usr/local/lib/python3.6/site-packages/tinkerer/themes/boilerplate/static/main.css
  /usr/local/lib/python3.6/site-packages/tinkerer/themes/boilerplate/static/main.js
  /usr/local/lib/python3.6/site-packages/tinkerer/themes/boilerplate/static/normalize.css
  /usr/local/lib/python3.6/site-packages/tinkerer/themes/boilerplate/static/plugins.js
  /usr/local/lib/python3.6/site-packages/tinkerer/themes/boilerplate/static/searchtools.js_t
  /usr/local/lib/python3.6/site-packages/tinkerer/themes/boilerplate/static/sphinx.css
  /usr/local/lib/python3.6/site-packages/tinkerer/themes/boilerplate/static/underscore.js
  /usr/local/lib/python3.6/site-packages/tinkerer/themes/boilerplate/static/vendor/jquery-1.8.2.min.js
  /usr/local/lib/python3.6/site-packages/tinkerer/themes/boilerplate/static/vendor/modernizr-2.6.2.min.js
  /usr/local/lib/python3.6/site-packages/tinkerer/themes/boilerplate/tags.html
  /usr/local/lib/python3.6/site-packages/tinkerer/themes/boilerplate/tags_cloud.html
  /usr/local/lib/python3.6/site-packages/tinkerer/themes/boilerplate/theme.conf
  /usr/local/lib/python3.6/site-packages/tinkerer/themes/dark/layout.html
  /usr/local/lib/python3.6/site-packages/tinkerer/themes/dark/static/dark.css
  /usr/local/lib/python3.6/site-packages/tinkerer/themes/dark/static/img/x.png
  /usr/local/lib/python3.6/site-packages/tinkerer/themes/dark/theme.conf
  /usr/local/lib/python3.6/site-packages/tinkerer/themes/flat/layout.html
  /usr/local/lib/python3.6/site-packages/tinkerer/themes/flat/page.html
  /usr/local/lib/python3.6/site-packages/tinkerer/themes/flat/static/flat.css_t
  /usr/local/lib/python3.6/site-packages/tinkerer/themes/flat/static/pygments.css
  /usr/local/lib/python3.6/site-packages/tinkerer/themes/flat/theme.conf
  /usr/local/lib/python3.6/site-packages/tinkerer/themes/minimal5/layout.html
  /usr/local/lib/python3.6/site-packages/tinkerer/themes/minimal5/static/minimal5.css_t
  /usr/local/lib/python3.6/site-packages/tinkerer/themes/minimal5/theme.conf
  /usr/local/lib/python3.6/site-packages/tinkerer/themes/modern5/layout.html
  /usr/local/lib/python3.6/site-packages/tinkerer/themes/modern5/static/header.png
  /usr/local/lib/python3.6/site-packages/tinkerer/themes/modern5/static/modern5.css_t
  /usr/local/lib/python3.6/site-packages/tinkerer/themes/modern5/static/paper.png
  /usr/local/lib/python3.6/site-packages/tinkerer/themes/modern5/theme.conf
  /usr/local/lib/python3.6/site-packages/tinkerer/themes/responsive/layout.html
  /usr/local/lib/python3.6/site-packages/tinkerer/themes/responsive/static/responsive.css
  /usr/local/lib/python3.6/site-packages/tinkerer/themes/responsive/theme.conf
  /usr/local/lib/python3.6/site-packages/tinkerer/utils.py
  /usr/local/lib/python3.6/site-packages/tinkerer/writer.py
pip3 list
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
alabaster (0.7.10)
Babel (2.5.3)
certifi (2018.1.18)
chardet (3.0.4)
cssselect (1.0.3)
docutils (0.14)
gpg (1.9.0)
idna (2.6)
imagesize (1.0.0)
iniparse (0.4)
Jinja2 (2.10)
lxml (4.1.1)
MarkupSafe (1.0)
packaging (16.8)
pip (9.0.1)
Pygments (2.2.0)
pyparsing (2.2.0)
pyquery (1.4.0)
pytz (2018.3)
requests (2.18.4)
rpm (4.14.0)
setuptools (37.0.0)
six (1.11.0)
snowballstemmer (1.2.1)
Sphinx (1.7.1)
sphinxcontrib-websupport (1.0.1)
Tinkerer (1.6.0)
urllib3 (1.22)
manzyun commented 6 years ago

In My Opinion.

Try use this master branch source code.

Command example:

python3 -m venv ~/tinkerer_env -- #Make virtual environment
source ~/tinkerer_env/bin/activate -- #Activate virtual environment
pip install git+ssh://git@github.com/vladris/tinkerer.git@master -- #Take this source code from master branch
tinker --version -- #How about return number? Maybe, "1.7.0"

Works for me.


P.S.

My environment.

Firstyear commented 6 years ago

This work around isn't exactly a long term solution - the issue is the that the versions on pypi have an issue on a clean system, so I think it should be fixed.

If that fix is to update pypi to have tinkerer 1.7.0 then great! But if not then it should be solved ... :(

Thanks!

brennie commented 6 years ago

Requiring a bound of sphinx>=1.6.1,<1.7.0 fixes this issue -- it seems Directive was removed from sphinx.compat in 1.7