Skip to content

Instantly share code, notes, and snippets.

@tiwo
Created May 21, 2017 11:19
Show Gist options
  • Save tiwo/e1b80e6b023af52b1e029b5cdf5934d8 to your computer and use it in GitHub Desktop.
Save tiwo/e1b80e6b023af52b1e029b5cdf5934d8 to your computer and use it in GitHub Desktop.

I use Windows, MINGW64 bash, Python 3.5.2. In an empty directory:

$ virtualenv ENV
[...]
$ source ENV/Scripts/activate
(ENV) $ pip install ablog
[...]
(ENV) $ pip show ablog
Name: ablog
Version: 0.8.4
[...]

Now, $ ablog start fails for me because of issue #78, "cannot import name make_admonition"; I apply https://github.com/lsaffre/ablog/commit/046e5dbbf3ea7a33f3a07dd6455bdcd1cc5f0375 to ENV/Lib/site-packages/ablog/post.py to get that out of the way. Then:

(ENV) $ ablog start
Welcome to the ABlog 0.8.4 quick start utility.

I press Enter, ANYTITLE Enter, ANYNAME Enter, Enter.

[...]
Creating file .\conf.py.
Creating file .\index.rst.
Creating file .\about.rst.
Creating file .\first-post.rst.
Finished: An initial directory structure has been created.

(ENV) $ ablog build
Traceback (most recent call last):
  File "c:\program files\python35\Lib\runpy.py", line 184, in _run_module_as_main
    "__main__", mod_spec)
  File "c:\program files\python35\Lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Users\blgus\AppData\Local\Temp\bug\ENV\Scripts\ablog.exe\__main__.py", line 9, in <module>
  File "c:\users\blgus\appdata\local\temp\bug\env\lib\site-packages\ablog\commands.py", line 404, in ablog_main
    namespace.func(**namespace.__dict__)
  File "c:\users\blgus\appdata\local\temp\bug\env\lib\site-packages\ablog\commands.py", line 119, in ablog_build
    confdir = find_confdir()
  File "c:\users\blgus\appdata\local\temp\bug\env\lib\site-packages\ablog\commands.py", line 22, in find_confdir
    if isfile(conf) and 'ablog' in open(conf).read():
  File "c:\users\blgus\appdata\local\temp\bug\env\lib\encodings\cp1252.py", line 23, in decode
    return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 585: character maps to 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment