Problems with opening python Files with TexGen

General discussion about TexGen.

Moderators: Martin, Developers

Post Reply
Das_Tier
Posts: 2
Joined: Fri Oct 30, 2009 3:12 pm

Problems with opening python Files with TexGen

Post by Das_Tier »

Hallo,

I've Problems with opening Python files with TexGen. Whenever I open a *.py file directly from windows explorer with TexGen I get the following message: unable to complete python code with TAB, completer module not found.
If I open the file from TexGen (Python -> Run Script) it works.
I didn't find an installable completer module only some scripts about that. I just started to code so hard to understand. Can anybody help?
Once it worked but since I had to reinstall Python 2.5 I got this problem.
Thanks a lot
eswe004
Regular
Posts: 17
Joined: Sun May 20, 2012 10:36 pm

Re: Problems with opening python Files with TexGen

Post by eswe004 »

Hi,

A few things:
--> Make sure you are using the non-bundle TexGen version
--> Place your TexGen folder, python 2.5 folder and your python scripts in the same folder. (alternatively, you can just add the location of python 2.5 and texgen to your current path)
--> Copy the python25.dll file from python25/DLLs to the python25 folder
--> Ensure that your python scripts contains the following:

Code: Select all

from TexGen.Core import *
Hope it works
Post Reply