Skip to content
This repository has been archived by the owner on Apr 16, 2019. It is now read-only.

blogofile 0.8b1 can’t read markdown blog post (worked in 0.7) #138

Open
stapelberg opened this issue Nov 16, 2012 · 3 comments
Open

blogofile 0.8b1 can’t read markdown blog post (worked in 0.7) #138

stapelberg opened this issue Nov 16, 2012 · 3 comments
Assignees
Milestone

Comments

@stapelberg
Copy link

You mentioned you’d be interested in my experiences to upgrade to 0.8, so here comes the first ticket.

I have the following _config.py:

blog = controllers.blog
blog.enabled = True
site.url = "http://i3wm.org/"
blog.path = "/blog"
blog.name = "i3 - improved tiling wm - blog"
blog.description = "News about the i3 window manager"
blog.timezone = "Europe/Berlin"
blog.posts_per_page = 5
blog.disqus.enabled = False

When running blogofile build, I get the following error:

midna /tmp $ git clone git://code.i3wm.org/i3-website
Cloning into 'i3-website'...
remote: Counting objects: 1213, done.
remote: Compressing objects: 100% (504/504), done.
remote: Total 1213 (delta 675), reused 1213 (delta 675)
Receiving objects: 100% (1213/1213), 34.37 MiB | 609 KiB/s, done.
Resolving deltas: 100% (675/675), done.
midna /tmp $ cd i3-website 
midna /tmp/i3-website master $ blogofile build
ERROR:blogofile.post:Error reading post: _posts/2011-07-31-i3-4.0-released.markdown
Traceback (most recent call last):
  File "_controllers/blog/post.py", line 329, in parse_posts
    bf.config.controllers.blog.post_encoding)
TypeError: decode() argument 1 must be string, not HierarchicalCache
ERROR:blogofile:Fatal build error occured, calling bf.config.build_exception()
Traceback (most recent call last):
  File "/usr/local/bin/blogofile", line 9, in <module>
    load_entry_point('Blogofile==0.8b1', 'console_scripts', 'blogofile')()
  File "/usr/local/lib/python2.7/dist-packages/blogofile/main.py", line 58, in main
    args.func(args)
  File "/usr/local/lib/python2.7/dist-packages/blogofile/main.py", line 388, in do_build
    writer.write_site()
  File "/usr/local/lib/python2.7/dist-packages/blogofile/writer.py", line 49, in write_site
    self.__run_controllers()
  File "/usr/local/lib/python2.7/dist-packages/blogofile/writer.py", line 162, in __run_controllers
    controller.run_all(namespaces)
  File "/usr/local/lib/python2.7/dist-packages/blogofile/controller.py", line 229, in run_all
    c.mod.run()
  File "_controllers/blog/__init__.py", line 25, in run
    blog.posts = post.parse_posts("_posts")
  File "_controllers/blog/post.py", line 329, in parse_posts
    bf.config.controllers.blog.post_encoding)
TypeError: decode() argument 1 must be string, not HierarchicalCache
midna /tmp/i3-website master $ blogofile --version
Blogofile 0.8b1 -- http://www.blogofile.com -- CPython 2.7.3rc2

As far as I can tell, there’s multiple problems here, but I’m not sure which one to start with, so I’ll leave that up to you :-). Feel free to clone the repository to reproduce the issues.

@ghost ghost assigned douglatornell Nov 22, 2012
@guyzmo
Copy link

guyzmo commented Dec 20, 2012

I went through the same problem, and my only solution was to fallback to 0.7.1, i.e.: pip install blogofile==0.7.1. As it is stated on the release announce of 0.8b1, the migration from 0.7 to 0.8 is still not supported. If you really want to upgrade, you either have the choice to rebuild your site from scratch with the new version of blogofile, or writing a migration script that the whole community will thank you to do.

@mblakele
Copy link

When I tried this on a new machine, pip couldn't find 0.7.1 - so when I found a copy I grabbed it for safekeeping.

$ wget https://pypi.python.org/packages/source/B/Blogofile/blogofile-0.7.1.tar.gz
$ pip install blogofile-0.7.1.tar.gz

@iuriguilherme
Copy link

Same issue of #136, #141, #147, #148 and #152

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants