If I hit the "Reload Scripts" command in the most recent blender snap

latest/stable: 2.90.1 2020-09-23 (47) 187MB classic

I get this cryptic error message:

  File "<string>", line 1
    def fn():
SyntaxError: invalid syntax

location: <unknown location>:-1

location: <unknown location>:-1

This happens regardless of which .blend-file I open up and which Addons are within my load order.

This does not happen on the older

2.83lts/stable: 2.83.6 2020-09-09 (46) 170MB classic


I managed to reproduce this error also in the (Linux) binary that can be downloaded from Blender's homepage.

  • $\begingroup$ grep your blender folders for def fn .. do you have any scripts in ..../2.90/scripts/startup folder? $\endgroup$
    – batFINGER
    Sep 23, 2020 at 14:47
  • $\begingroup$ The grep returned no finds (except for something within the blender binary, maybe that's our culprit?). Within my scripts/startup directory there were a bunch of folders with python code, however no matches for def fn. $\endgroup$ Sep 23, 2020 at 18:34
  • $\begingroup$ How are you executing the operator? From the search <kbd>F3</kbd> or python console? $\endgroup$
    – Robert Gützkow
    Sep 23, 2020 at 20:39
  • $\begingroup$ @RobertGützkow I am using the F3-menu to execute the operator. $\endgroup$ Sep 23, 2020 at 22:28
  • $\begingroup$ FYI op is also available via top LH corner blender icon menu Blender > System > Reload Scripts Meant to mention too, as well as your install folders there are your user folders, on ubuntu for example ~/.config/blender/2.90/ Latest post would suggest that it is an external script. $\endgroup$
    – batFINGER
    Sep 24, 2020 at 3:38

1 Answer 1


Turns out this is actually a bug in 2.90.1 (see https://developer.blender.org/T81112).

It will probably be fixed once 2.90.2 rolls out.


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .