vlachoudis / bCNC

GRBL CNC command sender, autoleveler and g-code editor
GNU General Public License v2.0
1.54k stars 528 forks source link

incompatible numpy version? #1858

Open TecDroiD opened 8 months ago

TecDroiD commented 8 months ago

when I try to import an stl file I recently used on my 3d printer I get the following message on bCNC:

$ bCNC new-config bCNC <configparser.ConfigParser object at 0x7fa706f08ed0> G2Core loaded

:241: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. self.canvas.winfo_id(): 79691870 Not Loading 6 axis displays Not Loading 6 axis displays 1608 1608 1608 Traceback (most recent call last): File "/home/tecdroid/.local/lib/python3.11/site-packages/bCNC/Utils.py", line 533, in __call__ return self.func(*args) ^^^^^^^^^^^^^^^^ File "/home/tecdroid/.local/lib/python3.11/site-packages/bCNC/ToolsPage.py", line 1981, in execute self.tools.getActive().execute(self.app) File "/home/tecdroid/.local/lib/python3.11/site-packages/bCNC/plugins/slicemesh.py", line 131, in execute verts, faces = self.loadMesh(file) ^^^^^^^^^^^^^^^^^^^ File "/home/tecdroid/.local/lib/python3.11/site-packages/bCNC/plugins/slicemesh.py", line 195, in loadMesh verts, faces = self.load_stl(file) ^^^^^^^^^^^^^^^^^^^ File "/home/tecdroid/.local/lib/python3.11/site-packages/bCNC/plugins/slicemesh.py", line 342, in load_stl verts, faces = self.merge_close_vertices(verts, faces) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/tecdroid/.local/lib/python3.11/site-packages/bCNC/plugins/slicemesh.py", line 311, in merge_close_vertices old2new = np.zeros(D.shape[0], dtype=np.int) ^^^^^^ File "/usr/lib/python3/dist-packages/numpy/__init__.py", line 305, in __getattr__ raise AttributeError(__former_attrs__[attr]) AttributeError: module 'numpy' has no attribute 'int'. `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations

... and nothing happens- means, the mesh didn't load.

I use debian 12 and tried the stock version (1.0.14.218 I think) and the current version I can get via pip..