Push bullet error on RC 4?

This is where you report any issues if you are running a beta version of EventGhost
Forum rules
To submit a possible bug report please follow this template

Version: 0.5 beta 2 (the version you are running)
Traceback: Traceback (most recent call last):
File "<SOME_EVENTGHOST_FILE.py>", line 10, in <module>
SOME_FUNCTION()
File "<SOME_EVENTGHOST_FILE.py>", line 4, in SOME_EVENTGHOST_MODULE
SOME_FUNCTION()

copy and past any traceback information from the log if there is no traceback put NONE

Event:
Main.test.0.1.2.3.4.5.6.7.8
1
2

in the Event field you will want to put the event that was triggered just prior to the traceback occurring, if there is personal data put PERSONAL DATA if there was no traceback or no event triggered right before the traceback put NO EVENT

Description: if you have the ability to replicate the issue then put in here a description of what you are doing to create the problem.

Screen Shots: screen shots of the error and any events/macros/acrions that were run before the issue or screen shots of the problem

Files: any files that may be used to isolate where the issue is. something like the log.txt file would go here

if you provide the above information before hand it will greatly speed up the diagnostic process. we will not have to ask for the bits and pieces. And also having a well formatted Bug Report filled out will get answered sooner then the ones that aren't
Post Reply
jachin99
Experienced User
Posts: 361
Joined: Sat Feb 13, 2016 8:39 pm

Push bullet error on RC 4?

Post by jachin99 » Thu Sep 21, 2017 2:53 pm

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?

User avatar
kgschlosser
Site Admin
Posts: 3406
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Push bullet error on RC 4?

Post by kgschlosser » Fri Sep 22, 2017 3:06 am

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
If you like the work I have been doing then feel free to Image

jachin99
Experienced User
Posts: 361
Joined: Sat Feb 13, 2016 8:39 pm

Re: Push bullet error on RC 4?

Post by jachin99 » Fri Sep 22, 2017 2:08 pm

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

jachin99
Experienced User
Posts: 361
Joined: Sat Feb 13, 2016 8:39 pm

Re: Push bullet error on RC 4?

Post by jachin99 » Fri Sep 22, 2017 2:12 pm

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

User avatar
kgschlosser
Site Admin
Posts: 3406
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Push bullet error on RC 4?

Post by kgschlosser » 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.
If you like the work I have been doing then feel free to Image

User avatar
kgschlosser
Site Admin
Posts: 3406
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Push bullet error on RC 4?

Post by kgschlosser » Fri Sep 22, 2017 5:11 pm

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.
Attachments
__init__.py
(213.23 KiB) Downloaded 40 times
If you like the work I have been doing then feel free to Image

User avatar
topix
Experienced User
Posts: 389
Joined: Sat May 05, 2007 3:43 pm
Location: Germany
Contact:

Re: Push bullet error on RC 4?

Post by topix » Mon Sep 25, 2017 11:13 am

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(.

jachin99
Experienced User
Posts: 361
Joined: Sat Feb 13, 2016 8:39 pm

Re: Push bullet error on RC 4?

Post by jachin99 » Mon Sep 25, 2017 1:50 pm

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

User avatar
kgschlosser
Site Admin
Posts: 3406
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Push bullet error on RC 4?

Post by kgschlosser » Mon Sep 25, 2017 3:26 pm

ahhh ok i got ya. does it also have an issue with addgrowablerow?
If you like the work I have been doing then feel free to Image

User avatar
topix
Experienced User
Posts: 389
Joined: Sat May 05, 2007 3:43 pm
Location: Germany
Contact:

Re: Push bullet error on RC 4?

Post by topix » Tue Sep 26, 2017 7:56 am

Not sure, but i would guess yes.

eirik226
Experienced User
Posts: 139
Joined: Wed Nov 07, 2012 5:22 pm

Re: Push bullet error on RC 4?

Post by eirik226 » Tue Oct 03, 2017 2:40 pm

Also getting errors on this.

User avatar
kgschlosser
Site Admin
Posts: 3406
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Push bullet error on RC 4?

Post by kgschlosser » Wed Oct 04, 2017 6:00 pm

I will have this fixed by the end of the day... cool???
If you like the work I have been doing then feel free to Image

eirik226
Experienced User
Posts: 139
Joined: Wed Nov 07, 2012 5:22 pm

Re: Push bullet error on RC 4?

Post by eirik226 » Wed Oct 04, 2017 6:47 pm

No worries for me - I just need it as a workaround for another problem, take your time mate.

User avatar
kgschlosser
Site Admin
Posts: 3406
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Push bullet error on RC 4?

Post by kgschlosser » Thu Oct 05, 2017 4:16 am

hey hey. The plugin is updated. if you have problems either post in here or send me a PM

viewtopic.php?p=48580#p48580
If you like the work I have been doing then feel free to Image

User avatar
kgschlosser
Site Admin
Posts: 3406
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Push bullet error on RC 4?

Post by kgschlosser » Thu Oct 05, 2017 4:24 am

@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.
If you like the work I have been doing then feel free to Image

Post Reply