brafdlog / caspion

Automated budget tracking from Israeli financial institutions
https://www.caspion.org
MIT License
193 stars 44 forks source link

"Caspion cannot be opened..." #MacOS #Big_Sur #M1 #276

Open tbendr opened 3 years ago

tbendr commented 3 years ago

Caspion for mac


I downloaded "caspion-0.0.6-beta-mac.zip".

I get this error whenever I try to run the app on my M1 Mac Mini (macOS Big Sur).

Does Caspion support M1 chips?


CleanShot 2021-07-25 at 16 14 19

baruchiro commented 3 years ago

@tbendr I have a new release to test on M1 before I will publish it. Do you want to try?

If so, please contact me inMail, it is a big file. baruchiro@gmail.com

baruchiro commented 3 years ago

@tbendr I understand the artifact is working?

baruchiro commented 3 years ago

Update: I created a "universal" artifact in #277, @tbendr tested it but now the main process loaded but there is no UI (renderer process).

Logs: main.log

hannanel100 commented 2 years ago

is this issue being worked on? i tried to to install dependencies via yarn and got an error:

error /Users/hannanel/Documents/hannanel/caspion/node_modules/electron: Command failed.
Exit code: 1
Command: node install.js
Arguments: 
Directory: /Users/hannanel/Documents/hannanel/caspion/node_modules/electron
Output:
HTTPError: Response code 404 (Not Found) for https://github.com/electron/electron/releases/download/v9.4.4/electron-v9.4.4-darwin-arm64.zip
    at EventEmitter.<anonymous> (/Users/hannanel/Documents/hannanel/caspion/node_modules/@electron/get/node_modules/got/source/as-stream.js:35:24)
    at EventEmitter.emit (node:events:520:28)
    at module.exports (/Users/hannanel/Documents/hannanel/caspion/node_modules/@electron/get/node_modules/got/source/get-response.js:22:10)
    at ClientRequest.handleResponse (/Users/hannanel/Documents/hannanel/caspion/node_modules/@electron/get/node_modules/got/source/request-as-event-emitter.js:155:5)
    at Object.onceWrapper (node:events:640:26)
    at ClientRequest.emit (node:events:532:35)
    at ClientRequest.origin.emit (/Users/hannanel/Documents/hannanel/caspion/node_modules/@electron/get/node_modules/@szmarczak/http-timer/source/index.js:37:11)

after trying to implement the changes in PR #277 i got this error:

error /Users/hannanel/Documents/hannanel/caspion/node_modules/electron-chromedriver: Command failed.
Exit code: 1
Command: node ./download-chromedriver.js
Arguments: 
Directory: /Users/hannanel/Documents/hannanel/caspion/node_modules/electron-chromedriver
Output:
node:internal/process/promises:265
            triggerUncaughtException(err, true /* fromPromise */);
            ^

