[FIXED] EG always opens MyConfig.xml

Found a bug in EventGhost? Report it here.
Post Reply
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

[FIXED] EG always opens MyConfig.xml

Post by Pako » Fri Mar 23, 2007 7:22 pm

Version: 0.3.6.928
Step 1:
I open any my configuration and finish EG
or I make "Save As..." and finish EG.

Step 2:
Start EG - always open MyConfig.xml.

User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Post by Bitmonster » Fri Mar 23, 2007 7:24 pm

Do we have a Unicode problem again? Does the path to the file include any special characters or are they all ASCII?
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!

User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Post by Pako » Fri Mar 23, 2007 7:40 pm

Bitmonster wrote:Do we have a Unicode problem again? Does the path to the file include any special characters or are they all ASCII?
EG install-dir: D:\Programs\E\EventGhost (without accented letters)
Application data folder: F:\LR\Data aplikací\EventGhost (with accented letters)

User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Post by Bitmonster » Fri Mar 23, 2007 7:42 pm

No, I mean the file you wanted to save (your old configuration file). Does this include any accented letters?
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!

User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Post by Bitmonster » Fri Mar 23, 2007 7:50 pm

Could you please try to save some file, exit EG and then post the contents of your config.py here?
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!

User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Post by Pako » Fri Mar 23, 2007 8:06 pm

Configuration file is in EG install-dir.
Bitmonster wrote:Could you please try to save some file, exit EG and then post the contents of your config.py here?

Code: Select all

autoloadFilePath = u'D:\\Programs\\E\\EventGhost\\Test.xml'
buildNum = 928
checkUpdate = False
confirmDelete = True
hideOnStartup = False
language = 'en_EN'
limitMemory = True
limitMemorySize = 8
logActions = True
onlyLogAssigned = False
startWithWindows = False
storedBootTime = 1174665785.4400001
useAutoloadFile = True
class mainFrame:
    expandOnEvents = True
    expandTillMacro = False
    hideOnClose = False
    logTime = False
    perspective = u'layout2|name=logger;caption= Log;state=4196348;dir=4;layer=0;row=0;pos=0;prop=100000;bestw=280;besth=300;minw=100;minh=100;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=tree;caption= Configuration;state=4196348;dir=5;layer=0;row=0;pos=0;prop=100000;bestw=100;besth=100;minw=100;minh=100;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|dock_size(4,0,0)=282|dock_size(5,0,0)=102|'
    perspective2 = None
    position = (149, 426)
    showToolbar = True
    size = (700, 433)
    treeStateData = None
class plugins:
    class EventGhost:
        class PythonScript:
            position = (10, 10)
            size = (400, 300)
    class System:
        class RegistryGroup:
            lastKeySelected = 2147483649L
            lastSubkeySelected = 'Software'
            lastValueNameSelected = None
    class Window:
        class FindWindow:
            hideOnDrag = False
class treeStateData:
    expandState = [0, 1]
    firstVisibleItem = []
    guid = '{1B62B471-9758-4090-9C6B-837ADC17E715}'
    selection = [0, 1]
    time = '1174680017.79'

User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Post by Bitmonster » Fri Mar 23, 2007 8:10 pm

This looks all right. And it doesn't open "Test.xml" on the next start?
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!

User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Post by Pako » Fri Mar 23, 2007 8:14 pm

Bitmonster wrote:This looks all right. And it doesn't open "Test.xml" on the next start?
Sorry, again MyConfig.xml.

User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Post by Bitmonster » Fri Mar 23, 2007 8:23 pm

Very odd. Does EG save other settings, like the position of the Window or the language setting?
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!

User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Post by Bitmonster » Fri Mar 23, 2007 8:33 pm

I just uploaded 930.

Please run this version from the command line with the option "-debug":
EventGhost.exe -debug

It should give you a notice that it saved something to a log file. The content of this file I need.
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!

User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Post by Pako » Fri Mar 23, 2007 8:49 pm

Bitmonster wrote:I just uploaded 930.
Please run this version from the command line with the option "-debug":
The content of this file I need.

Code: Select all

Traceback (most recent call last):
  File "EventGhost.pyw", line 34, in <module>
    imp.load_source("Main", path + "/eg/Main.py")
  File "D:\Programs\E\EventGhost/eg/Main.py", line 82, in <module>
    "EventGhost:7EB106DC-468D-4345-9CFE-B0021039114B"
pywintypes.error: (5, 'CreateMutex', 'P\xf8\xedstup byl odep\xf8en.')
Traceback (most recent call last):
  File "EventGhost.pyw", line 34, in <module>
    imp.load_source("Main", path + "/eg/Main.py")
  File "D:\Programs\E\EventGhost/eg/Main.py", line 91, in <module>
    e.BringToFront()
  File "win32com\client\dynamic.pyc", line 496, in __getattr__
AttributeError: {7EB106DC-468D-4345-9CFE-B0021039114B}.BringToFront
Traceback (most recent call last):
  File "EventGhost.pyw", line 39, in <module>
    # 3. Python Runtime Services 
  File "D:\Programs\E\EventGhost/eg/Main.py", line 87, in <module>
    e = win32com.client.Dispatch("{7EB106DC-468D-4345-9CFE-B0021039114B}")
  File "win32com\client\__init__.pyc", line 95, in Dispatch
  File "win32com\client\dynamic.pyc", line 98, in _GetGoodDispatchAndUserName
  File "win32com\client\dynamic.pyc", line 78, in _GetGoodDispatch
pywintypes.com_error: (-2146959355, 'Prov\xe1d\xecn\xed serveru selhalo', None, None)
21:40:54: MainThread: ----------------------------------------
21:40:54: MainThread:         EventGhost started
21:40:54: MainThread: ----------------------------------------
21:40:54: MainThread: Version: 0.3.6.930
Traceback (most recent call last):
  File "EventGhost.pyw", line 33, in <module>
    
  File "D:\Programs\E\EventGhost/eg/Main.py", line 136, in <module>
    eg.Init(args)
  File "D:\Programs\E\EventGhost\eg\Init.py", line 156, in Init
    self.config = config = LoadConfig()
  File "D:\Programs\E\EventGhost\eg\ConfigData.py", line 68, in LoadConfig
    config = Persistent.PyLoad(configFilePath, DefaultConfig)
  File "D:\Programs\E\EventGhost\eg\Persistent.py", line 102, in PyLoad
    execfile(filename, execDict, obj.__dict__)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xed' in position 18: ordinal not in range(128)

User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Post by Bitmonster » Fri Mar 23, 2007 9:42 pm

I love these UnicodeErrors. :D

931 is up. Lets see if this one is right.
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!

User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Post by Bitmonster » Fri Mar 23, 2007 9:59 pm

I also uploaded 932 that uses a slightly different workaround for this problem. They are both awful (it is actually a bug inside Python), but 932 is a bit more straightforward.
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!

User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Post by Pako » Fri Mar 23, 2007 10:28 pm

I have good newscast. Both last version (931 and 932) works well.
It seems, that now may also I come over on version 0.3.6.

Thanks for hard work !

User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Post by Bitmonster » Fri Mar 23, 2007 10:34 pm

I'm sure you will find more bugs. :)

You are predestinated to find them, because your locale settings seem to use much more non-ascii letters than mine.

But these Unicode problems had to be addressed sometime. The old way would not work right on locales with more then 256 characters (like the Japanese).
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!

Post Reply