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

ImportError: cannot import name 'mesh_bounding_box' from 'compas.datastructures' #171

Open
Arom122 opened this issue Nov 6, 2024 · 2 comments

Comments

@Arom122
Copy link

Arom122 commented Nov 6, 2024

Hi, i can not run the tutorial after installation using following comand (python -m compas_slicer)
Traceback (most recent call last):
File "D:\compas_slicer-master\examples\1_planar_slicing_simple\example_1_planar_slicing_simple.py", line 5, in
import compas_slicer.utilities as utils
File "C:\Users\codefab\anaconda3\envs\my-project\lib\site-packages\compas_slicer_init_.py", line 64, in
from .slicers import * # noqa: F401 E402 F403
File "C:\Users\codefab\anaconda3\envs\my-project\lib\site-packages\compas_slicer\slicers_init_.py", line 35, in
from .base_slicer import * # noqa: F401 E402 F403
File "C:\Users\codefab\anaconda3\envs\my-project\lib\site-packages\compas_slicer\slicers\base_slicer.py", line 12, in
from compas.datastructures import mesh_bounding_box
ImportError: cannot import name 'mesh_bounding_box' from 'compas.datastructures' (C:\Users\codefab\anaconda3\envs\my-project\lib\site-packages\compas\datastructures_init_.py)

Desktop (please complete the following information):

  • OS: Win10 anaconda 3
@gigan5712
Copy link

gigan5712 commented Nov 8, 2024

same here..
When I create the virtual environment for compas_slicer using the conda-forge channel it takes
compas_slicer 0.6.1-pyhd8ed1ab_0
with
compas 2.6.1-pyhd8ed1ab_0

But according to environment.yml compass should be version 1.16.0
The error comes because compas.datastructures.volmesh_bounding_box was removed in compass 2.0.x.

Also Win10 and Anaconda 3

@Arom122
Copy link
Author

Arom122 commented Nov 21, 2024

Thank you! I will try compass 1.16.0. @gigan5712

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