You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When any Global Injection is defined in the Settings:
Running for the first time a run-python block in edit:preview or view mode:
there will be an error message (see below)
the code is executed with its correct result
Running any script after the first on the same note:
there is no more error message
the code is executed with its correct result
Error message in edit:view mode:
ImportError: No module named __main__
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<frozen runpy>", line 191, in _run_module_as_main
File "<frozen runpy>", line 243, in _get_main_module_details
runpy._Error: can't find '__main__' module in 'C:\\Users\\user\\AppData\\Local\\Obsidian'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<frozen runpy>", line 194, in _run_module_as_main
SystemExit: C:\Python313\python.exe: can't find '__main__' module in 'C:\\Users\\user\\AppData\\Local\\Obsidian'
Error message in view mode:
SystemExit: C:\Python313\python.exe: can't find '__main__' module in 'C:\\Users\\user\\AppData\\Local\\Obsidian'
Software Version OS: WIN11 Plugin Version: 2.0.0 Obsidian Version: 1.8.4
Describe the bug
When any Global Injection is defined in the Settings:
Running for the first time a run-python block in edit:preview or view mode:
Running any script after the first on the same note:
Error message in edit:view mode:
Error message in view mode:
Software Version
OS: WIN11
Plugin Version: 2.0.0
Obsidian Version: 1.8.4
To Reproduce
Steps to reproduce the behavior:
def dummy(): pass
Expected behavior
there should be no error from at the first run
Screenshots
has no additional interest here
Additional context
none
The text was updated successfully, but these errors were encountered: