Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

Cannot start process

If you have a question or need help, this is the place to be.
Post Reply
evlo
Posts: 11
Joined: Fri May 22, 2009 9:28 am

Cannot start process

Post by evlo »

Hello, i have r1462, when i start process with these

Code: Select all

/nostartupanimation /entrypoint:{CE32C570-4BEC-4aeb-AD1D-CF47B91DE0B2}\{FC9ABCCC-36CB-47ac-8BAB-03E8EF5F6F22}
Parameters i get error

Code: Select all

         Error in Action: "Start Program: ehshell.exe"
         Traceback (most recent call last) (1462):
           File "C:\Program Files (x86)\EventGhost\eg\Classes\ActionBase.py", line 168, in CallWrapper
           File "C:\Program Files (x86)\EventGhost\plugins\System\Execute.py", line 87, in __call__
           File "C:\Program Files (x86)\EventGhost\eg\Utils.py", line 204, in ParseString
           File "<string>", line 1
             CE32C570-4BEC-4aeb-AD1D-CF47B91DE0B2
                         ^
         SyntaxError: invalid syntax
Escaping { and } using \ does not help.

UPDATE: using this

Code: Select all

/nostartupanimation /entrypoint:{{CE32C570-4BEC-4aeb-AD1D-CF47B91DE0B2}\{{FC9ABCCC-36CB-47ac-8BAB-03E8EF5F6F22}
instead works


Also help>about gives this error

Code: Select all

Traceback (most recent call last):
  File "EventGhost.pyw", line 31, in <module>
  File "C:\Program Files (x86)\EventGhost\eg\__init__.py", line 110, in Main
    stackless.run()
  File "C:\Program Files (x86)\EventGhost\eg\Classes\TaskletDialog.py", line 41, in ProcessingTask
    self.Configure(*args, **kwargs)
  File "C:\Program Files (x86)\EventGhost\eg\Classes\AboutDialog.py", line 441, in Configure
    notebook.AddPage(SpecialThanksPanel(notebook), Text.tabSpecialThanks)
  File "C:\Program Files (x86)\EventGhost\eg\Classes\AboutDialog.py", line 301, in __init__
    write(name)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 4: ordinal not in range(128)
Traceback (most recent call last):
  File "C:\Program Files (x86)\EventGhost\eg\Classes\MainFrame\__init__.py", line 344, in FuncWrapper
    func()
  File "C:\Program Files (x86)\EventGhost\eg\Utils.py", line 176, in Wrapper
    eg.Tasklet(func)(*args, **kwargs).run()
TaskletExit
And after this error nothing in eventghost seams to work.


Problem with program program start bothers me more :)
User avatar
jinxdone
Plugin Developer
Posts: 443
Joined: Tue Jan 02, 2007 4:08 pm

Re: Cannot start process

Post by jinxdone »

There is a ParseString function in EG that will try to evaluate text inside curly braces {} as python script. As you already found out you can prevent this by escaping the opening brace '{' by entering a double curly brace '{{' instead.

In the traceback you see the error from when EG tried to interpret the text inside your curly brace {} pair as a Python script. Of course the errors are expected since the piece of text it's not actually a Python script..


The about dialog crash was caused by a non-ascii character in a sting (from a plugin file). I just committed a fix for that to the SVN so it should be fixed for the next version. Thanks for reporting!

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

Re: Cannot start process

Post by Pako »

jinxdone wrote:The about dialog crash was caused by a non-ascii character in a sting (from a plugin file). I just committed a fix for that to the SVN so it should be fixed for the next version. Thanks for reporting!
-jinxdone
Maybe it's a different case, but I thought
that this bug I already fixed on the basis of this report.
Pako
User avatar
jinxdone
Plugin Developer
Posts: 443
Joined: Tue Jan 02, 2007 4:08 pm

Re: Cannot start process

Post by jinxdone »

Ah yes, seems like that's the same thing. I didn't notice you had already addressed the issue.

I did commit the same change to SVN though.
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Cannot start process

Post by Pako »

I mean that the bug has been fixed in SVN revision 1465, even before correction of line number 31
(my editing of code you'll see, if you compare revisions 1465 and 955).
It should therefore consider whether to change cStringIO -> StringIO is really necessary, or whether it is ever appropriate.
That is what I wanted when I responded to your post.
Pako
User avatar
jinxdone
Plugin Developer
Posts: 443
Joined: Tue Jan 02, 2007 4:08 pm

Re: Cannot start process

Post by jinxdone »

Ohh, right, I should've checked the last commits first. :oops:

But as far as I know the wxHtmlWindow / wxHtmlParser should be able to handle unicode. I thought the only problem was that cStringIO could not write them.. ? Converting any non-ascii characters to html entities will work too ofcourse.

Actually, now that I think more about this, maybe in the long run a class for generating html that takes care of any encoding issues would be useful? (replacing StringIO.write() in this case). I wonder if the Webserver plugin has something like that already..
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Cannot start process

Post by Pako »

Okay. I made a simple test. I took the file AboutDialog.py from the SVN revision 955 and I made an adjustment in line 31 (cStringIO -> StringIO).
You're right, even this simple fix works and the crash no longer occurs.
I therefore propose that my fix (revision 1465) has been withdrawn. In other words, we should revert to revision 955 and apply your fix to it.
Here it is easy to see that you're much better expert. This is not surprising, I know I'm no programmer. :)
Pako
Post Reply