Help from MacOS users and coders that use MacOS
I request help from users and programmers who use Mac to test krux-installer. This post be a long one, sorry.
A friend, a Mac user, tested and came across the following problem, during the `flash` stage (the stage where krux-installer use a tool the krux firmware).
The problem is with the tool, a `ktool-mac` file:
😭😭😭
```bash
Error: 0:336: execution error:
[1047] Cannot open PyInstaller archive from executable (/Users/somefriend/Documents/krux-installer/krux-v23.09.0/ktool-mac)
or external archive (/Users/somefriend/Documents/krux-installer/krux-v23.09.0/ktool-mac.pkg) (255)
at Socket. (/Applications/krux-installer.app/Contents/Resources/app.asar/dist-electron/main/index.js:6:381)
at Socket.emit (node:events:513:28)
at addChunk (node:internal/streams/readable:324:12)
at readableAddChunk (node:internal/streams/readable:297:9)
at Socket.push (node:internal/streams/readable:234:10)
at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)
```
😭😭😭
In krux context, `ktool-mac` is a executable packaged with PyInstaller,
for the purpose of running a python script on any operating system,
without having to install python.
But that's not what's happening in our case.
I lightly investigated the problem and found this thread: https://github.com/pyinstaller/pyinstaller/issues/7243
They say that the file (in our case, `ktool-mac`):
- Can be corrupted; or
- have insufficient permissions.
The help that i request is to make the steps below, and give some feedback, as a reply on this post, to confirm a corruption or a permission problem:
- (1) download https://github.com/selfcustody/krux/releases/tag/v23.09.0 ;
- (2) extract `ktool-mac` in a separate folder;
- (3) execute, in a terminal, `sha256sum <path were you saved the file>/ktool-mac` and save the result hash on a text file;
- (4) download https://github.com/selfcustody/krux-installer/releases/tag/v0.0.1-alpha-6
- (5) Execute steps on software: (a) `select device`; (b) `select-version` (c) `v23.09.0`; (d) `verification`; (e) `flash`;
- (6) Maybe a error will appear, if you want to reproduce the error, fell free to do it;
- (7) Now, execute a `sha256sum /Users/somefriend/Documents/krux-installer/krux-v23.09.0/ktool-mac` (change `somefriend` with your current user);
- (8) save the result hash on next line of the same text file of step 3;
- (9) compare the hashes;
If hashes are the same, we can confirm a permission problem.
A friend, a Mac user, tested and came across the following problem, during the `flash` stage (the stage where krux-installer use a tool the krux firmware).
The problem is with the tool, a `ktool-mac` file:
😭😭😭
```bash
Error: 0:336: execution error:
[1047] Cannot open PyInstaller archive from executable (/Users/somefriend/Documents/krux-installer/krux-v23.09.0/ktool-mac)
or external archive (/Users/somefriend/Documents/krux-installer/krux-v23.09.0/ktool-mac.pkg) (255)
at Socket. (/Applications/krux-installer.app/Contents/Resources/app.asar/dist-electron/main/index.js:6:381)
at Socket.emit (node:events:513:28)
at addChunk (node:internal/streams/readable:324:12)
at readableAddChunk (node:internal/streams/readable:297:9)
at Socket.push (node:internal/streams/readable:234:10)
at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)
```
😭😭😭
In krux context, `ktool-mac` is a executable packaged with PyInstaller,
for the purpose of running a python script on any operating system,
without having to install python.
But that's not what's happening in our case.
I lightly investigated the problem and found this thread: https://github.com/pyinstaller/pyinstaller/issues/7243
They say that the file (in our case, `ktool-mac`):
- Can be corrupted; or
- have insufficient permissions.
The help that i request is to make the steps below, and give some feedback, as a reply on this post, to confirm a corruption or a permission problem:
- (1) download https://github.com/selfcustody/krux/releases/tag/v23.09.0 ;
- (2) extract `ktool-mac` in a separate folder;
- (3) execute, in a terminal, `sha256sum <path were you saved the file>/ktool-mac` and save the result hash on a text file;
- (4) download https://github.com/selfcustody/krux-installer/releases/tag/v0.0.1-alpha-6
- (5) Execute steps on software: (a) `select device`; (b) `select-version` (c) `v23.09.0`; (d) `verification`; (e) `flash`;
- (6) Maybe a error will appear, if you want to reproduce the error, fell free to do it;
- (7) Now, execute a `sha256sum /Users/somefriend/Documents/krux-installer/krux-v23.09.0/ktool-mac` (change `somefriend` with your current user);
- (8) save the result hash on next line of the same text file of step 3;
- (9) compare the hashes;
If hashes are the same, we can confirm a permission problem.