pravj / Doga

:chart_with_upwards_trend: HTTP log monitoring console for Humans
MIT License
241 stars 9 forks source link

Error message #3

Open labyrinth-to-solve opened 10 years ago

labyrinth-to-solve commented 10 years ago

Installed on Crunchbang Walldorf (debian based), I get following message when I start Doga:

xx@xx-2:~$ sudo doga [sudo] password for xx: Exception in thread Thread-4: Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 552, in bootstrap_inner self.run() File "/usr/local/lib/python2.7/dist-packages/Doga/thread_jobs.py", line 21, in run self.app.run() File "/usr/local/lib/python2.7/dist-packages/npyscreen/apNPSApplication.py", line 30, in run return npyssafewrapper.wrapper(self.__remove_argument_call_main) File "/usr/local/lib/python2.7/dist-packages/npyscreen/npyssafewrapper.py", line 41, in wrapper wrapper_no_fork(call_function) File "/usr/local/lib/python2.7/dist-packages/npyscreen/npyssafewrapper.py", line 97, in wrapper_no_fork return_code = call_function(_SCREEN) File "/usr/local/lib/python2.7/dist-packages/npyscreen/apNPSApplication.py", line 25, in remove_argument_call_main return self.main() File "/usr/local/lib/python2.7/dist-packages/Doga/interfaces/gui.py", line 85, in main self.alert_history = self.window.add(npyscreen.BoxTitle, name="Alert History", max_width=75, relx=52, rely=7) File "/usr/local/lib/python2.7/dist-packages/npyscreen/fmForm.py", line 381, in add_widget _args, *_keywords) File "/usr/local/lib/python2.7/dist-packages/npyscreen/wgboxwidget.py", line 99, in init super(BoxTitle, self).init*(screen, _args, _keywords) File "/usr/local/lib/python2.7/dist-packages/npyscreen/wgboxwidget.py", line 7, in init super(BoxBasic, self).init*(screen, _args, _keywords) File "/usr/local/lib/python2.7/dist-packages/npyscreen/wgwidget.py", line 229, in init self.set_size() File "/usr/local/lib/python2.7/dist-packages/npyscreen/wgwidget.py", line 366, in set_size raise NotEnoughSpaceForWidget("Not enough space: max y and x = %s , %s. Height and Width = %s , %s " % (my, mx, self.height, self.width) ) # unsafe. Need to add error here. NotEnoughSpaceForWidget: Not enough space: max y and x = 16 , 25. Height and Width = 16 , RAISEERROR

pravj commented 10 years ago

Hey @labyrinth-to-solve

looks like you are trying it on small screen size. currently the size is hard coded so may be it is small compare to your screen.

Thanks for letting me know, I have already created issue #2 for this. I'll work on it soon.

:+1:

labyrinth-to-solve commented 10 years ago

Hi again,

Actually I run Doga on a computer installed in a VMWare workstation, with a screen size of the client with 1440 x 900 resolution. Problem with the virtualization?

Btw, thanks for your almost immediate response.

On 09/12/2014 06:08 PM, Pravendra Singh wrote:

Hey @labyrinth-to-solve https://github.com/labyrinth-to-solve

looks like you are trying it on small screen size. currently the size is hard coded so may be it is small compare to your screen.

Thanks for letting me know, I have already created issue #2 https://github.com/pravj/Doga/issues/2 for this. I'll work on it soon.

:+1:

— Reply to this email directly or view it on GitHub https://github.com/pravj/Doga/issues/3#issuecomment-55424465.

pravj commented 10 years ago

Hi @labyrinth-to-solve,

yeah, as the error message itself indicates that this is space related issue. you can see here and here that the widget width is fixed.

actually I haven't tried things on VMWare workstation so can't think of any way right now. but for general small screen size I'll try something related to screen ratio and try to fix this.

labyrinth-to-solve commented 10 years ago

I have to ask for apology, everything is OK, the only problem was that I didn't resize the terminal window and I feel quite stupid now. I am probably a bit tired today. Thank you for useful software!

On 09/12/2014 06:44 PM, Pravendra Singh wrote:

Hi @labyrinth-to-solve https://github.com/labyrinth-to-solve,

yeah, as the error message itself indicates that this is space related issue. you can see here https://github.com/pravj/Doga/blob/master/Doga/interfaces/gui.py#L80 and here https://github.com/pravj/Doga/blob/master/Doga/interfaces/gui.py#L85 that the widget width is fixed.

actually I haven't tried things on VMWare workstation so can't think of any way right now. but for general small screen size I'll try something related to screen ratio and try to fix this.

— Reply to this email directly or view it on GitHub https://github.com/pravj/Doga/issues/3#issuecomment-55429650.

pravj commented 10 years ago

Hey @labyrinth-to-solve

its ok, happy to hear that you liked this. I'll update it soon on issue #2

:beers: