thegooglecodearchive / editra-plugins

Automatically exported from code.google.com/p/editra-plugins
0 stars 1 forks source link

Creation of template crash editra #139

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If I create a code template and quit Editra, Editra cannot start again. I
have the following error message :

Editra Error
An unexpected error has occurred during execution of the main script 
ImportError: 
No module named codetemplater.templates

I'm using Editra 0.5.32 on snow leopard. I'm using the latest version of
CodeTemplater, installed through plugin installer.

Here is the log from the console :
12/02/10 13:22:55   [0x0-0xdd0dd].org.editra.Editra[6411]   Traceback (most
recent call last):
12/02/10 13:22:55   [0x0-0xdd0dd].org.editra.Editra[6411]     File
"extern/stcspellcheck.pyo", line 68, in <module>
12/02/10 13:22:55   [0x0-0xdd0dd].org.editra.Editra[6411]     File
"enchant/__init__.pyo", line 94, in <module>
12/02/10 13:22:55   [0x0-0xdd0dd].org.editra.Editra[6411]     File
"enchant/_enchant.pyo", line 74, in <module>
12/02/10 13:22:55   [0x0-0xdd0dd].org.editra.Editra[6411]     File
"ctypes/__init__.pyo", line 431, in LoadLibrary
12/02/10 13:22:55   [0x0-0xdd0dd].org.editra.Editra[6411]     File
"ctypes/__init__.pyo", line 348, in __init__
12/02/10 13:22:55   [0x0-0xdd0dd].org.editra.Editra[6411]   OSError:
dlopen(/opt/local/lib/libenchant.dylib, 6): image not found
12/02/10 13:22:55   [0x0-0xdd0dd].org.editra.Editra[6411]   Traceback (most
recent call last):
12/02/10 13:22:55   [0x0-0xdd0dd].org.editra.Editra[6411]     File
"/Applications/Editra.app/Contents/Resources/__boot__.py", line 137, in
<module>
12/02/10 13:22:55   [0x0-0xdd0dd].org.editra.Editra[6411]       _run('Editra.py')
12/02/10 13:22:55   [0x0-0xdd0dd].org.editra.Editra[6411]     File
"/Applications/Editra.app/Contents/Resources/__boot__.py", line 134, in _run
12/02/10 13:22:55   [0x0-0xdd0dd].org.editra.Editra[6411]       execfile(path,
globals(), globals())
12/02/10 13:22:55   [0x0-0xdd0dd].org.editra.Editra[6411]     File
"/Applications/Editra.app/Contents/Resources/Editra.py", line 1092, in <module>
12/02/10 13:22:55   [0x0-0xdd0dd].org.editra.Editra[6411]       Main()
12/02/10 13:22:55   [0x0-0xdd0dd].org.editra.Editra[6411]     File
"/Applications/Editra.app/Contents/Resources/Editra.py", line 988, in Main
12/02/10 13:22:55   [0x0-0xdd0dd].org.editra.Editra[6411]       _Main(opts, args)
12/02/10 13:22:55   [0x0-0xdd0dd].org.editra.Editra[6411]     File
"/Applications/Editra.app/Contents/Resources/Editra.py", line 1005, in _Main
12/02/10 13:22:55   [0x0-0xdd0dd].org.editra.Editra[6411]       editra_app =
Editra(False)
12/02/10 13:22:55   [0x0-0xdd0dd].org.editra.Editra[6411]     File
"/Applications/Editra.app/Contents/Resources/Editra.py", line 89, in __init__
12/02/10 13:22:55   [0x0-0xdd0dd].org.editra.Editra[6411]      
wx.App.__init__(self, *args, **kargs)
12/02/10 13:22:55   [0x0-0xdd0dd].org.editra.Editra[6411]     File
"wx/_core.pyo", line 7978, in __init__
12/02/10 13:22:55   [0x0-0xdd0dd].org.editra.Editra[6411]     File
"wx/_core.pyo", line 7552, in _BootstrapApp
12/02/10 13:22:55   [0x0-0xdd0dd].org.editra.Editra[6411]     File
"/Applications/Editra.app/Contents/Resources/Editra.py", line 192, in OnInit
12/02/10 13:22:55   [0x0-0xdd0dd].org.editra.Editra[6411]      
self.profile_updated = InitConfig()
12/02/10 13:22:55   [0x0-0xdd0dd].org.editra.Editra[6411]     File
"/Applications/Editra.app/Contents/Resources/Editra.py", line 721, in
InitConfig
12/02/10 13:22:55   [0x0-0xdd0dd].org.editra.Editra[6411]      
profiler.TheProfile.Load(pstr)
12/02/10 13:22:55   [0x0-0xdd0dd].org.editra.Editra[6411]     File
"profiler.pyo", line 188, in Load
12/02/10 13:22:55   [0x0-0xdd0dd].org.editra.Editra[6411]   ImportError: No
module named codetemplater.templates
12/02/10 13:22:55   Editra[6411]    Editra Error
12/02/10 13:22:55   Editra[6411]    Editra Error
An unexpected error has occurred during execution of the main script

ImportError: No module named codetemplater.templates
12/02/10 13:22:56   com.apple.launchd.peruser.501[201]
([0x0-0xdd0dd].org.editra.Editra[6411]) Exited with exit code: 255

Original issue reported on code.google.com by baptiste...@free.fr on 12 Feb 2010 at 12:24

GoogleCodeExporter commented 9 years ago
Hi,

Until that plugins author chimes in you should be able to restart deleting your 
profile:

Users/YOU/Library/Application Support/Editra

Either delete that directory or the profiles directory underneath it.

Original comment by CodyPrec...@gmail.com on 12 Feb 2010 at 2:21

GoogleCodeExporter commented 9 years ago
Erik,

I have routed this issue to you for investigation.

Was also thinking about it and it would probably be better not to save 
templates into
the main user profile as there is likely to be alot of data that could get left 
in
there. Would be better to save it in your own config file under the
ed_glob.CONFIG['cache'] directory.

Original comment by CodyPrec...@gmail.com on 12 Feb 2010 at 2:27

GoogleCodeExporter commented 9 years ago
I've just committed a fix for this to svn - there was an object being sent to 
the 
profile that required the plugin be loaded before the profile was loaded, which 
apparently doesn't happen (on my test machine, the paths were setup to avoid 
that).  
But everything in the profile is now a python base object.

I'll look into switching to using the cache directory, but for now, the 
committed fix 
should make this work. (I've also added some insurance code so that it won't 
mess up 
the whole profile if something like this happens again later)

Original comment by etolle...@gmail.com on 12 Feb 2010 at 7:22

GoogleCodeExporter commented 9 years ago
Ok,

Before I close and role out 0.2, The profile should only be holding basic python
types like strings, lists, bools, numbers, ect... Are you putting anything 
other than
these types in there?

Cody

Original comment by CodyPrec...@gmail.com on 12 Feb 2010 at 10:52

GoogleCodeExporter commented 9 years ago
Nope - it should be only dicts, strings, and bools.

Original comment by etolle...@gmail.com on 13 Feb 2010 at 12:36

GoogleCodeExporter commented 9 years ago
Thanks for the confirmation

Original comment by CodyPrec...@gmail.com on 13 Feb 2010 at 12:38