Compas installation error

Hi,

I have installed Compas-dev and Compas-fofin following
https://compas-dev.github.io/main/gettingstarted/installation.html
https://blockresearchgroup.github.io/compas_fofin/gettingstarted.html#

The installation process of both went on smoothly, but when I tried to run examples such as shortestpath_plot, dynamicrelaxation_live, etc., errors began to show up.

Looking forward to your suggestions and thank you so much for the help!

Best regards
Yige

hi,
those examples don’t work in rhino because they use matplotlib in the background and that package is not available for ironpython, which is the version of python embedded in rhino.
the plotters provide basic 2d visualisation that can be used outside of CAD environments for generating images or during prototyping of algorithms.
just run them from vscode or any other editor you like using, but not the pythonscript editor inside rhino.
let me know if you need more help…

Hi,

Thanks for your timely reply, those examples work well in vscode! But back in rhino, when directly using fofin function, it shows error again…Can you please give some advice?

Thank you!
Best regards
Yige

can you give me a bit more info about what you are doing? it is a bit difficult to decipher from the screenshots…
also, did you install COMPAS from source or from a released version?

Hi,
I was trying form-finding analysis for a fabric formwork.I initiated FOFIN in Rhino, typed FOFIN_from, selected from_mesh option, then selected a mesh, but as soon as I selected a mesh, an erorr message showed up, saying “cannot import _PrimitiveArtist”. Then I pressed “OK” button, and typed FOFIN_from again, a message appeared, saying “cablenet”…

As for COMPAS installation, I followed instructions on https://compas-dev.github.io/main/gettingstarted/installation.html.
I tried to installed COMPAS in both base environment and compas-dev environment. And here is a screenshot showing the installation process.

Thank you so much for looking after this issue! I have been trying sometime to solve this problem on my own, but still cannot figure out where went wrong…

Best Regards
Yige

I also verified the installation, everything seems fine…

hi,
there seems to be a bug in release 0.13.1 in the imports of the artists in compas_rhino. it is an easy fix so i will release a new version later today. updating COMPAS to that version should solve the issue.
will notify here in a post as soon as it is ready…

hi,
as far as i can tell the problem should be solved.
just update COMPAS to 0.13.2 and compas_fofin to the latest source release.
let me know if you still have problems…

and if you don’t :slight_smile:

Hi! Very sorry for my late reply, I have to finish some physical tests at the end of semester and I just get some time to focus on the software issue.

I removed previous compas-dev environment and the compas package in base environment, and installed the compas 0.13.2, yet, while verifying in Grasshopper, a URL Error showed up as in the uploaded picture.

Thank you so much for your kind help!

Best Regards
Yige

Hi,
I have tried another computer to install compas and compas fofin, and they are all functioning successfully! So maybe it is something wrong with my own computer since I am running windows on a mac? Sorry for occupying so much time of yours, maybe it’s time to change my computer…

Another question, how can I install compas_ags? I typed “pip install compas_ags” and it shows"cannot find a version that satisefies the requirement" as in the uploaded picture…

Best regards
Yige