architecture-building-systems / CityEnergyAnalyst

The City Energy Analyst (CEA)
https://www.cityenergyanalyst.com/
MIT License
188 stars 59 forks source link

Javascript error on opening CEA on MacOS (installed from .dmg) #3582

Closed brynpickering closed 1 month ago

brynpickering commented 1 month ago

Describe the bug I have installed CEA on macOS (~amd64~ arm64) from the .dmg provided on the website. However, I can't open it due to the following error:

A JavaScript error occurred in the main process

Uncaught Exception:
Error: spawn /Applications/CityEnergyAnalyst-GUI.app/Contents/Resources/micromamba EACCES
at ChildProcess._handle.onexit (node:internal/child_process:286:19)
at onErrorNT (node:internal/child_process:484:16)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)

To Reproduce Steps to reproduce the behavior:

  1. Download MacOS .dmg and move into Applications folder
  2. Attempt to open CityEnergyAnalyst-GUI

Expected behaviour CEA GUI opens

Hardware (please complete the following information):

reyery commented 1 month ago

Hi @brynpickering, thanks for reporting this issue. It seems that we might have broken the update for the Mac app. The Mac app is still considered pre-production, so it might be very unstable. We are still trying to fix a lot of bugs with the auto update function and would be releasing a new version very soon. For now, you could try installing this version and let us know if it works for you. Thanks!

https://github.com/architecture-building-systems/CityEnergyAnalyst-GUI/releases/download/v3.35.6/CityEnergyAnalyst-GUI-3.35.6-arm64.dmg

reyery commented 1 month ago

Also just to confirm, are you using a Intel or Apple Silicon (M series chip) Mac? Because in your initial post you described at first macOS (amd64), then at the bottom MacOS (M1). It would help us in debugging this issue.

reyery commented 1 month ago

Hi @brynpickering, we have released v3.36.0 for mac which should fix this issue.

You can download the new .dmg here. https://github.com/architecture-building-systems/CityEnergyAnalyst-GUI/releases/tag/v3.36.0

Let me know if it works for you. I will close this issue for now.

brynpickering commented 1 month ago

Can confirm that the latest version fixes this issue (although a new one now arises 😅). Apple Silicon and mac-amd64 refer to the same thing, sorry for the confusion!

reyery commented 1 month ago

Ah I think you mean arm64 for Apple Silicon since they are built using the ARM architecture, amd64 still refers to x86 which are the Intel processors.

brynpickering commented 1 month ago

aha, of course - my bad!