Re: Review Board Error: float division by zero

2016-07-14 Thread Christian Hammond
How many files are in that diff, and what's the paginate setting set to?

Christian


On Thursday, July 14, 2016, satish singh  wrote:

> We are too facing the same issue with Reviewboard 2.0.12. Please provide
> any pointer on this ?
>
>
> On Thursday, 3 October 2013 12:34:47 UTC+5:30, Varun Jain wrote:
>>
>> Hi Team,
>>
>> When I click on "show all files changed" for script review, I get
>> following error:
>>
>> float division by zero
>>
>>
>>
>> Traceback (most recent call last):
>>
>>   File
>> "/opt/software/lib/python2.7/site-packages/ReviewBoard-1.7.7.1-py2.7.egg/reviewboard/diffviewer/views.py",
>> line 226, in view_diff
>>
>> page = paginator.page(page_num)
>>
>>   File
>> "/opt/software/lib/python2.7/site-packages/Django-1.4.5-py2.7.egg/django/core/paginator.py",
>> line 37, in page
>>
>> number = self.validate_number(number)
>>
>>   File
>> "/opt/software/lib/python2.7/site-packages/Django-1.4.5-py2.7.egg/django/core/paginator.py",
>> line 28, in validate_number
>>
>> if number > self.num_pages:
>>
>>   File
>> "/opt/software/lib/python2.7/site-packages/Django-1.4.5-py2.7.egg/django/core/paginator.py",
>> line 64, in _get_num_pages
>>
>> self._num_pages = int(ceil(hits / float(self.per_page)))
>>
>> ZeroDivisionError: float division by zero
>>
>>
>>
>> I've not encountered this issue before, is something missing?
>>
>>
>> Thanks,
>>
>> Varun
>>
>> --
> Supercharge your Review Board with Power Pack:
> https://www.reviewboard.org/powerpack/
> Want us to host Review Board for you? Check out RBCommons:
> https://rbcommons.com/
> Happy user? Let us know! https://www.reviewboard.org/users/
> ---
> You received this message because you are subscribed to the Google Groups
> "reviewboard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to reviewboard+unsubscr...@googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
-- 
Christian Hammond
President/CEO of Beanbag 
Makers of Review Board 

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Review Board Error: float division by zero

2016-07-14 Thread satish singh
We are too facing the same issue with Reviewboard 2.0.12. Please provide 
any pointer on this ?


On Thursday, 3 October 2013 12:34:47 UTC+5:30, Varun Jain wrote:
>
> Hi Team,
>
> When I click on "show all files changed" for script review, I get 
> following error:
>
> float division by zero
>
>  
>
> Traceback (most recent call last):
>
>   File 
> "/opt/software/lib/python2.7/site-packages/ReviewBoard-1.7.7.1-py2.7.egg/reviewboard/diffviewer/views.py",
>  
> line 226, in view_diff
>
> page = paginator.page(page_num)
>
>   File 
> "/opt/software/lib/python2.7/site-packages/Django-1.4.5-py2.7.egg/django/core/paginator.py",
>  
> line 37, in page
>
> number = self.validate_number(number)
>
>   File 
> "/opt/software/lib/python2.7/site-packages/Django-1.4.5-py2.7.egg/django/core/paginator.py",
>  
> line 28, in validate_number
>
> if number > self.num_pages:
>
>   File 
> "/opt/software/lib/python2.7/site-packages/Django-1.4.5-py2.7.egg/django/core/paginator.py",
>  
> line 64, in _get_num_pages
>
> self._num_pages = int(ceil(hits / float(self.per_page)))
>
> ZeroDivisionError: float division by zero
>
>  
>
> I've not encountered this issue before, is something missing?
>
>
> Thanks,
>
> Varun
>
>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Review Board Error: float division by zero

2013-10-05 Thread Varun Jain
Hi Christian,

Actually this error page appears when we see diffs between two revisions
which are exactly same,
Shouldn't there be better description like zero difffs (or both revisions
are same) rather than this float division page??

Thanks,
Varun


On Thu, Oct 3, 2013 at 2:35 PM, Varun Jain  wrote:

