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

Initial bounds entry stays selected in tasks tab components box even after it's deleted. #178

Open
charlieb opened this issue Oct 28, 2020 · 0 comments

Comments

@charlieb
Copy link

I had deleted and recreated the bounds in the UI a couple of times to get it to actually fit the model. When I try to generate a toolpath I get the following:

Failed to find item in collection (CollectionName.BOUNDS): None (expected: ['f13664e3f09b423cb0cdf3c452c971d9'])
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/pycam-0.7.0_pre0.588.g4687f2f6-py3.8.egg/pycam/Plugins/init.py", line 178, in
result = lambda *args: self.core.emit_event(func, *params)
File "/usr/lib/python3.8/site-packages/pycam-0.7.0_pre0.588.g4687f2f6-py3.8.egg/pycam/Utils/events.py", line 136, in emit_event
handler()
File "/usr/lib/python3.8/site-packages/pycam-0.7.0_pre0.588.g4687f2f6-py3.8.egg/pycam/Plugins/ToolpathGrid.py", line 69, in _update_widgets
x_dim, y_dim = self._get_toolpaths_dim(toolpaths)
File "/usr/lib/python3.8/site-packages/pycam-0.7.0_pre0.588.g4687f2f6-py3.8.egg/pycam/Plugins/ToolpathGrid.py", line 56, in _get_toolpaths_dim
paths = [path for path in (tp.get_toolpath() for tp in toolpaths) if path]
File "/usr/lib/python3.8/site-packages/pycam-0.7.0_pre0.588.g4687f2f6-py3.8.egg/pycam/Plugins/ToolpathGrid.py", line 56, in
paths = [path for path in (tp.get_toolpath() for tp in toolpaths) if path]
File "/usr/lib/python3.8/site-packages/pycam-0.7.0_pre0.588.g4687f2f6-py3.8.egg/pycam/Plugins/ToolpathGrid.py", line 56, in
paths = [path for path in (tp.get_toolpath() for tp in toolpaths) if path]
File "/usr/lib/python3.8/site-packages/pycam-0.7.0_pre0.588.g4687f2f6-py3.8.egg/pycam/workspace/data_models.py", line 292, in wrapped
return self.get_cached(inst, args, kwargs, calc_function)
File "/usr/lib/python3.8/site-packages/pycam-0.7.0_pre0.588.g4687f2f6-py3.8.egg/pycam/workspace/data_models.py", line 347, in get_cached
cache_item = CacheItem(time.time(), calc_function(inst, *args, **kwargs))
File "/usr/lib/python3.8/site-packages/pycam-0.7.0_pre0.588.g4687f2f6-py3.8.egg/pycam/workspace/data_models.py", line 237, in inner_function
result = func(self, *args, **kwargs)
File "/usr/lib/python3.8/site-packages/pycam-0.7.0_pre0.588.g4687f2f6-py3.8.egg/pycam/workspace/data_models.py", line 1465, in get_toolpath
toolpath = task.generate_toolpath()
File "/usr/lib/python3.8/site-packages/pycam-0.7.0_pre0.588.g4687f2f6-py3.8.egg/pycam/workspace/data_models.py", line 292, in wrapped
return self.get_cached(inst, args, kwargs, calc_function)
File "/usr/lib/python3.8/site-packages/pycam-0.7.0_pre0.588.g4687f2f6-py3.8.egg/pycam/workspace/data_models.py", line 347, in get_cached
cache_item = CacheItem(time.time(), calc_function(inst, *args, **kwargs))
File "/usr/lib/python3.8/site-packages/pycam-0.7.0_pre0.588.g4687f2f6-py3.8.egg/pycam/workspace/data_models.py", line 237, in inner_function
result = func(self, *args, **kwargs)
File "/usr/lib/python3.8/site-packages/pycam-0.7.0_pre0.588.g4687f2f6-py3.8.egg/pycam/workspace/data_models.py", line 1330, in generate_toolpath
box = bounds.get_absolute_limits(tool_radius=tool.radius,
AttributeError: 'NoneType' object has no attribute 'get_absolute_limits'

An unexpected exception occurred: please send the text below to the developers of PyCAM. Thanks a lot!
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/pycam-0.7.0_pre0.588.g4687f2f6-py3.8.egg/pycam/Plugins/Tasks.py", line 261, in generate_toolpath
if new_toolpath.get_toolpath() is None:
File "/usr/lib/python3.8/site-packages/pycam-0.7.0_pre0.588.g4687f2f6-py3.8.egg/pycam/workspace/data_models.py", line 292, in wrapped
return self.get_cached(inst, args, kwargs, calc_function)
File "/usr/lib/python3.8/site-packages/pycam-0.7.0_pre0.588.g4687f2f6-py3.8.egg/pycam/workspace/data_models.py", line 347, in get_cached
cache_item = CacheItem(time.time(), calc_function(inst, *args, **kwargs))
File "/usr/lib/python3.8/site-packages/pycam-0.7.0_pre0.588.g4687f2f6-py3.8.egg/pycam/workspace/data_models.py", line 237, in inner_function
result = func(self, *args, **kwargs)
File "/usr/lib/python3.8/site-packages/pycam-0.7.0_pre0.588.g4687f2f6-py3.8.egg/pycam/workspace/data_models.py", line 1465, in get_toolpath
toolpath = task.generate_toolpath()
File "/usr/lib/python3.8/site-packages/pycam-0.7.0_pre0.588.g4687f2f6-py3.8.egg/pycam/workspace/data_models.py", line 292, in wrapped
return self.get_cached(inst, args, kwargs, calc_function)
File "/usr/lib/python3.8/site-packages/pycam-0.7.0_pre0.588.g4687f2f6-py3.8.egg/pycam/workspace/data_models.py", line 347, in get_cached
cache_item = CacheItem(time.time(), calc_function(inst, *args, **kwargs))
File "/usr/lib/python3.8/site-packages/pycam-0.7.0_pre0.588.g4687f2f6-py3.8.egg/pycam/workspace/data_models.py", line 237, in inner_function
result = func(self, *args, **kwargs)
File "/usr/lib/python3.8/site-packages/pycam-0.7.0_pre0.588.g4687f2f6-py3.8.egg/pycam/workspace/data_models.py", line 1330, in generate_toolpath
box = bounds.get_absolute_limits(tool_radius=tool.radius,
AttributeError: 'NoneType' object has no attribute 'get_absolute_limits'

@charlieb charlieb changed the title Crash in toolpath generation: Failed to find item in collection (CollectionName.BOUNDS): None Initial bounds entry stays selected in tasks tab components box even after it's deleted. Oct 29, 2020
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

1 participant