kushalkolar / MESmerize

Platform for Calcium Imaging analysis. DEPRECATED.
GNU General Public License v3.0
58 stars 14 forks source link

Script Editor not opening #101

Closed BenjaminEscribano closed 1 year ago

BenjaminEscribano commented 2 years ago

Hi, when I try to open the Script Editor, I get the following error message in the Anaconda Powershell Promt:

EXCEPTION ENCOUNTERED Traceback (most recent call last): File "C:\Users\xxxx\Anaconda3\envs\mesmerize\lib\site-packages\mesmerize\viewer\main_window.py", line 141, in self.ui.actionScript_Editor.triggered.connect(lambda: self.run_module(script_editor.ModuleGUI)) File "C:\Users\xxxx\Anaconda3\envs\mesmerize\lib\site-packages\mesmerize\viewer\main_window.py", line 299, in run_module m = module_class(self, self._viewer) File "C:\Users\xxxx\Anaconda3\envs\mesmerize\lib\site-packages\mesmerize\viewer\modules\script_editor.py", line 27, in init self.open_temp_script() File "C:\Users\xxxx\Anaconda3\envs\mesmerize\lib\site-packages\mesmerize\viewer\modules\script_editor.py", line 72, in open_temp_script home_dir = os.environ['HOME'] File "C:\Users\xxxx\Anaconda3\envs\mesmerize\lib\os.py", line 669, in getitem raise KeyError(key) from None KeyError: 'HOME'

How can I fix this?

kushalkolar commented 2 years ago

Mesmerize version?

BenjaminEscribano commented 2 years ago

I am using version 0.7.1 on Windows Server 2019 Standard.

kushalkolar commented 2 years ago

try running this in the welcome window console:

import os
os.environ["HOME"] = C:\path\to\your\user\dir

Press shift + enter to execute stuff in mesmerize consoles