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.
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.
Error on Startup *SOLVED*
Error on Startup *SOLVED*
Hi Guys,
I get the below error on start up, it's a brand new Win 7 64bit enterprise install on a VM with a freshly downloaded verison of EventGhost, any ideas why this is happening?:
Unhandled exception in WorkerThread <EventThread>:
Callers stack:
File "wx\_core.pyc", line 8010, in MainLoop
File "wx\_core.pyc", line 7306, in MainLoop
File "wx\_core.pyc", line 14660, in <lambda>
Traceback (most recent call last) (1544):
File "C:\Program Files (x86)\EventGhost\eg\Classes\ThreadWorker.py", line 326, in __DoOneEvent
self.HandleAction(action)
File "C:\Program Files (x86)\EventGhost\eg\Classes\ThreadWorker.py", line 289, in HandleAction
action()
File "C:\Program Files (x86)\EventGhost\eg\Classes\ThreadWorker.py", line 62, in __call__
self.returnValue = self.func(*self.args, **self.kwargs)
File "C:\Program Files (x86)\EventGhost\eg\Classes\EventThread.py", line 142, in StartSession
actionThread.Func(actionThread.StartSession, 120)(filename)
File "C:\Program Files (x86)\EventGhost\eg\Classes\ThreadWorker.py", line 62, in __call__
self.returnValue = self.func(*self.args, **self.kwargs)
File "C:\Program Files (x86)\EventGhost\eg\Classes\ActionThread.py", line 43, in StartSession
set(eg.WinUsb.ListDevices().iterkeys())
File "C:\Program Files (x86)\EventGhost\eg\Classes\WinUsb.py", line 618, in ListDevices
raise WinError(err)
WindowsError: [Error 6] The handle is invalid.
I get the below error on start up, it's a brand new Win 7 64bit enterprise install on a VM with a freshly downloaded verison of EventGhost, any ideas why this is happening?:
Unhandled exception in WorkerThread <EventThread>:
Callers stack:
File "wx\_core.pyc", line 8010, in MainLoop
File "wx\_core.pyc", line 7306, in MainLoop
File "wx\_core.pyc", line 14660, in <lambda>
Traceback (most recent call last) (1544):
File "C:\Program Files (x86)\EventGhost\eg\Classes\ThreadWorker.py", line 326, in __DoOneEvent
self.HandleAction(action)
File "C:\Program Files (x86)\EventGhost\eg\Classes\ThreadWorker.py", line 289, in HandleAction
action()
File "C:\Program Files (x86)\EventGhost\eg\Classes\ThreadWorker.py", line 62, in __call__
self.returnValue = self.func(*self.args, **self.kwargs)
File "C:\Program Files (x86)\EventGhost\eg\Classes\EventThread.py", line 142, in StartSession
actionThread.Func(actionThread.StartSession, 120)(filename)
File "C:\Program Files (x86)\EventGhost\eg\Classes\ThreadWorker.py", line 62, in __call__
self.returnValue = self.func(*self.args, **self.kwargs)
File "C:\Program Files (x86)\EventGhost\eg\Classes\ActionThread.py", line 43, in StartSession
set(eg.WinUsb.ListDevices().iterkeys())
File "C:\Program Files (x86)\EventGhost\eg\Classes\WinUsb.py", line 618, in ListDevices
raise WinError(err)
WindowsError: [Error 6] The handle is invalid.
Last edited by st1x on Sat Apr 07, 2012 1:22 pm, edited 1 time in total.
- Pako
- Plugin Developer
- Posts: 2294
- Joined: Sat Nov 11, 2006 1:31 pm
- Location: Czech Republic
- Contact:
Re: Error on Startup
It seems that in the second machine, you do not have the same USB receiver, as in the first machine.
Pako
Pako
Re: Error on Startup
Hi Pako,
I'm not sure what you mean. I've got one esxi host running a Win 2008 R2 box with eventghost and it runs perfectly then i installed a fresh Win 7 64bit on it and installed eventghost and get the above errors, can i run eventghost on 2 vm's on the same esxi host? I don't use anything related to USB in eventghost by the way.
I'm not sure what you mean. I've got one esxi host running a Win 2008 R2 box with eventghost and it runs perfectly then i installed a fresh Win 7 64bit on it and installed eventghost and get the above errors, can i run eventghost on 2 vm's on the same esxi host? I don't use anything related to USB in eventghost by the way.
- Pako
- Plugin Developer
- Posts: 2294
- Joined: Sat Nov 11, 2006 1:31 pm
- Location: Czech Republic
- Contact:
Re: Error on Startup
Perhaps I misunderstood.st1x wrote:I'm not sure what you mean. I've got one esxi host running a Win 2008 R2 box with eventghost and it runs perfectly then i installed a fresh Win 7 64bit on it and installed eventghost and get the above errors, can i run eventghost on 2 vm's on the same esxi host? I don't use anything related to USB in eventghost by the way.
According to this, it seemed that you are using a USB driver:
You can then work with EventGhost?st1x wrote: File "C:\Program Files (x86)\EventGhost\eg\Classes\ActionThread.py", line 43, in StartSession
set(eg.WinUsb.ListDevices().iterkeys())
File "C:\Program Files (x86)\EventGhost\eg\Classes\WinUsb.py", line 618, in ListDevices
raise WinError(err)
WindowsError: [Error 6] The handle is invalid.
You can save and reopen the empty configuration?
Pako
Re: Error on Startup
Hi Pako,
I was puzzled as well by the usb error, i don't use eventghost at all for usb. Eventghost is used for automating file transfers around my network.
The issue i have is that EG is currently setup on a win 2008 R2 VM hosted on esxi this works fine. Then i created a new win 7 vm on the same esxi host, but when i install EG and start it up i get the above error straight away, it doesn't not make a difference if it is a brand new configuration file or one i have loaded, the error appears immediately at startup. Can i install EG on 2 vm's on the same host? It is a brand new installation of Win 7 and EG.
I was puzzled as well by the usb error, i don't use eventghost at all for usb. Eventghost is used for automating file transfers around my network.
The issue i have is that EG is currently setup on a win 2008 R2 VM hosted on esxi this works fine. Then i created a new win 7 vm on the same esxi host, but when i install EG and start it up i get the above error straight away, it doesn't not make a difference if it is a brand new configuration file or one i have loaded, the error appears immediately at startup. Can i install EG on 2 vm's on the same host? It is a brand new installation of Win 7 and EG.
- Pako
- Plugin Developer
- Posts: 2294
- Joined: Sat Nov 11, 2006 1:31 pm
- Location: Czech Republic
- Contact:
Re: Error on Startup
Why you do not answer the questions that I ask you?
BTW, the empty configuration is as follows:Why do you have in your configuration the X10 plugin?
Delete it! It needs a USB driver.
Pako
BTW, the empty configuration is as follows:Why do you have in your configuration the X10 plugin?
Delete it! It needs a USB driver.
Pako
Re: Error on Startup
Sorry pako, i didn't understand your question.
I've deleted everything from my configuration file and restarted and still get the same error.
Do you know the answer to my VM question?
I've deleted everything from my configuration file and restarted and still get the same error.
Do you know the answer to my VM question?
- Pako
- Plugin Developer
- Posts: 2294
- Joined: Sat Nov 11, 2006 1:31 pm
- Location: Czech Republic
- Contact:
Re: Error on Startup
It is a pity, but certainly it was worth a try.st1x wrote:I've deleted everything from my configuration file and restarted and still get the same error.
However, I unfortunately do not know what to do next.
I have no experience with esxi ( I've never even heard of it ).st1x wrote:Do you know the answer to my VM question?
Probably it is a problem with 64-bit environment. With that I also have no experience.
Maybe someone else can help.
Pako
Re: Error on Startup
I've found the answer in case anyone has this in the future, you just have to make sure you install the USB controller on the VM.
Nice one!
Nice one!
-
eatmeimadanish
- Experienced User
- Posts: 118
- Joined: Thu Oct 01, 2009 5:11 pm
Re: Error on Startup *SOLVED*
Also just for record, you can replace missinHardwareID function inside ActionThread.py with just
missingHardwareID ()
This will skip the winusb.py check and eliminate the error.
missingHardwareID ()
This will skip the winusb.py check and eliminate the error.
Re: Error on Startup *SOLVED*
Sorry to bring up an old thread, but I would like to do this and have no idea how to go about taking this action.eatmeimadanish wrote:Also just for record, you can replace missinHardwareID function inside ActionThread.py with just
missingHardwareID ()
This will skip the winusb.py check and eliminate the error.
Any help is appreciated.
Thanks.
Re: Error on Startup *SOLVED*
ActionThread.py is located in C:\Program Files (x86)\EventGhost\eg\Classes (assuming default installation location). About 1/3 of the way down the file, change
to
I have not tried this myself. Just following what the other poster wrote. Restart eg after making change. Keep a copy of the original file in case this doesn't work.
Code: Select all
missingHardwareIds = (
set(eg.WinUsb.ListDevices().iterkeys())
- set(pluginInfo.info.hardwareId for pluginInfo in eg.pluginList)Code: Select all
missingHardwareIds = ()