I would have to see more of the file I think could it be the level of indentation? Ken From: programmingblind-bounce@xxxxxxxxxxxxx [mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of Nathaniel Schmidt Sent: Tuesday, January 04, 2011 10:40 PM To: programmingblind@xxxxxxxxxxxxx; nvda-dev@xxxxxxxxxxxxxxxxxx Subject: a global plugin, a question. Hi, Recently I began writing a global plugin for NVDA, to work with the latex-access project at http://latex-access.sourceforge.net/. At the moment it's functionality is very basic, the main reasons being that I only just started creating it, also because of some limitations I have found with brailling messages and because I'm only using scripts and not events as well, which I will hopefully use later. But I have a question to do with running the plugin. I went to test what I had done so far, and the following error came up in nvda.log: ERROR - globalPluginHandler.listPlugins (13:36:53): Error importing global plugin latex_access Traceback (most recent call last): File "C:\bzrInit\nvda\main\source\globalPluginHandler.py", line 21, in listPlugins plugin = __import__("globalPlugins.%s" % name, globals(), locals(), ("globalPlugins",)).GlobalPlugin File ".\userConfig\globalPlugins\latex_access.py", line 80 __gestures = { ^ SyntaxError: invalid syntax Now the error is obvious, but not the reason. I can't find anything incorrect in what I have written that could cause the syntax to be invalid. The top of the file is pasted below to show my imports, and the bottom of the file is as well. from comtypes.client import * import api import braille, speech, ui# for brailling/speaking messages in NVDA import globalPluginHandler import textInfos# to get information such as the current line. # and in the GlobalPlugin class __gestures = { "kb:NVDA+alt+s": "speakTranslation", "kb:NVDA+alt+b": "brailleTranslation", } Thanks, Nathaniel