Page 1 of 1
Push bullet error on RC 4?
Posted: Thu Sep 21, 2017 2:53 pm
by jachin99
I'm getting this in my log while trying to install the pushbullet plugin on EG 5 RC 4 on both WIn 10 and 7.
Error loading plugin file: C:\Program Files (x86)\EventGhost\plugins\PushBullet
Traceback (most recent call last) (0.5.0-rc4):
File "C:\Program Files (x86)\EventGhost\plugins\PushBullet\__init__.py", line 290, in <module>
from ImageGrab import grab, grabclipboard
ImportError: No module named ImageGrab
How should I start troubleshooting this?
Re: Push bullet error on RC 4?
Posted: Fri Sep 22, 2017 3:06 am
by kgschlosser
ok go to line 290 in the __init__ and change
Code: Select all
from ImageGrab import grab, grabclipboard
to
Code: Select all
from PIL.ImageGrab import grab, grabclipboard
Re: Push bullet error on RC 4?
Posted: Fri Sep 22, 2017 2:08 pm
by jachin99
I made those changes, and now I get this
Traceback (most recent call last) (0.5.0-rc4):
File "C:\Program Files (x86)\EventGhost\plugins\PushBullet\__init__.py", line 1337, in Create
self.itemHeight = self.lb.GetItemHeight()
AttributeError: 'CheckListBox' object has no attribute 'GetItemHeight'
Traceback (most recent call last) (0.5.0-rc4):
File "C:\Program Files (x86)\EventGhost\eg\Classes\TaskletDialog.py", line 162, in ProcessingTask
self.Configure(*args, **kwargs)
File "C:\Program Files (x86)\EventGhost\eg\Classes\ConfigDialog.py", line 106, in Configure
treeItem.Configure(*args)
File "C:\Program Files (x86)\EventGhost\eg\Classes\ActionItem.py", line 80, in Configure
return self.executable.Configure(*args)
File "C:\Program Files (x86)\EventGhost\plugins\PushBullet\__init__.py", line 4210, in Configure
gridSizer.AddGrowableCol(1)
File "wx\_core.pyc", line 15368, in AddGrowableCol
PyAssertionError: C++ assertion "!m_cols || idx < (size_t)m_cols" failed at ..\..\src\common\sizer.cpp(1980) in wxFlexGridSizer::AddGrowableCol(): invalid column index
Re: Push bullet error on RC 4?
Posted: Fri Sep 22, 2017 2:12 pm
by jachin99
What is really weird is that some of the traceback errors point out line numbers that are just comments. I opened and edited the file using MSVS community 2015 version selector. Is it possible the software did some kind of weird conversion or made some change to the file other than what I edited? I didn't get any prompts or agree to any conversions but VS did have to download something to open the file
Re: Push bullet error on RC 4?
Posted: Fri Sep 22, 2017 4:36 pm
by kgschlosser
don't know. but the growablecolumn problem is a known one and I will have to fix it as i specifically do not remember how to. LOL
and that error is actually caused upstream from where it is actually happening.
Re: Push bullet error on RC 4?
Posted: Fri Sep 22, 2017 5:11 pm
by kgschlosser
Give this a try and see if it fixed it. I am going to go through the code if it does and make sure all of them are fixed.
Re: Push bullet error on RC 4?
Posted: Mon Sep 25, 2017 11:13 am
by topix
kgschlosser wrote: Fri Sep 22, 2017 4:36 pm
don't know. but the growablecolumn problem is a known one and I will have to fix it as i specifically do not remember how to. LOL
and that error is actually caused upstream from where it is actually happening.
The call to gridSizer.AddGrowableCol() has to be after there is content in the column. So just move gridSizer.AddGrowableCol(0) after the lines with gridSizer.Add(.
Re: Push bullet error on RC 4?
Posted: Mon Sep 25, 2017 1:50 pm
by jachin99
I'm still getting errors. Here is the log
---> Welcome to EventGhost <---
Traceback (most recent call last) (0.5.0-rc4):
File "C:\Program Files (x86)\EventGhost\plugins\PushBullet\__init__.py", line 1337, in Create
self.itemHeight = self.lb.GetItemHeight()
AttributeError: 'CheckListBox' object has no attribute 'GetItemHeight'
Traceback (most recent call last) (0.5.0-rc4):
File "C:\Program Files (x86)\EventGhost\eg\Classes\TaskletDialog.py", line 162, in ProcessingTask
self.Configure(*args, **kwargs)
File "C:\Program Files (x86)\EventGhost\eg\Classes\ConfigDialog.py", line 106, in Configure
treeItem.Configure(*args)
File "C:\Program Files (x86)\EventGhost\eg\Classes\ActionItem.py", line 80, in Configure
return self.executable.Configure(*args)
File "C:\Program Files (x86)\EventGhost\plugins\PushBullet\__init__.py", line 4240, in Configure
mSizer.AddGrowableCol(1)
File "wx\_core.pyc", line 15368, in AddGrowableCol
PyAssertionError: C++ assertion "!m_cols || idx < (size_t)m_cols" failed at ..\..\src\common\sizer.cpp(1980) in wxFlexGridSizer::AddGrowableCol(): invalid column index
Re: Push bullet error on RC 4?
Posted: Mon Sep 25, 2017 3:26 pm
by kgschlosser
ahhh ok i got ya. does it also have an issue with addgrowablerow?
Re: Push bullet error on RC 4?
Posted: Tue Sep 26, 2017 7:56 am
by topix
Not sure, but i would guess yes.
Re: Push bullet error on RC 4?
Posted: Tue Oct 03, 2017 2:40 pm
by eirik226
Also getting errors on this.
Re: Push bullet error on RC 4?
Posted: Wed Oct 04, 2017 6:00 pm
by kgschlosser
I will have this fixed by the end of the day... cool???
Re: Push bullet error on RC 4?
Posted: Wed Oct 04, 2017 6:47 pm
by eirik226
No worries for me - I just need it as a workaround for another problem, take your time mate.
Re: Push bullet error on RC 4?
Posted: Thu Oct 05, 2017 4:16 am
by kgschlosser
hey hey. The plugin is updated. if you have problems either post in here or send me a PM
viewtopic.php?p=48580#p48580
Re: Push bullet error on RC 4?
Posted: Thu Oct 05, 2017 4:24 am
by kgschlosser
@topix
All i did to solve the addgrowablerow/col problem was I moved them after everything was added to the sizer. This seems to have fixed the issues. there are a couple of other issues but they are things we can monkey patch in the code and print out a depreciation warning for it.
The issues we are running into are happening because the modules in EG 0.4 are antiques and the ones we updated to some of the methods/functions are expired and have been removed. and the depreciation warnings have passed.
Things like ImageGrab which is now PIL.ImageGrab
and tostring in PIL has been replaced with tobytes
as well as fromstring and from bytes
in wx you have CheckListBox.GetItemHeight no longer exists but can be replaced with CheckListBox.GetTextExtent('A")[1]
we can monkey patch these things
the AddGrowableRow and AddGrowableCol i would have to do some digging but I am sure there is some kind of a trigger for when the items are being drawn. we would cache the values and when they are being drawn then set them in place.