Compas installing error

You had a typo when you added conda-forge the first time:

Try removing it first:

conda config --remove channels conda-foge

and then retry the installation.

thank you for your helping, I think it,s installed

1 Like

Yay! Looking good! :dancer:

Check the docs, this is a documented scenario:
https://compas.dev/compas/installation.html#microsoft-visual-c-build-tools-1

What happens is that you probably haven’t ever installed any build tools on that machine, so, you need a one-off install of Visual C++ stuff. (Actually, if you see inside the whole pile of error messages, this is what it says, it’s just a bit hard to read in the mess of text).

Thank you so much, I instaled build tools.
when I try to " pip install -e
the massage is that: -e option requires an argument

You can only use pip install to install from local disc. For that you have to download the repositories you want to install from BRGs gitbhub manually or use a client like Sourcetree or SmartGit. After downloading open conda prompt navigate to the folder of the downloaded repository via cd command and then you can use pip install -e . to install it.

For example, I downloaded Compas singular. So, How can I give navigation of this folder to aconda prompt? Is there any place for instruction, to follow?
9

“from compas_plotters.meshplotter import MeshPlotter” Also this comand doesnt work. I dont know from where I can install it.

Your normal path in command prompt is C:\Users\username There I have a folder named Code with the path C:\Users\username\Code and my compas_singular folder is at C:\Users\username\Code\compas_singular.

To navigate there I type cd Code/compas_singular. Check how the change directory cd command works e.g. here: https://www.digitalcitizen.life/command-prompt-how-use-basic-commands

Regarding the mesh plotter, I’m not sure, a lot of the artists (maybe also plotters?) work only directly in rhino python - but I might be wrong. The script you copied is ment for rhino python, most examples in the gitbook are.
For examples of compas_singular in gh go to compas_/singular/examples/grasshopper, there are some gh example files and user objects you can use.


Thank you. I did this process, But PIP install -e . dont work again.

I guess the best explanation for manual installation of compas packages is the rv2 gitbook: https://blockresearchgroup.gitbook.io/rv2/documentation/dev-install It also shows how to pip install it directly from github without manual download

Regarding your screencap: Did you download the master branch of compas singular (and if you downloaded manually unpacked it)? The content of the folder should look sth like this and there you also see the setup.py pip needs to install the package

Additionally (don’t know if this is mentioned in the compas singular gitbook) you need to make every compas package aviable in rhino e.g. python -m compas_rhino.install -p compas_singular compas_skeleton compas_triangle compas_tna (you can just list the packages after the initial command).


Hi, Be cause of some problem in using compass , I reinstalled my windows again. But for installing compass, I have problem again. I havnt anaconda prompt. I just have prompt command. Is it necessary to install? which plugin?

C:\Users\Mohammadreza>conda config --add channels conda-forge
‘conda’ is not recognized as an internal or external command,
operable program or batch file.

judging from the previous screenshot, you are using the regular Command Prompt. please use the Anaconda Prompt for all conda related stuff…

1 Like

Thank you, It solved, another problem. we have to install some plugins such as compass triangle on the environment we build? or where we have to install? because with pip it give an error.

the error says you don’t have git installed on your system. you can install git in your conda environment using

conda install git
1 Like

by the way, and for what it’s worth, you don’t HAVE TO install anything other than the main COMPAS library if you don’t need it. all of the other packages are plugins and/or extensions; they add more functionality that might be useful for some applications, but they are not required for a base installation.

for example, compas_triangle provides functionality for constrained delaunay triangulations. i fyou don’t need those, don’t install compas_triangle.

if i understand correctly, you were having problems setting up a base installation. someone then pointed you to the RV2 installation instructions since they are a bit more verbose than the base COMPAS ones. although that is entirely correct, do note that those instructions are for a “dev install” for RV2 specifically and many of the requirements listed there are only needed for RV2.

1 Like

I wanted to work on some form finding with patterns, so I thought that compass singular and compass triangles could be helpful.