bean-bake export from linux to mac or windows

43 views
Skip to first unread message

richard gott

unread,
May 7, 2019, 10:28:53 AM5/7/19
to bean...@googlegroups.com, Richard Gott
Hello
 
I am the treasurer of a small charity.  I have recently switched from ledger.  One of the main reasons was to make use of bean-bake to share full accounts adn reports with the other trustees.
 
When I run bean-bake I get the folder as predictied whcih works fine - linux (arch adn ubuntu - both ok - ext4).
 
BUT:
  • try to copy to USB, fails with 'cannot copy files'
  • zip and send to mac, unzip OR
  • upload to google drive adn download to mac
    • index opens fine, structure is intact
    • top level accounts open ok
    • anything below that is empty
It behaves as if the apple file system can't cope with the folder depth of the lower level files in the bean-bake folder.  But I am not a computer expert adn that may be complete rubbish.
 
I would be most grateful for any help that can be offered
 
Thanks
 
Richard

Martin Blais

unread,
May 7, 2019, 6:36:09 PM5/7/19
to Beancount
I have no idea. 
This looks like the problem is downstream from Beancount (you mentioned that your baked folder works fine on Ubuntu).



--
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+...@googlegroups.com.
To post to this group, send email to bean...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/trinity-703d58fc-e627-4414-9191-c4b76b7cbc2b-1557148626744%403c-app-mailcom-bs06.
For more options, visit https://groups.google.com/d/optout.

Zhuoyun Wei

unread,
May 8, 2019, 4:51:23 AM5/8/19
to Beancount
I've never used bean-bake before. I just tried it.

Some of the output filenames contain colons, for example "Assets:Cash.html".

Some filesystem and/or OS cannot handle colons in paths. Linux allows colons in paths, while Windows does not.

For example, if you mount an NTFS filesystem in Linux, and create a file called "foo:bar.txt" in it before mounting this NTFS filesystem in Windows, you cannot open / rename / move /delete the file in Windows. In this case, NTFS allows colons, but Windows does not support it.

I don't use macOS, but I guess it's something similar. A quick Google search reveals that the HFS filesystem used by previous versions of macOS does not allow colons in filenames.

--
Zhuoyun Wei

On Tue, May 7, 2019, at 10:28, richard gott wrote:
> Hello
> I am the treasurer of a small charity. I have recently switched from
> ledger. One of the main reasons was to make use of bean-bake to share
> full accounts adn reports with the other trustees.
> When I run bean-bake I get the folder as predictied whcih works fine -
> linux (arch adn ubuntu - both ok - ext4).
> BUT:
> * try to copy to USB, fails with 'cannot copy files'
> * zip and send to mac, unzip OR
> * upload to google drive adn download to mac * index opens fine,
> structure is intact
> * top level accounts open ok
> * anything below that is empty
> It behaves as if the apple file system can't cope with the folder depth
> of the lower level files in the bean-bake folder. But I am not a
> computer expert adn that may be complete rubbish.
> I would be most grateful for any help that can be offered
> Thanks
> Richard
>
> --
> 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+...@googlegroups.com.
> To post to this group, send email to bean...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/beancount/trinity-703d58fc-e627-4414-9191-c4b76b7cbc2b-1557148626744%403c-app-mailcom-bs06 <https://groups.google.com/d/msgid/beancount/trinity-703d58fc-e627-4414-9191-c4b76b7cbc2b-1557148626744%403c-app-mailcom-bs06?utm_medium=email&utm_source=footer>.

richard gott

unread,
May 8, 2019, 7:59:49 AM5/8/19
to bean...@googlegroups.com
Many thanks for this. I presume that means I can't do it.
Richard

Prof R Gott


> Sent: Wednesday, May 08, 2019 at 10:51 AM
> From: "Zhuoyun Wei" <wzy...@wzyboy.org>
> To: Beancount <bean...@googlegroups.com>
> Subject: Re: bean-bake export from linux to mac or windows
> To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/2de489f9-3a19-4a09-bbe8-ae9e4d856f38%40www.fastmail.com.

Zhuoyun Wei

unread,
May 8, 2019, 11:18:19 AM5/8/19
to Beancount
I heard that recent versions of macOS use a newer filesystem named APFS. Perhaps you could try to open the file in a newer macOS?

Again, I am not a macOS user so I cannot try that out... Good luck!

--
Zhuoyun Wei
> https://groups.google.com/d/msgid/beancount/trinity-3638278d-4e8c-469e-b577-c6361bcf40c9-1557316786738%403c-app-mailcom-bs13.

Martin Blais

unread,
May 8, 2019, 10:31:29 PM5/8/19
to Beancount
bergamot:~$ bean-bake --help
...
  --no-colons           Don't render colons in filenames (for Windows).




richard gott

unread,
May 9, 2019, 5:56:06 AM5/9/19
to bean...@googlegroups.com
Our mac is a geriatric!

Prof R Gott


> Sent: Wednesday, May 08, 2019 at 5:17 PM
> To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/5c8bd647-56cd-4c83-9824-9ede91ee2d91%40www.fastmail.com.

richard gott

unread,
May 9, 2019, 5:57:40 AM5/9/19
to bean...@googlegroups.com
The man's a star. I shall try that asap.
Thank you
Richard

Prof R Gott


> Sent: Thursday, May 09, 2019 at 4:31 AM
> From: "Martin Blais" <bl...@furius.ca>
> > https://groups.google.com/d/msgid/beancount/trinity-3638278d-4e8c-469e-b577-c6361bcf40c9-1557316786738%403c-app-mailcom-bs13
> > .
> > 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+...@googlegroups.com.
> To post to this group, send email to bean...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/CAK21%2BhPOGVksd0EyRA5qd1KqbrOsZiT4Hz-8Cg%2B249vJ%2BPTrTA%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages