# Error running planarize\_quads.py of compas\_libigl

**URL:** <https://forum.compas-framework.org/t/error-running-planarize-quads-py-of-compas-libigl/285>\
**Category:** Uncategorized\
**Created:** [December 11, 2019, 4:19pm UTC](https://forum.compas-framework.org/t/error-running-planarize-quads-py-of-compas-libigl/285 "2019-12-11T16:19:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sercan](https://avatars.discourse-cdn.com/v4/letter/s/848f3c/32.png) [@sercan](https://forum.compas-framework.org/u/sercan)\
**Post date:** [December 11, 2019, 4:19pm UTC](https://forum.compas-framework.org/t/error-running-planarize-quads-py-of-compas-libigl/285/1 "2019-12-11T16:19:40Z")

</div>

Having the error:

> Traceback (most recent call last):  
> File “c:/Users/sercan/Documents/GitHub/compas-dev/packages/compas\_libigl/scripts/planarize\_quads.py”, line 4, in   
> from compas.datastructures import Mesh  
> File “c:\users\sercan\documents\github\compas-dev\compas\src\compas\datastructures\__init_\_.py”, line 185, in   
> from .mesh import \* # noqa: F401 F402 F403  
> File “c:\users\sercan\documents\github\compas-dev\compas\src\compas\datastructures\mesh\__init_\_.py”, line 42, in   
> from .planarisation import \* # noqa: F401 F403  
> ImportError: bad magic number in ‘compas.datastructures.mesh.planarisation’: b’\x03\xf3\r\n’

when trying to run the planarize\_quads.py (or actually any of the scripts).  
Any hints how to avoid this?  
Thanks!

---

<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:** [December 12, 2019, 8:05am UTC](https://forum.compas-framework.org/t/error-running-planarize-quads-py-of-compas-libigl/285/2 "2019-12-12T08:05:47Z")

</div>

have you built the package or are you trying to use it as is?

---

<div class="post-metadata">

**Author:** ![sercan](https://avatars.discourse-cdn.com/v4/letter/s/848f3c/32.png) [@sercan](https://forum.compas-framework.org/u/sercan)\
**Post date:** [February 29, 2020, 8:23pm UTC](https://forum.compas-framework.org/t/error-running-planarize-quads-py-of-compas-libigl/285/3 "2020-02-29T20:23:39Z")

</div>

Yes, I have built it now following the steps on readme.

Having this error now:

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

---

<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:** [March 11, 2020, 10:18pm UTC](https://forum.compas-framework.org/t/error-running-planarize-quads-py-of-compas-libigl/285/4 "2020-03-11T22:18:45Z")

</div>

there is a problem with the build of the boolean functions on windows because of the CGAL dependency. would you mind filing an issue about this? helps to remind us to take care of it…
