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

Failing to run -- divide by zero error #17

Closed
1bigpig opened this issue Apr 24, 2015 · 2 comments
Closed

Failing to run -- divide by zero error #17

1bigpig opened this issue Apr 24, 2015 · 2 comments

Comments

@1bigpig
Copy link

1bigpig commented Apr 24, 2015

I am sure I am doing something wrong but when I try to start bCNC, I am getting this error:

pi@raspberrypi ~/Downloads/bCNC-master $ ./bCNC
Traceback (most recent call last):
File "./bCNC.py", line 3540, in
application = Application(tk)
File "./bCNC.py", line 794, in init
self.probeChange()
File "./bCNC.py", line 3080, in probeChange
self.probeXstep["text"] = "%.5g"%(probe.xstep())
File "/home/pi/Downloads/bCNC-master/CNC.py", line 143, in xstep
self._xstep = (self.xmax-self.xmin)/float(self.xn-1)
ZeroDivisionError: float division by zero
[1]+ Killed ./bCNC
pi@raspberrypi ~/Downloads/bCNC-master $

Any ideas? It use to run and the only thing that I can think of, is I updated opengl to try to get Universal G-Code Sender to show the visualizer...

Bruce

@vlachoudis
Copy link
Owner

You have used 1 step in the x-probing grid with a result of a division by zero.
I've just updated the code to protect for this situation
Can you download the new svn and test

@1bigpig
Copy link
Author

1bigpig commented Apr 24, 2015

That fixed it. Thanks!!!

I have some other questions about program, but I need to organize them and I will post them up in a separate section.

Thanks for fixing it so quickly!
Bruce

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