Hi Andy,
As you have found out, it seems that the version of Python that ships with Zeus is running into the version of Python that you have installed.
Normally this would not cause an issues (as Zeus would just run the first Python found in the path), except that for Python code completion, Zeus uses
Jedi to do the code completion, and that Jedi code is tuned to the version of Python that ships with Zeus
Any suggestions on how to handle this are welcome.
Can you tell me which version of Python you have installed in the
c:\python27 folder by running this Python code:
This is the version that ships with Zeus:
Code: Select all
2.7.8 (default, Sep 18 2015, 19:31:30) [MSC v.1500 32 bit (Intel)]
NOTE: The build time will be different but the version should be the same.
I don't have a pythonpath registered in my environment but I suspect that the installed python is somehow interfering with the internal python scripting.
Also can you check the PYTHONPATH as seen by Zeus by running the following Zeus script:
Code: Select all
import os
import zeus
try:
python_path = os.environ['PYTHONPATH'].split(os.pathsep)
zeus.message_box(0, str('\n'.join(str(path) for path in python_path)))
except KeyError:
zeus.message_box(0, 'Error finding paths')
Just save this code to the
c:\temp\test.py file and then run that file using the
Zeus Macros, Execute Scripts menu.
When I run it I get this as the PYTHONPATH result:
Code: Select all
.\
C:\Program Files(x86)\Zeus\zScript\
C:\Program Files(x86)\Zeus\zScript\PyLib
C:\Program Files(x86)\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
.\lib\plat-win
.\lib\lib-tk
As shown above I too have no environment PYTHONPATH defined, so you should see something similar.
Cheers Jussi
PS: While you are waiting for a fix, you can turn of the code complete by removing the triggers. To do this just use the
Options, Document Types menu to edit the
Python Document Type and in the
Triggers section remove the triggers.