Might be. I thought this used to work. It's probably that. I have no way to
test.

The most optimal way to fix this (and likely many other problems with
computers in general) is to stop running Windows.

Barring this freedom, you can hg update now, I just added an option for you
to replace the colon separator in filenames by something else
(--no-colons). Try this out and let me know if it works.
https://bitbucket.org/blais/beancount/commits/c0c87ed900e8da044d541bbb75cf3dd5a11ff314






On Sun, Jun 25, 2017 at 8:45 AM, <short.em...@gmail.com> wrote:

> Using Windows bash, bean-bake fails to bake:
>
> 127.0.0.1 - - [25/Jun/2017 22:43:02] "GET / HTTP/1.1" 303 0
>> ERROR   : Redirected: / -> /index
>> 127.0.0.1 - - [25/Jun/2017 22:43:02] "GET /index HTTP/1.1" 200 6658
>> INFO    : Operation: 'realize_opening'
>> Time:      0 ms
>> INFO    : Operation: 'realize'
>> Time:      1 ms
>> INFO    : Operation: 'realize_closing'
>> Time:      1 ms
>> 127.0.0.1 - - [25/Jun/2017 22:43:02] "GET 
>> /view/tag/trip-chicago-2016/balsheet
>> HTTP/1.1" 200 5128
>> 127.0.0.1 - - [25/Jun/2017 22:43:02] "GET /view/tag/trip-chicago-2016/
>> journal/Equity:Earnings:Current HTTP/1.1" 200 7482
>> Traceback (most recent call last):
>>   File "/usr/local/bin/bean-bake", line 4, in <module>
>>     from beancount.scripts.bake import main; main()
>>   File "/usr/local/lib/python3.5/dist-packages/beancount/scripts/bake.py"
>> , line 247, in main
>>     bake_to_directory(opts, output_directory, opts.quiet, opts.full_mode)
>>   File "/usr/local/lib/python3.5/dist-packages/beancount/scripts/bake.py"
>> , line 153, in bake_to_directory
>>     quiet)
>>   File "/usr/local/lib/python3.5/dist-packages/beancount/web/web.py",
>> line 1234, in scrape_webapp
>>     url_lists = scrape.scrape_urls(url_format, callback, ignore_regexp)
>>   File "/usr/local/lib/python3.5/dist-packages/beancount/web/scrape.py",
>> line 114, in scrape_urls
>>     callback(url, response, response_contents, html_root, skipped_urls)
>>   File "/usr/local/lib/python3.5/dist-packages/beancount/scripts/bake.py"
>> , line 116, in save_scraped_document
>>     with open(output_filename, 'wb') as outfile:
>> OSError: [Errno 22] Invalid argument: 'example/view/tag/trip-
>> chicago-2016/journal/Equity:Earnings:Current.html'
>>
>
>
> Is this because Windows does not allow colons in file names?
>
> If so, can this be fixed so, say, the dots are used instead?
>
> S.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Beancount" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to beancount+unsubscr...@googlegroups.com.
> To post to this group, send email to beancount@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/beancount/45df2138-b6d9-4d9b-a2be-9632f6601afb%40googlegroups.com
> <https://groups.google.com/d/msgid/beancount/45df2138-b6d9-4d9b-a2be-9632f6601afb%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beancount+unsubscr...@googlegroups.com.
To post to this group, send email to beancount@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/CAK21%2BhOd3BCDwi-HVtZd_jN0zE1t1YEmwDxOzTS-Jd-6evyF5A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to