GotError [HTTPError]: Response code 404 (Not Found) for https://github.com/electron/electron/releases/download/v9.0.0/chromedriver-v9.0.0-darwin-arm64.zip
    at EventEmitter.<anonymous> (/Users/hannanel/Documents/hannanel/caspion/node_modules/@electron/get/node_modules/got/source/as-stream.js:35:24)
    at EventEmitter.emit (node:events:520:28)
    at module.exports (/Users/hannanel/Documents/hannanel/caspion/node_modules/@electron/get/node_modules/got/source/get-response.js:22:10)
    at ClientRequest.handleResponse (/Users/hannanel/Documents/hannanel/caspion/node_modules/@electron/get/node_modules/got/source/request-as-event-emitter.js:155:5)
    at Object.onceWrapper (node:events:640:26)
    at ClientRequest.emit (node:events:532:35)
    at ClientRequest.origin.emit (/Users/hannanel/Documents/hannanel/caspion/node_modules/@electron/get/node_modules/@szmarczak/http-timer/source/index.js:37:11)
    at HTTPParser.parserOnIncomingClient [as onIncoming] (node:_http_client:618:27)
    at HTTPParser.parserOnHeadersComplete (node:_http_common:128:17)
    at TLSSocket.socketOnData (node:_http_client:482:22) {
  host: 'github.com',
  hostname: 'github.com',
  method: 'GET',
  path: '/electron/electron/releases/download/v9.0.0/chromedriver-v9.0.0-darwin-arm64.zip',
  socketPath: undefined,
  protocol: 'https:',
  url: 'https://github.com/electron/electron/releases/download/v9.0.0/chromedriver-v9.0.0-darwin-arm64.zip',
  gotOptions: {
    path: '/electron/electron/releases/download/v9.0.0/chromedriver-v9.0.0-darwin-arm64.zip',
    protocol: 'https:',
    slashes: true,
    auth: null,
    host: 'github.com',
    port: null,
    hostname: 'github.com',
    hash: null,
    search: null,
    query: null,
    pathname: '/electron/electron/releases/download/v9.0.0/chromedriver-v9.0.0-darwin-arm64.zip',
    href: 'https://github.com/electron/electron/releases/download/v9.0.0/chromedriver-v9.0.0-darwin-arm64.zip',
    retry: {
      retries: [Function (anonymous)],
      methods: Set(6) { 'GET', 'PUT', 'HEAD', 'DELETE', 'OPTIONS', 'TRACE' },
      statusCodes: Set(7) { 408, 413, 429, 500, 502, 503, 504 },
      errorCodes: Set(8) {
        'ETIMEDOUT',
        'ECONNRESET',
        'EADDRINUSE',
        'ECONNREFUSED',
        'EPIPE',
        'ENOTFOUND',
        'ENETUNREACH',
        'EAI_AGAIN'
      }
    },
    headers: {
      'user-agent': 'got/9.6.0 (https://github.com/sindresorhus/got)',
      'accept-encoding': 'gzip, deflate'
    },
    hooks: {
      beforeRequest: [],
      beforeRedirect: [],
      beforeRetry: [],
      afterResponse: [],
      beforeError: [],
      init: []
    },
    decompress: true,
    throwHttpErrors: true,
    followRedirect: true,
    stream: true,
    form: false,
    json: false,
    cache: false,
    useElectronNet: false,
    method: 'GET'
  },
  statusCode: 404,
  statusMessage: 'Not Found',
  headers: {
    server: 'GitHub.com',
    date: 'Thu, 26 May 2022 07:45:13 GMT',
    'content-type': 'text/plain; charset=utf-8',
    vary: 'X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, Accept-Encoding, Accept, X-Requested-With',
    'permissions-policy': 'interest-cohort=()',
    'cache-control': 'no-cache',
    'strict-transport-security': 'max-age=31536000; includeSubdomains; preload',
    'x-frame-options': 'deny',
    'x-content-type-options': 'nosniff',
    'x-xss-protection': '0',
    'referrer-policy': 'no-referrer-when-downgrade',
    'expect-ct': 'max-age=2592000, report-uri="https://api.github.com/_private/browser/errors"',
    'content-security-policy': "default-src 'none'; base-uri 'self'; connect-src 'self'; form-action 'self'; img-src 'self' data:; script-src 'self'; style-src 'unsafe-inline'",
    'content-encoding': 'gzip',
    'transfer-encoding': 'chunked',
    'x-github-request-id': 'C326:12D59:1059F0:11D266:628F3009',
    connection: 'close
baruchiro commented 2 years ago

https://github.com/eshaham/israeli-bank-scrapers/issues/686

baruchiro commented 1 year ago

@hannanel100 @tbendr Please check https://github.com/brafdlog/caspion/releases/tag/v0.2.0 if it works on your M1.

tbendr commented 1 year ago

@hannanel100 @tbendr Please check https://github.com/brafdlog/caspion/releases/tag/v0.2.0 if it works on your M1.

It does, Thanks!!

To open it you need to:

  1. Download the .dmg file
  2. open it and drag Caspion to the Application folder
  3. Go to Application folder
  4. Right click on Caspion, then "Open"
  5. You will get a warning message about unverified developer -- Click "Cancel"
  6. Go to System Preferences > Security & Privacy > General tab > click to lock on the left bottom corner and type your mac password
  7. Click "Open Anyway" next to the line: "caspion" was blocked from use because it is not from an identified developer.
  8. Open Caspion app again
baruchiro commented 1 year ago

Thanks @tbendr!

I will add it to the README file.

baruchiro commented 1 year ago

Closed by #378

nkk1987 commented 4 months ago

Hey, There seems to be an issue with the DMG file. I'm trying to run it on macOS Sonoma 14.4.1 (23E224) (M1 Pro), and it results with an error: "caspion.app" is damaged and can't be opened. You should move it to the Trash.

image

Any idea?

baruchiro commented 4 months ago

I saw it too!

Now I know there is a problem.

Meanwhile, I installed the previous version.

baruchiro commented 4 months ago

What was only a warning for unsigned apps on the Intel chip became to be a damaged app on the Apple chip.

To sign it with an empty signature and get the warning back:

sudo xattr -r -d com.apple.quarantine /Applications/caspion.app/

Then, right-click on the app and select Open and you will need to approve the warning. You will need to do it only once (per version 😔)

I will keep this open until we will solve it.

Need to add the explanation above to the documentation.