Error in Daisy Pipeline 2 updater program for MacOS

7 views
Skip to first unread message

Greg Kearney

unread,
Jan 19, 2020, 11:58:28 AM1/19/20
to daisy-pip...@googlegroups.com
When the Daisy Pipeline 2 updater program for MacOS is run it generate the following error:

gkearney@Greg ~ % /Applications/DAISY\ Pipeline\ 2.app/Contents/Java/updater/pipeline-updater
zsh: bad CPU type in executable: /Applications/DAISY Pipeline 2.app/Contents/Java/updater/pipeline-updater

I suspect this is a 32 bit application and modern systems require 64 bit applications.

Also where is the file fix-dtbook-structure.xsl found?




Commonwealth Braille & Talking Book Cooperative
Greg Kearney, General Manager
#320, 185-911 Yates Street
Victoria, BC V8V 4Y9
CANADA
Email: in...@cbtbc.org
Web: www.cbtbc.org

U.S. Address
2219 Melholland Road
Lawrence, KS 66047
UNITED STATES
Email: gkea...@gmail.com

Bert Frees

unread,
Jan 21, 2020, 7:07:44 AM1/21/20
to daisy-pip...@googlegroups.com
Hi Greg.

We indeed distribute only the 32-bit version of this program in the DMG package. But note that the 64-bit version is also available here.

I'm also running 64-bit Mac OS but I can execute the 32-bit version of the updater fine. Is this something with newer Macs only?

You can find fix-dtbook-structure.xsl in either the daisy/pipeline or the daisy/pipeline-modules repo on Github (the former contains the whole code base). The file is inside the daisy3-utils module. (Run `find . -name fix-dtbook-structure.xsl` to get the exact location.)

I've already located the bug in fix-dtbook-structure.xsl by the way and I'll commit it shortly.

Regards,
Bert



Op zo 19 jan. 2020 om 17:58 schreef Greg Kearney <gkea...@gmail.com>:
--
You received this message because you are subscribed to the Google Groups "DAISY Pipeline Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to daisy-pipeline-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/daisy-pipeline-dev/A87E10FA-08DF-450B-97DA-50D0D304372F%40gmail.com.

Greg Kearney

unread,
Jan 21, 2020, 7:38:24 AM1/21/20
to daisy-pip...@googlegroups.com, bert...@gmail.com
See my notes below:

Greg.

> On Jan 21, 2020, at 6:07 AM, Bert Frees <bert...@gmail.com> wrote:
>
> Hi Greg.
>
> We indeed distribute only the 32-bit version of this program in the DMG package. But note that the 64-bit version is also available here.
>
> I'm also running 64-bit Mac OS but I can execute the 32-bit version of the updater fine. Is this something with newer Macs only?

Yes, in the latest MacOS 10.14 and newer 32 bit applications of any kind will fail to launch and so you will need to have the 64 bit version of any binaries replace the previous ones. This also applies to the Daisy Pipeline 1 program as well.

Another issue is that in the coming month, with MacOS version 10.14.5 Apple will make app notarization mandatory. See:

https://developer.appsle.com/documentation/xcode/notarizing_macos_software_before_distribution


So we are gong to need to impliment this as well. It might be a good opportunity to get Pipeline into the App Store as well.


>
> You can find in either the daisy/pipeline or the daisy/pipeline-modules repo on Github (the former contains the whole code base). The file is inside the daisy3-utils module. (Run `find . -name fix-dtbook-structure.xsl` to get the exact location.)

I am assuming by the above this is not something that can be done the binary installed application but would require me to compile the app from the source? Is this correct? If so I may need to wait as I am not familiar with compiling pipeline
>
> I've already located the bug in fix-dtbook-structure.xsl by the way and I'll commit it shortly.

At what point would the binary app become available with this fix. I can't really expect a bunch of librarians to be programmers.

Thanks for your help.

Greg
> To view this discussion on the web visit https://groups.google.com/d/msgid/daisy-pipeline-dev/CAOxiMsTcNMOcY78X3mPXyZ7YyA1Aad09pDVSYNpXoRyD08C%2B7w%40mail.gmail.com.

Greg Kearney

unread,
Jan 21, 2020, 7:59:06 AM1/21/20
to daisy-pip...@googlegroups.com, bert...@gmail.com
The Command line tool is also 32 bit and needs to be updated to the 64 bit version in the MacOS binary. I have done so by hand here. But I am still faced with the issue of the bug in the file.

By the way Julian Smart who is the author of Jutoh has done a great job creating what is in effect a DWTBook XML editor in his Jutoh program. jul...@anthemion.co.uk

Creating valid DTBook XML files has always been one of the biggest and most difficult tasks in DAISY book production in my experience.

Greg

> On Jan 21, 2020, at 6:07 AM, Bert Frees <bert...@gmail.com> wrote:
>
> To view this discussion on the web visit https://groups.google.com/d/msgid/daisy-pipeline-dev/CAOxiMsTcNMOcY78X3mPXyZ7YyA1Aad09pDVSYNpXoRyD08C%2B7w%40mail.gmail.com.

Bert Frees

unread,
Jan 21, 2020, 10:01:09 AM1/21/20
to Greg Kearney, daisy-pip...@googlegroups.com
Hi Greg,

If it's urgent I can make a release with this fix pretty soon. In the meantime you could also go into the file called org.daisy.pipeline.modules.daisy3-utils-x.y.z.jar inside the system/felix folder and modify the fix-dtbook-structure.xsl file in there.

I'll make sure that in the future we include the 64-bit version of the updater, and also the 64-bit version of the dp2 command line tool. The "DAISY Pipeline 2" executable is apparently already 64-bit only, so it can't be executed on a 32-bit Mac anyway.

Thanks for the warning about the app notarization. I guess we'll have to look into that. It sure sounds like a lot of work. Sigh.

It don't think it's likely though that Pipeline will become available in the App Store. First I'd have to figure out if we're even allowed by the license, and even if it is allowed, I'm not sure I want to.

Bert


Op di 21 jan. 2020 om 13:38 schreef Greg Kearney <gkea...@gmail.com>:
Reply all
Reply to author
Forward
0 new messages