# Bad\_alloc error in import open3d

**URL:** <https://discourse.slicer.org/t/bad-alloc-error-in-import-open3d/20199>\
**Category:** Support\
**Created:** [October 18, 2021, 4:43am UTC](https://discourse.slicer.org/t/bad-alloc-error-in-import-open3d/20199 "2021-10-18T04:43:54Z")\
**Posts on this page:** 6\
**Page:** 2

<div class="post-metadata">

**Author:** ![jamesobutler](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jamesobutler/32/7511_2.png) [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)\
**Post date:** [October 27, 2021, 10:32pm UTC](https://discourse.slicer.org/t/bad-alloc-error-in-import-open3d/20199/21 "2021-10-27T22:32:22Z")

</div>

Yes, should be able to specify the whl directly.

This worked for me to install this package

```python
slicer.util.pip_install(r"C:\Users\JamesButler\Downloads\pycodestyle-2.8.0-py2.py3-none-any.whl")

```

---

<div class="post-metadata">

**Author:** ![jamesobutler](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jamesobutler/32/7511_2.png) [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)\
**Post date:** [November 4, 2021, 9:57am UTC](https://discourse.slicer.org/t/bad-alloc-error-in-import-open3d/20199/22 "2021-11-04T09:57:35Z")

</div>

@muratmaga How did the manual whl building go to resolve your issue here?

---

<div class="post-metadata">

**Author:** ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)\
**Post date:** [November 4, 2021, 10:59pm UTC](https://discourse.slicer.org/t/bad-alloc-error-in-import-open3d/20199/23 "2021-11-04T22:59:59Z")

</div>

I think it could have worked, if I managed to build open3d 0.10. I can build 0.13 (which doesn’t help us), and install, but unfortunately 0.10 doesn’t seem to work with provided instructions (some external library install is failing).

---

<div class="post-metadata">

**Author:** ![jamesobutler](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jamesobutler/32/7511_2.png) [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)\
**Post date:** [November 5, 2021, 12:17am UTC](https://discourse.slicer.org/t/bad-alloc-error-in-import-open3d/20199/24 "2021-11-05T00:17:08Z")

</div>

Can you remind me why you’re unable to update to using the latest version of Open3D?

As a package that includes a large amount of external dependencies, even though you may be specifying a specific version it may not always have the same dependencies.

---

<div class="post-metadata">

**Author:** ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)\
**Post date:** [November 5, 2021, 12:52am UTC](https://discourse.slicer.org/t/bad-alloc-error-in-import-open3d/20199/25 "2021-11-05T00:52:42Z")

</div>

Because almost at every version, they change their API in ways that breaks our functionality. We don’t have the bandwidth to keep updating every 3-4 months. So we are looking in find a way to wean ourselves. Feel free to make comments/suggestion on this thread.

> **[VTK point cloud and mesh filters for downsampling, registration, ICP transform](https://discourse.vtk.org/t/vtk-point-cloud-and-mesh-filters-for-downsampling-registration-icp-transform/6974)**
>
> In the context of the SlicerMorph project (details below). We are looking to improving existing VTK filters or develop new ones. Question Following a suggestion of @will.schroeder , I am reaching out to understand which existing filters have been...

---

<div class="post-metadata">

**Author:** ![agporto](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/agporto/32/8319_2.png) [@agporto](https://discourse.slicer.org/u/agporto)\
**Post date:** [November 5, 2021, 4:56am UTC](https://discourse.slicer.org/t/bad-alloc-error-in-import-open3d/20199/26 "2021-11-05T04:56:16Z")

</div>

When trying to import individual components, I get a more informative error:

```
from open3d.cpu.pybind import (camera, geometry, io, pipelines, utility, t)

```

ImportError: generic\_type: cannot initialize type “VerbosityLevel”: an object with that name is already defined

I am wondering if that is somehow related to the Qt5 update since it also has a ‘VerbosityLevel’ definition

[Previous page](https://discourse.slicer.org/t/bad-alloc-error-in-import-open3d/20199.md?page=1)
