Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error message #3

Open
labyrinth-to-solve opened this issue Sep 12, 2014 · 5 comments
Open

Error message #3

labyrinth-to-solve opened this issue Sep 12, 2014 · 5 comments

Comments

@labyrinth-to-solve
Copy link

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
Copy link
Owner

pravj commented Sep 12, 2014

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.

👍

@labyrinth-to-solve
Copy link
Author

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
#2 for this. I'll work on it soon.

👍


Reply to this email directly or view it on GitHub
#3 (comment).

@pravj
Copy link
Owner

pravj commented Sep 12, 2014

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
Copy link
Author

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
#3 (comment).

@pravj
Copy link
Owner

pravj commented Sep 12, 2014

Hey @labyrinth-to-solve

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

🍻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants