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

incompatible numpy version? #1858

Open
TecDroiD opened this issue Nov 5, 2023 · 0 comments
Open

incompatible numpy version? #1858

TecDroiD opened this issue Nov 5, 2023 · 0 comments

Comments

@TecDroiD
Copy link

TecDroiD commented Nov 5, 2023

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..

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