EventGhost Plugin Fails to Load: "No module named cec"



If the Pulse-Eight CEC Adapter plugin for EventGhost fails to load and the log shows an ImportError: No module named cec, this is caused by an incomplete plugin installer. Follow the steps below to fix it.

This affects installs made with the 8.1.x version of the libcec-eventghost-plugin installer. If you installed the plugin recently and have not yet got it working, you may be affected.

Why This Happens

The 8.1.x installer copies most of the plugin's files into place, but leaves out a required subfolder named cec. The plugin depends on the files in that folder to run, so it cannot load and EventGhost reports that the cec module cannot be found. No amount of reinstalling fixes this, because the installer never places those files in the first place.


How to Fix It

Because files may already have been copied around manually while troubleshooting, start with a clean folder rather than patching on top of a previous attempt.


1
Close EventGhost completely.
Make sure it is not still running in the system tray.
2
Open the plugin folder.
Paste the following path into the Windows Explorer address bar (the ProgramData folder is hidden by default, but you can still navigate to it directly):
C:\ProgramData\EventGhost\plugins\PulseEight

You should see __init__.py, cec_classes.py, controls.py, and cec.png already there.


3
Delete any leftover .pyc files.

If __init__.pyc, cec_classes.pyc, or controls.pyc are present, delete them. These are stale cached files from the earlier failed load attempts.


4
Add the missing cec folder.
Download the folder below and copy it into the PulseEight folder from step 2. When done, you should have:


C:\ProgramData\EventGhost\plugins\PulseEight\cec\    __init__.py    cec.py    _pycec.pyd    cec.dll
5
Reopen EventGhost and add the plugin.
Add the Pulse-Eight CEC adapter plugin again. It should now load and detect the adapter on its COM port automatically. You do not need to separately install libCEC or reinstall EventGhost.
When the plugin loads, click "Enter Name" in the plugin settings and give the adapter a name to register it. Leaving the default name in place is a known issue in EventGhost that stops the plugin attaching to the adapter correctly — keep the name under 13 characters.

Related Articles

Still not loading?
If the plugin still won't load after following these steps, get in touch and we'll take a closer look.
UK: 01202 413 610 | US: (858) 748-8250 | support@pulse-eight.com

Was this article helpful?

Yes No