startling/cytoplasm — Issue #9: TypeError: coercing to Unicode: need string or buffer, instance found
Author: dAnjou
Created: 2012-01-31 00:40:13+00:00
State: open

After fixing(?) the "safe <-> safe_mode" bug I get now this when trying to build:

```
$ cytoplasm build
Traceback (most recent call last):
File "/home/max/bin/cytoplasm-env/bin/cytoplasm", line 108, in
args.func(**vars(args))
File "/home/max/bin/cytoplasm-env/bin/cytoplasm", line 14, in build_site
cytoplasm.build(dir)
File "/home/max/bin/cytoplasm-env/local/lib/python2.7/site-packages/cytoplasm/build.py", line 50, in build
controller_object()
File "_controllers/blog/__init__.py", line 111, in __call__
post = Post(os.path.join(self.data_directory, file))
File "_controllers/blog/__init__.py", line 76, in __init__
interpret_filelike(StringIO(contents), self, suffix)
File "/home/max/bin/cytoplasm-env/local/lib/python2.7/site-packages/cytoplasm/interpreters.py", line 69, in interpret_filelike
interpreters.get(suffix, default_interpreter)(source, destination, **kwargs)
File "/home/max/Projekte/cytoplasm_test/./_config.py", line 11, in markdown_interpreter
extensions=markdown_extensions, encoding="utf8", safe_mode=False)
File "/usr/lib/pymodules/python2.7/markdown/__init__.py", line 611, in markdownFromFile
md.convertFile(input, output, encoding)
File "/usr/lib/pymodules/python2.7/markdown/__init__.py", line 443, in convertFile
input_file = codecs.open(input, mode="r", encoding=encoding)
File "/home/max/bin/cytoplasm-env/lib/python2.7/codecs.py", line 881, in open
file = __builtin__.open(filename, mode, buffering)
TypeError: coercing to Unicode: need string or buffer, instance found
```