> Hi Christian,
>
> Paginate By is already set at 20, It seems there is some other issue.
> Also when I click "show changed files"/ "paginate files changed" there is
> no difference. All the files are shown by clicking toggling the button.
>
> Thanks,
> Varun
>
>
> On Thursday, 3 October 2013 13:26:54 UTC+5:30, Christian Hammond wrote:
>
>> Hi Varun,
>>
>> I've never seen this before either. Can you go into your Admin UI -> Diff
>> Viewer settings and make sure that Paginate By is not 0?
>>
>> Christian
>>
>> --
>> Christian Hammond - chi...@chipx86.com
>>
>> Review Board - http://www.reviewboard.org
>> Beanbag, Inc. - http://www.beanbaginc.com
>>
>>
>> On Thu, Oct 3, 2013 at 12:04 AM, Varun Jain  wrote:
>>
>>> Hi Team,
>>>
>>> When I click on "show all files changed" for script review, I get
>>> following error:
>>>
>>> float division by zero
>>>
>>>
>>>
>>> Traceback (most recent call last):
>>>
>>>   File "/opt/software/lib/python2.7/**site-packages/ReviewBoard-1.7.**
>>> 7.1-py2.7.egg/reviewboard/**diffviewer/views.py", line 226, in view_diff
>>>
>>> page = paginator.page(page_num)
>>>
>>>   File "/opt/software/lib/python2.7/**site-packages/Django-1.4.5-**
>>> py2.7.egg/django/core/**paginator.py", line 37, in page
>>>
>>> number = self.validate_number(number)
>>>
>>>   File "/opt/software/lib/python2.7/**site-packages/Django-1.4.5-**
>>> py2.7.egg/django/core/**paginator.py", line 28, in validate_number
>>>
>>> if number > self.num_pages:
>>>
>>>   File "/opt/software/lib/python2.7/**site-packages/Django-1.4.5-**
>>> py2.7.egg/django/core/**paginator.py", line 64, in _get_num_pages
>>>
>>> self._num_pages = int(ceil(hits / float(self.per_page)))
>>>
>>> ZeroDivisionError: float division by zero
>>>
>>>
>>>
>>> I've not encountered this issue before, is something missing?
>>>
>>>
>>> Thanks,
>>>
>>> Varun
>>>
>>>  --
>>> Get the Review Board Power Pack at http://www.reviewboard.org/**
>>> powerpack/ 
>>> ---
>>> Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
>>> ---
>>> Happy user? Let us know at 
>>> http://www.reviewboard.org/**users/
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "reviewboard" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to reviewboard...@**googlegroups.com.
>>>
>>> For more options, visit 
>>> https://groups.google.com/**groups/opt_out
>>> .
>>>
>>
>>  --
> Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
> ---
> Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
> ---
> Happy user? Let us know at http://www.reviewboard.org/users/
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "reviewboard" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/reviewboard/B0ry_ireYLs/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> reviewboard+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
---
Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
---
Happy user? Let us know at http://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Review Board Error: float division by zero

2013-10-03 Thread Varun Jain
Hi Christian,

Paginate By is already set at 20, It seems there is some other issue.
Also when I click "show changed files"/ "paginate files changed" there is 
no difference. All the files are shown by clicking toggling the button.

Thanks,
Varun

On Thursday, 3 October 2013 13:26:54 UTC+5:30, Christian Hammond wrote:
>
> Hi Varun,
>
> I've never seen this before either. Can you go into your Admin UI -> Diff 
> Viewer settings and make sure that Paginate By is not 0?
>
> Christian
>
> -- 
> Christian Hammond - chi...@chipx86.com 
> Review Board - http://www.reviewboard.org
> Beanbag, Inc. - http://www.beanbaginc.com
>
>
> On Thu, Oct 3, 2013 at 12:04 AM, Varun Jain 
> > wrote:
>
>> Hi Team,
>>
>> When I click on "show all files changed" for script review, I get 
>> following error:
>>
>> float division by zero
>>
>>  
>>
>> Traceback (most recent call last):
>>
>>   File 
>> "/opt/software/lib/python2.7/site-packages/ReviewBoard-1.7.7.1-py2.7.egg/reviewboard/diffviewer/views.py",
>>  
>> line 226, in view_diff
>>
>> page = paginator.page(page_num)
>>
>>   File 
>> "/opt/software/lib/python2.7/site-packages/Django-1.4.5-py2.7.egg/django/core/paginator.py",
>>  
>> line 37, in page
>>
>> number = self.validate_number(number)
>>
>>   File 
>> "/opt/software/lib/python2.7/site-packages/Django-1.4.5-py2.7.egg/django/core/paginator.py",
>>  
>> line 28, in validate_number
>>
>> if number > self.num_pages:
>>
>>   File 
>> "/opt/software/lib/python2.7/site-packages/Django-1.4.5-py2.7.egg/django/core/paginator.py",
>>  
>> line 64, in _get_num_pages
>>
>> self._num_pages = int(ceil(hits / float(self.per_page)))
>>
>> ZeroDivisionError: float division by zero
>>
>>  
>>
>> I've not encountered this issue before, is something missing?
>>
>>
>> Thanks,
>>
>> Varun
>>
>>  -- 
>> Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
>> ---
>> Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
>> ---
>> Happy user? Let us know at http://www.reviewboard.org/users/
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "reviewboard" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to reviewboard...@googlegroups.com .
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>

-- 
Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
---
Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
---
Happy user? Let us know at http://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Review Board Error: float division by zero

2013-10-03 Thread Christian Hammond
Hi Varun,

I've never seen this before either. Can you go into your Admin UI -> Diff
Viewer settings and make sure that Paginate By is not 0?

Christian

-- 
Christian Hammond - chip...@chipx86.com
Review Board - http://www.reviewboard.org
Beanbag, Inc. - http://www.beanbaginc.com


On Thu, Oct 3, 2013 at 12:04 AM, Varun Jain wrote:

> Hi Team,
>
> When I click on "show all files changed" for script review, I get
> following error:
>
> float division by zero
>
>
>
> Traceback (most recent call last):
>
>   File
> "/opt/software/lib/python2.7/site-packages/ReviewBoard-1.7.7.1-py2.7.egg/reviewboard/diffviewer/views.py",
> line 226, in view_diff
>
> page = paginator.page(page_num)
>
>   File
> "/opt/software/lib/python2.7/site-packages/Django-1.4.5-py2.7.egg/django/core/paginator.py",
> line 37, in page
>
> number = self.validate_number(number)
>
>   File
> "/opt/software/lib/python2.7/site-packages/Django-1.4.5-py2.7.egg/django/core/paginator.py",
> line 28, in validate_number
>
> if number > self.num_pages:
>
>   File
> "/opt/software/lib/python2.7/site-packages/Django-1.4.5-py2.7.egg/django/core/paginator.py",
> line 64, in _get_num_pages
>
> self._num_pages = int(ceil(hits / float(self.per_page)))
>
> ZeroDivisionError: float division by zero
>
>
>
> I've not encountered this issue before, is something missing?
>
>
> Thanks,
>
> Varun
>
>  --
> Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
> ---
> Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
> ---
> Happy user? Let us know at http://www.reviewboard.org/users/
> ---
> You received this message because you are subscribed to the Google Groups
> "reviewboard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to reviewboard+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
---
Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
---
Happy user? Let us know at http://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Review Board Error: float division by zero

2013-10-03 Thread Varun Jain
Hi Team,

When I click on "show all files changed" for script review, I get following 
error:

float division by zero

 

Traceback (most recent call last):

  File 
"/opt/software/lib/python2.7/site-packages/ReviewBoard-1.7.7.1-py2.7.egg/reviewboard/diffviewer/views.py",
 
line 226, in view_diff

page = paginator.page(page_num)

  File 
"/opt/software/lib/python2.7/site-packages/Django-1.4.5-py2.7.egg/django/core/paginator.py",
 
line 37, in page

number = self.validate_number(number)

  File 
"/opt/software/lib/python2.7/site-packages/Django-1.4.5-py2.7.egg/django/core/paginator.py",
 
line 28, in validate_number

if number > self.num_pages:

  File 
"/opt/software/lib/python2.7/site-packages/Django-1.4.5-py2.7.egg/django/core/paginator.py",
 
line 64, in _get_num_pages

self._num_pages = int(ceil(hits / float(self.per_page)))

ZeroDivisionError: float division by zero

 

I've not encountered this issue before, is something missing?


Thanks,

Varun

-- 
Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
---
Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
---
Happy user? Let us know at http://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.