Weird Error

Users who are viewing this thread

ERROR: invalid syntax, probably missing or extra brackets or commas:
  File "C:\Users\Administrator\Desktop\PSYS\module_scripts.py", line 4546
    def generate_load_profile_options(): # generate operations to load settings
stored in the current profile's banner id
      ^
ECHO is off.
Press any key to exit...

Havent touched it and it pops up.







 
If you have actually not touched the PW module system at all, I could only guess that you are trying to use the wrong version of Python (see guide linked from sticky); but if you just meant that you hadn't touched that particular bit of code, it is most likely caused by unbalanced brackets or commas anywhere in the file before that line; either use git diff to carefully examine what you have changed, or use a text editor with a bracket matching feature to check the closing brackets just before the line in the error.
 
It happens from time to time, the module system can be very *****y. 

To fix this kind of error, go over all the code you added within your last compile, double check everything in it, you might be missing a comma or try_end somewhere, or any sort of other syntax error.

To keep errors like this at a minimum, it is good practice to back up often, and to try and compile the scripts you add one by one, so your debugging can be narrowed down to the last script you added.

 
Back
Top Bottom