# BoneTexture extension Attribute error

**URL:** <https://discourse.slicer.org/t/bonetexture-extension-attribute-error/32863>\
**Category:** Support\
**Created:** [November 16, 2023, 4:00pm UTC](https://discourse.slicer.org/t/bonetexture-extension-attribute-error/32863 "2023-11-16T16:00:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![thangngoc89](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/thangngoc89/32/68328_2.png) [@thangngoc89](https://discourse.slicer.org/u/thangngoc89)\
**Post date:** [November 16, 2023, 4:00pm UTC](https://discourse.slicer.org/t/bonetexture-extension-attribute-error/32863/1 "2023-11-16T16:00:10Z")

</div>

I encountered an error with BoneTexture module, it’s probably because it wasn’t updated with the latest code changes from 3D Slicer.

As soon as I load the BoneTexture module, an error was thrown in the console and none of the function would work.

```auto
Traceback (most recent call last):

File "/Applications/Slicer.app/Contents/Extensions-31938/BoneTextureExtension/lib/Slicer-5.4/qt-scripted-modules/BoneTexture.py", line 155, in setup

self.vectorToScalarVolumeConversionWidget = VectorToScalarVolume.VectorToScalarVolumeConversionMethodWidget()

AttributeError: module 'VectorToScalarVolume' has no attribute 'VectorToScalarVolumeConversionMethodWidget'

```

I’ve looked around the commit history of Slicer and `VectorToScalarVolumeConversionMethodWidget` was removed in [this commit in 2022](https://github.com/Slicer/Slicer/commit/41adaa558f44e2cbe5d06053fd7b79b473e431e0#diff-9644ea9d931812f2dca3ce5c4ed35b5e15dc1518ea63de8b3967908a324d8379L162)

I’ve tested this on Windows, MacOS (M2) and Linux, it’s throwing the same error.  
I’ve tested this multiple stable releases from latest preview (5.5.0-2023-11-14) to 5.0.2.  
The last working 3D Slicer version for this extension is 5.0.3.

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [November 16, 2023, 6:55pm UTC](https://discourse.slicer.org/t/bonetexture-extension-attribute-error/32863/2 "2023-11-16T18:55:40Z")

</div>

You can report this at the BoneTexture repository:

> **[Issues · Kitware/BoneTextureExtension](https://github.com/Kitware/BoneTextureExtension/issues)**
>
> Slicer extensions for computing feature maps of N-Dimensional images using well-known texture analysis methods. - Issues · Kitware/BoneTextureExtension

Even better, maybe you an propose a fix.

---

<div class="post-metadata">

**Author:** ![thangngoc89](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/thangngoc89/32/68328_2.png) [@thangngoc89](https://discourse.slicer.org/u/thangngoc89)\
**Post date:** [November 16, 2023, 7:18pm UTC](https://discourse.slicer.org/t/bonetexture-extension-attribute-error/32863/3 "2023-11-16T19:18:30Z")

</div>

Thank you for your reply. I’ve tried to take a look at the code but due to my unfamiliarity with Slicer’s internals, I have no ideas how to fix it or where to even start. I will create an issue in the extension’s issues tracker
