Hello,
I'm getting a error using autocomplete. The trace is pasted below.
As soon as I type a . after a symbol e.g. Data. Zeus switches to a Debug window and this error is displayed. Despite the error, the class member list is displayed and it is possible to select from it. So the functionality works but it is a bit of a pain going to the Debug window every time and having to switch back to the file I'm editing.
---------------------------------------------------------------------------
Zeus - Version 3.98p
Copyright (c) Xidicone P/L 1993-2018. All rights reserved.
---------------------------------------------------------------------------
Error: Traceback (most recent call last):
Error: File "C:\Users\[User]\AppData\Roaming\Xidicone\Zeus\zScript\cs_omni_complete.py", line 11, in <module>
Error:
Error: import json
Error:
Error: File "C:\Users\[User]\AppData\Roaming\Xidicone\Zeus\zScript\PyLib\json\__init__.py", line 106, in <module>
Error:
from .decoder import JSONDecoder, JSONDecodeError
Error:
Error: File "C:\Users\[User]\AppData\Roaming\Xidicone\Zeus\zScript\PyLib\json\decoder.py", line 3, in <module>
Error:
Error: import re
Error:
Error: File "C:\Users\[User]\AppData\Roaming\Xidicone\Zeus\zScript\PyLib\re.py", line 123, in <module>
Error:
Error: import sre_compile
Error:
Error: File "C:\Users\[User]\AppData\Roaming\Xidicone\Zeus\zScript\PyLib\sre_compile.py", line 17, in <module>
Error:
Error: assert _sre.MAGIC == MAGIC, "SRE module mismatch"
Error:
AssertionError
Error: :
Error: SRE module mismatch
Error:
Error:
Error: PYTHONPATH=
Error: .\;C:\Users\[User]\AppData\Roaming\Xidicone\Zeus\zScript\;C:\Users\[User]\AppData\Roaming\Xidicone\Zeus\zScript\PyLib;C:\Users\[User]\AppData\Roaming\Xidicone\Zeus\zScript\PyLib\modules;C:\Program Files (x86)\Zeus\zScript\;C:\Program Files (x86)\Zeus\zScript\PyLib;C:\Program Files (x86)\Zeus\zScript\PyLib\modules;.\;C:\Users\[User]\AppData\Roaming\Xidicone\Zeus\zScript\;C:\Users\[User]\AppData\Roaming\Xidicone\Zeus\zScript\PyLib;C:\Users[User]\AppData\Roaming\Xidicone\Zeus\zScript\PyLib\modules;C:\Program Files (x86)\Zeus\zScript\;C:\Program Files (x86)\Zeus\zScript\PyLib;C:\Program Files (x86)\Zeus\zScript\PyLib\modules;.\DLLs;.\lib
Error:
Error:
Macro script generated '30' Debug, Error and/or Warning message(s).
Autocomplete python error
-
- Posts: 5
- Joined: Sat Nov 09, 2019 3:39 am
Re: Autocomplete python error
What type of file are you editing when you see this autocomplete error 
Looking at the call stack I can see the error is happening on an assert which suggests this might be some sort of Python installation mismatch/error:
Looking at the copyright notice in the code also suggests this code is very old so it might well be out of date.
In any case could you try the following quick and dirty attempt at a fix:
1. Open the file: Zeus\zScript\PyLib\sre_compile.py
2. Comment out the the assert check found in that code:
See if that stops the debug error window from being displayed.
Cheers Jussi
PS: That call stack also suggests you are running the OmniSharp C# autocomplete. Was it your intention to use that C# autocompleter

Looking at the call stack I can see the error is happening on an assert which suggests this might be some sort of Python installation mismatch/error:
Code: Select all
Error: File "C:\Users\[User]\AppData\Roaming\Xidicone\Zeus\zScript\PyLib\sre_compile.py", line 17, in <module>
Error:
Error: assert _sre.MAGIC == MAGIC, "SRE module mismatch"
In any case could you try the following quick and dirty attempt at a fix:
1. Open the file: Zeus\zScript\PyLib\sre_compile.py
2. Comment out the the assert check found in that code:
Code: Select all
# assert _sre.MAGIC == MAGIC, "SRE module mismatch"
Cheers Jussi
PS: That call stack also suggests you are running the OmniSharp C# autocomplete. Was it your intention to use that C# autocompleter

-
- Posts: 5
- Joined: Sat Nov 09, 2019 3:39 am
Re: Autocomplete python error
It is a C# file. Commenting the assert lead to an error calling compile() in the same file:
Error: compile() argument 6 must be tuple, not list.
Something else must have installed an incompatible version of python. I don't use that language so it is hard to think where it might have come from.
I only want autocomplete, not OmniSharp in particular. Will try to figure out how to disable it.
Thanks for helping so quickly.
Cheers
Error: compile() argument 6 must be tuple, not list.
Something else must have installed an incompatible version of python. I don't use that language so it is hard to think where it might have come from.
I only want autocomplete, not OmniSharp in particular. Will try to figure out how to disable it.
Thanks for helping so quickly.
Cheers
Re: Autocomplete python error
It looks like the OmniSharp script is out of date which is not all that surprising.
Now I think the good news is since the script is failing and yet you still see the autocomplete dialog, that suggest the autocomplete being displayed is the Zeus ctags autocomplete which is defined in the Tags Database section of the C# document type.
So to eliminate the script error all you need to do is edit the C# document type and in the Triggers section remove the Dot Autocomplete script entry.
That will stop the failing script from being run, but will still fire the default ctags autocomplete mention earlier, meaning you should see that autocomplete dialog.
Cheers Jussi
Now I think the good news is since the script is failing and yet you still see the autocomplete dialog, that suggest the autocomplete being displayed is the Zeus ctags autocomplete which is defined in the Tags Database section of the C# document type.
So to eliminate the script error all you need to do is edit the C# document type and in the Triggers section remove the Dot Autocomplete script entry.
That will stop the failing script from being run, but will still fire the default ctags autocomplete mention earlier, meaning you should see that autocomplete dialog.
Cheers Jussi
-
- Posts: 5
- Joined: Sat Nov 09, 2019 3:39 am
Re: Autocomplete python error
That fixed it. Thank you for mentioning this solution.
Cheers,
Gautam
Cheers,
Gautam