yarl / pattypan

Upload files to Wikimedia Commons. The Spreadsheet Way.
https://commons.wikimedia.org/wiki/Commons:Pattypan
MIT License
56 stars 37 forks source link

Runing Pattypan on Mac devices with a M1 processor requries manual loading of OpenJFX #158

Open Abbe98 opened 2 years ago

Abbe98 commented 2 years ago

Turns out that the x64 version of OpenJFX is incompatible with M1 devices, the aarch64 version works but is instead incompatible with x64 devices.

As it is currently we can support M1 or x64 but not both.

To investigate:

The current workaround is to install and load OpenJFX manually.

Abbe98 commented 2 years ago

Reported by @Ambrosiani in #154.

fuzheado commented 2 years ago

@Abbe98 Do you know how it's invoked? There is a utility on the Mac that allows you to select the architecture, but I'm not sure if it's relevant here. I'm not familiar with Java packaging.

On an M1 Mac, you can use this to run programs in Intel x86 mode, so I'm not sure if this helps: $ arch -x86_64 /bin/bash

fuzheado commented 2 years ago

I spent about a half hour looking into how others might have addressed similar issue with JAR packaging M1 and x86 modules. I'm not experienced in this matter, but in case it might be useful this looked like a use case that was close to what we are dealing with.

https://github.com/dlemmermann/JPackageScriptFX

psubhashish commented 1 year ago

Pattypan v22.03 did not open for an Intel Mac. v22.02 did open and even created a spreadsheet. But it failed upon running. (see below screenshot)

pattypan-error
psubhashish commented 1 year ago

Update: I was suspecting the wikitext in my spreadsheet and made some changes. It seems to be working. Again, v22.02 is working and pattypan 22.03 is not, for an Intel Mac.