You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Installing a theme fails in Python 2.6 as instances of ZipFile do not have an __exit__ attribute. Example:
nikola install_theme zen-jinja
fails with:
File "/home/simeon/.virtualenvs/site/lib/python2.6/site-packages/nikola/plugins/command/install_theme.py", line 121, in _execute
installstatus = self.do_install(name, data)
File "/home/simeon/.virtualenvs/site/lib/python2.6/site-packages/nikola/plugins/command/install_theme.py", line 143, in do_install
utils.extract_all(zip_file)
File "/home/simeon/.virtualenvs/site/lib/python2.6/site-packages/nikola/utils.py", line 725, in extract_all
with zip(zipfile) as z:
AttributeError: ZipFile instance has no attribute '__exit__'
Installing a theme fails in Python 2.6 as instances of
ZipFile
do not have an__exit__
attribute. Example:fails with:
This can be confirmed in the docs as the ability to use ZipFile as context manager was added in Python 2.7: https://docs.python.org/2/library/zipfile.html.
I am using Nikola 7.0.0.
The text was updated successfully, but these errors were encountered: