mattiasnordin / StataEditor

Stata Editor for Sublime Text 3
47 stars 18 forks source link

issue with automation #16

Closed margauxpanache closed 7 years ago

margauxpanache commented 7 years ago

Dear Mattias,

Thanks for a very useful package. I am using ST3 for Python but would like to use it for stata as well. I have Windows 10 and stata 14, and I followed the steps you describe but it still does not work.

I think maybe I did not fully understand what I have to do for the automation on "http://www.stata.com/automation/". I did the following : run cmd, change the directory to the stata installation direcotry, and type "StataSE-64 /Register". Is there anything additional I need to do ? I also tried the vista method (creating a shortcut, changing the target, and then running it as an administrator). But Im not sure whether I also need to follow step 3.1, which I really don't understand. Is there is something additional I need to do.

The console message is the following when I try to "do" a line, for example "clear" or "use...." :

"Traceback (most recent call last): File "StataEditorPlugin in C:\Users\XX\AppData\Roaming\Sublime Text 3\Installed Packages\StataEditor.sublime-package", line 39, in StataAutomate AttributeError: 'module' object has no attribute 'stata'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Program Files\Sublime Text 3\sublimeplugin.py", line 812, in run return self.run(edit, **args) File "StataEditorPlugin in C:\Users\XX\AppData\Roaming\Sublime Text 3\Installed Packages\StataEditor.sublime-package", line 103, in run File "StataEditorPlugin in C:\Users\XX\AppData\Roaming\Sublime Text 3\Installed Packages\StataEditor.sublime-package", line 42, in StataAutomate pywintypes.error: (2, 'WinExec', 'The system cannot find the file specified.') " Your help would be very much appreciated ! Margaux