# Compas\_singular grasshopper component error - installation problems

**URL:** https://forum.compas-framework.org/t/compas-singular-grasshopper-component-error-installation-problems/535
**Category:** compas\_rhino
**Created:** [November 25, 2021, 3:27pm UTC](https://forum.compas-framework.org/t/compas-singular-grasshopper-component-error-installation-problems/535 "2021-11-25T15:27:02Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![jsal](https://avatars.discourse-cdn.com/v4/letter/j/a9adbd/32.png) [@jsal](https://forum.compas-framework.org/u/jsal)
#### Post date: [November 25, 2021, 3:27pm UTC](https://forum.compas-framework.org/t/compas-singular-grasshopper-component-error-installation-problems/535/1 "2021-11-25T15:27:02Z")

</div>

Hi all, total noob here, apologies for possible misconceptions and overall lack of understanding in advance.

After following installation steps for conda, compas and installing compas\_singular, and successfully installing the latest versions of all of them, I wanted to load some of the grasshopper examples on github to see how they work.

Unfortunately, when I load the definition I get an error “1. Solution exception:cannot import surface\_discrete\_mapping from compas\_singular.algorithms” - (see screenshot)

 ![ErrorMsg](https://us1.discourse-cdn.com/flex015/uploads/compas_framework1/original/1X/4246df203d0121a674c1dcb9d83a21a5cceb7ff1.png)

Following the error message I tried to look for the surface\_discrete\_mapping algorithm and it really seems it is missing, although I can see it clearly referenced in the grasshopper.py code I cannot find where it was defined while for all the other algorithms used (boundary\_triangulation, Skeleton and SkeletonDecompostion) I can. Im not sure if this is an issue regarding improper installation or with the code itself. No clue on what to do next either.

I would appreciate any suggestions on how to solve this error.

---

<div class="post-metadata">

### Author: ![tomvanmele](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.compas-framework.org/tomvanmele/32/13_2.png) [@tomvanmele](https://forum.compas-framework.org/u/tomvanmele)
#### Post date: [November 26, 2021, 7:50am UTC](https://forum.compas-framework.org/t/compas-singular-grasshopper-component-error-installation-problems/535/2 "2021-11-26T07:50:39Z")

</div>

hi,

i am not the author of `compas_singular` so i can’t say for sure, but perhaps if you give me a bit more details about the installation of `compas_singular` i can try to help.

how did you install `compas_singular`, and which version?

does `compas_singular` work for other examples, or does it not work at all?

tom

---

<div class="post-metadata">

### Author: ![jsal](https://avatars.discourse-cdn.com/v4/letter/j/a9adbd/32.png) [@jsal](https://forum.compas-framework.org/u/jsal)
#### Post date: [November 28, 2021, 3:48pm UTC](https://forum.compas-framework.org/t/compas-singular-grasshopper-component-error-installation-problems/535/3 "2021-11-28T15:48:58Z")

</div>

Hello tom, sorry for the late reply.

1.) Installed compas\_singular following steps described here, the version installed is I guess the latest one

[https://blockresearchgroup.github.io/compas\_singular/latest/01\_getting\_started.html](https://blockresearchgroup.github.io/compas_singular/latest/01_getting_started.html)

2.) None of the grasshopper example definitions using compas\_singular work for me, always the same error message as in the first post

3.) following the error message from the first post, I saw that in grasshopper.py there is this importing of the “surface \_discrete\_mapping” function/method from compas\_singular.algorithms, I looked through the code and couldn’t find this function defined anywhere in compas\_singular. That kind of gives me the idea that it’s either missing or it’s differently named in definition than when called in code or perhaps it’s located somewhere else, but I’m a novice so not sure if this holds.

 ![code snipet](https://us1.discourse-cdn.com/flex015/uploads/compas_framework1/original/1X/70dd6b703b2254caaa349b7b6308107357923a1d.png)

Let me know if you need more details.
