BlockResearchGroup / compas_assembly

Assembly data structures for the COMPAS framework.
https://blockresearchgroup.github.io/compas_assembly
MIT License
9 stars 17 forks source link

Rhino 6 - Message: cannot import convex_hull_numpy from compas.geometry #2

Closed yck011522 closed 5 years ago

yck011522 commented 5 years ago

Describe the bug I made a fresh install of compas and compas_assembly using Anaconda Prompt (Admin Mode)

conda create -n compas_assembly python=3.7 COMPAS shapely
conda actiavte compas_assembly
pip install git+https://github.com/BlockResearchGroup/compas_assembly.git

python -m compas_rhino.install -v 6.0
python -m compas_rhino.install -p compas_assembly

To verify it, I go into python (Python 3.7.3 | packaged by conda-forge | (default, Jul 1 2019, 22:01:29) [MSC v.1900 64 bit (AMD64)] :: Anaconda, Inc. on win32). Type in the following line:

from compas_assembly.datastructures import Assembly

No error.

However, when using the same line from Rhino, the following error appeared:

Message: cannot import convex_hull_numpy from compas.geometry

To Reproduce Steps to reproduce the behavior:

  1. Win 10 64bit. Rhino 6 SR16
  2. Sample script
  3. Sample data
  4. See error

Message: cannot import convex_hull_numpy from compas.geometry

Traceback: line 5, in , "C:\Users\leungp\AppData\Roaming\McNeel\Rhinoceros\6.0\Plug-ins\IronPython (814d908a-e25c-493d-97e9-ee3861957f49)\settings\lib\compas_assembly\datastructures\hull_numpy.py" line 60, in , "C:\Users\leungp\AppData\Roaming\McNeel\Rhinoceros\6.0\Plug-ins\IronPython (814d908a-e25c-493d-97e9-ee3861957f49)\settings\lib\compas_assembly\datastructures__init__.py" line 18, in , "G:\01_Projekte\270_PhD_SpatialTimberStructures\03_Design\20190716 YiJiang Integration\TestScript.py"

Expected behavior No error

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

tomvanmele commented 5 years ago

yes that makes sense. there have been some changes in the way compas makes numpy-dependent functionality available and that triggered an error when importing convex_hull_numpy in Rhino. try updating compas_assembly to 0.1.8 and let me know what happens.

tomvanmele commented 5 years ago

have done a few more updates. latest version is 0.2.1...

yck011522 commented 5 years ago

Hi Tom, Thanks for the speedy update. Now it all works.