# Hair card generator error

**URL:** <https://forums.unrealengine.com/t/hair-card-generator-error/2567348>\
**Category:** Tutorial & Course Discussions\
**Tags:** unreal-engine, crash, question, metahuman\
**Created:** [June 20, 2025, 6:39am UTC](https://forums.unrealengine.com/t/hair-card-generator-error/2567348 "2025-06-20T06:39:13Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![shinorochi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@shinorochi](https://forums.unrealengine.com/u/shinorochi)\
**Post date:** [June 20, 2025, 6:39am UTC](https://forums.unrealengine.com/t/hair-card-generator-error/2567348/1 "2025-06-20T06:39:13Z")

</div>

got an error when generating haircard from my custom groom hair in UE5.6 (i did try with default metahuman hair and didn’t work either) here logs

LogScript: Error: Script Msg: Traceback (most recent call last):  
File “E:\Epic/UE\_5.6/Engine/Plugins/Experimental/HairCardGenerator/Content/Python\CardUEInterop\__init_\_.py”, line 23, in get\_points\_per\_curve  
self._init\_wrapped\_controller()  
File "E:\Epic/UE\_5.6/Engine/Plugins/Experimental/HairCardGenerator/Content/Python\CardUEInterop\_init_.py", line 12, in _init\_wrapped\_controller  
from .ue\_card\_gen\_controller import HairCardGenController  
File “E:\Epic/UE\_5.6/Engine/Plugins/Experimental/HairCardGenerator/Content/Python\CardUEInterop\ue\_card\_gen\_controller.py”, line 10, in   
from Modules.Geometry.cluster import ClumpGenerator  
File "E:\Epic/UE\_5.6/Engine/Plugins/Experimental/HairCardGenerator/Content/Python\Modules\Geometry\_init_.py", line 12, in   
from .optim import GeometryOptimizer  
File “E:\Epic/UE\_5.6/Engine/Plugins/Experimental/HairCardGenerator/Content/Python\Modules\Geometry\optim\__init_\_.py”, line 11, in   
from .haircard import HairCard  
File “E:\Epic/UE\_5.6/Engine/Plugins/Experimental/HairCardGenerator/Content/Python\Modules\Geometry\optim\haircard.py”, line 16, in   
from base import FrameworkClass  
File “E:\Epic/UE\_5.6/Engine/Plugins/Experimental/HairCardGenerator/Content/Python\base\__init_\_.py”, line 15, in   
from .base\_txt\_atlas import TxtAtlas  
File “E:\Epic/UE\_5.6/Engine/Plugins/Experimental/HairCardGenerator/Content/Python\base\base\_txt\_atlas.py”, line 16, in   
from utils import Metadata  
File “E:\Epic/UE\_5.6/Engine/Plugins/Experimental/HairCardGenerator/Content/Python\utils\__init_\_.py”, line 11, in   
from .config import config  
File “E:\Epic/UE\_5.6/Engine/Plugins/Experimental/HairCardGenerator/Content/Python\utils\config.py”, line 15, in   
from addict import Dict  
ModuleNotFoundError: No module named ‘addict’  
LogScript: Error: Script call stack:  
/HairCardGenerator/Python/CardUEInterop/_init\_\_\_PY.HairCardGenForwardingController.GetPointsPerCurve  
LogHairCardGenerator: Warning: Groom description has no physics group info, may not generate correctly  
LogHairCardGenerator: Warning: Invalid strand curve specification, treating as linear  
LogScript: Error: Script Msg: Traceback (most recent call last):  
File "E:\Epic/UE\_5.6/Engine/Plugins/Experimental/HairCardGenerator/Content/Python\CardUEInterop\_init.py", line 28, in load\_groom\_data  
self.init\_wrapped\_controller()  
File "E:\Epic/UE\_5.6/Engine/Plugins/Experimental/HairCardGenerator/Content/Python\CardUEInterop\_init.py", line 12, in init\_wrapped\_controller  
from .ue\_card\_gen\_controller import HairCardGenController  
File “E:\Epic/UE\_5.6/Engine/Plugins/Experimental/HairCardGenerator/Content/Python\CardUEInterop\ue\_card\_gen\_controller.py”, line 10, in   
from Modules.Geometry.cluster import ClumpGenerator  
File "E:\Epic/UE\_5.6/Engine/Plugins/Experimental/HairCardGenerator/Content/Python\Modules\Geometry\_init.py", line 12, in   
from .optim import GeometryOptimizer  
File "E:\Epic/UE\_5.6/Engine/Plugins/Experimental/HairCardGenerator/Content/Python\Modules\Geometry\optim\_init_.py", line 11, in   
from .haircard import HairCard  
File “E:\Epic/UE\_5.6/Engine/Plugins/Experimental/HairCardGenerator/Content/Python\Modules\Geometry\optim\haircard.py”, line 16, in   
from base import FrameworkClass  
File “E:\Epic/UE\_5.6/Engine/Plugins/Experimental/HairCardGenerator/Content/Python\base\__init_\_.py”, line 15, in   
from .base\_txt\_atlas import TxtAtlas  
File “E:\Epic/UE\_5.6/Engine/Plugins/Experimental/HairCardGenerator/Content/Python\base\base\_txt\_atlas.py”, line 16, in   
from utils import Metadata  
File “E:\Epic/UE\_5.6/Engine/Plugins/Experimental/HairCardGenerator/Content/Python\utils\__init_\_.py”, line 11, in   
from .config import config  
File “E:\Epic/UE\_5.6/Engine/Plugins/Experimental/HairCardGenerator/Content/Python\utils\config.py”, line 15, in   
from addict import Dict  
ModuleNotFoundError: No module named ‘addict’  
LogScript: Error: Script call stack:  
/HairCardGenerator/Python/CardUEInterop/\_\_init\_\_\_PY.HairCardGenForwardingController.LoadGroomData  
LogHairCardGenerator: Error: Failed to load groom asset. See log for details.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/3/e/13efb5bcdb024a2ed57a88d803c299d931b92ef5.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/6/3/d634eee1f6e3c065a5b9a5ca5ed0e9f8d28b427d.png)

---

<div class="post-metadata">

**Author:** ![basilwort5](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@basilwort5](https://forums.unrealengine.com/u/basilwort5)\
**Post date:** [June 30, 2025, 1:47am UTC](https://forums.unrealengine.com/t/hair-card-generator-error/2567348/2 "2025-06-30T01:47:33Z")

</div>

Same for me. I installed addict in the HariCardGenerator plugin folder (C:\Program Files\Epic Games\UE\_5.6\Engine\Binaries\ThirdParty\Python3\Win64), but then it wants pytorch. So far I had to install these python packages:

numpy PyYAML scipy Pillow opencv-python addict

I am sure after I install torch, it will want another package. But I should not have to install these packages, it should find these packages because I have the Python Foundation Packages plugin installed. Frustrating.

---

<div class="post-metadata">

**Author:** ![Olobrando](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Olobrando](https://forums.unrealengine.com/u/Olobrando)\
**Post date:** [September 5, 2025, 2:03am UTC](https://forums.unrealengine.com/t/hair-card-generator-error/2567348/3 "2025-09-05T02:03:56Z")

</div>

Same here, Installing the packages manually leads to a crash when trying to generate cards. Any possible solution?

---

<div class="post-metadata">

**Author:** ![MiitsuOfficial](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MiitsuOfficial](https://forums.unrealengine.com/u/MiitsuOfficial)\
**Post date:** [September 19, 2025, 1:36pm UTC](https://forums.unrealengine.com/t/hair-card-generator-error/2567348/4 "2025-09-19T13:36:10Z")

</div>

I got this error…

LogTextureFormatOodle: Display: Oodle Texture loading DLL: oo2tex\_win64\_2.9.10.dll  
LogSlate: Window ‘Card Generation Settings’ being destroyed  
LogScript: Error: Script Msg: Traceback (most recent call last):  
File “E:\Epic Games/UE\_5.6/Engine/Plugins/Experimental/HairCardGenerator/Content/Python\CardUEInterop\__init_\_.py”, line 23, in get\_points\_per\_curve  
self._init\_wrapped\_controller()  
File "E:\Epic Games/UE\_5.6/Engine/Plugins/Experimental/HairCardGenerator/Content/Python\CardUEInterop\_init_.py", line 12, in _init\_wrapped\_controller  
from .ue\_card\_gen\_controller import HairCardGenController  
File “E:\Epic Games/UE\_5.6/Engine/Plugins/Experimental/HairCardGenerator/Content/Python\CardUEInterop\ue\_card\_gen\_controller.py”, line 10, in  
from Modules.Geometry.cluster import ClumpGenerator  
File "E:\Epic Games/UE\_5.6/Engine/Plugins/Experimental/HairCardGenerator/Content/Python\Modules\Geometry\_init_.py", line 12, in  
from .optim import GeometryOptimizer  
File “E:\Epic Games/UE\_5.6/Engine/Plugins/Experimental/HairCardGenerator/Content/Python\Modules\Geometry\optim\__init_\_.py”, line 11, in  
from .haircard import HairCard  
File “E:\Epic Games/UE\_5.6/Engine/Plugins/Experimental/HairCardGenerator/Content/Python\Modules\Geometry\optim\haircard.py”, line 16, in  
from base import FrameworkClass  
File “E:\Epic Games/UE\_5.6/Engine/Plugins/Experimental/HairCardGenerator/Content/Python\base\__init_\_.py”, line 15, in  
from .base\_txt\_atlas import TxtAtlas  
File “E:\Epic Games/UE\_5.6/Engine/Plugins/Experimental/HairCardGenerator/Content/Python\base\base\_txt\_atlas.py”, line 16, in  
from utils import Metadata  
File “E:\Epic Games/UE\_5.6/Engine/Plugins/Experimental/HairCardGenerator/Content/Python\utils\__init_\_.py”, line 11, in  
from .config import config  
File “E:\Epic Games/UE\_5.6/Engine/Plugins/Experimental/HairCardGenerator/Content/Python\utils\config.py”, line 14, in  
import yaml  
ModuleNotFoundError: No module named ‘yaml’  
LogScript: Error: Script call stack:  
/HairCardGenerator/Python/CardUEInterop/_init\_\_\_PY.HairCardGenForwardingController.GetPointsPerCurve  
LogScript: Error: Script Msg: Traceback (most recent call last):  
File "E:\Epic Games/UE\_5.6/Engine/Plugins/Experimental/HairCardGenerator/Content/Python\CardUEInterop\_init_.py", line 28, in load\_groom\_data  
self._init\_wrapped\_controller()  
File "E:\Epic Games/UE\_5.6/Engine/Plugins/Experimental/HairCardGenerator/Content/Python\CardUEInterop\_init_.py", line 12, in _init\_wrapped\_controller  
from .ue\_card\_gen\_controller import HairCardGenController  
File “E:\Epic Games/UE\_5.6/Engine/Plugins/Experimental/HairCardGenerator/Content/Python\CardUEInterop\ue\_card\_gen\_controller.py”, line 10, in  
from Modules.Geometry.cluster import ClumpGenerator  
File "E:\Epic Games/UE\_5.6/Engine/Plugins/Experimental/HairCardGenerator/Content/Python\Modules\Geometry\_init_.py", line 12, in  
from .optim import GeometryOptimizer  
File “E:\Epic Games/UE\_5.6/Engine/Plugins/Experimental/HairCardGenerator/Content/Python\Modules\Geometry\optim\__init_.py”, line 11, in  
from .haircard import HairCard  
File “E:\Epic Games/UE\_5.6/Engine/Plugins/Experimental/HairCardGenerator/Content/Python\Modules\Geometry\optim\haircard.py”, line 16, in  
from base import FrameworkClass  
File “E:\Epic Games/UE\_5.6/Engine/Plugins/Experimental/HairCardGenerator/Content/Python\base\__init_\_.py”, line 15, in  
from .base\_txt\_atlas import TxtAtlas  
File “E:\Epic Games/UE\_5.6/Engine/Plugins/Experimental/HairCardGenerator/Content/Python\base\base\_txt\_atlas.py”, line 16, in  
from utils import Metadata  
File “E:\Epic Games/UE\_5.6/Engine/Plugins/Experimental/HairCardGenerator/Content/Python\utils\__init_\_.py”, line 11, in  
from .config import config  
File “E:\Epic Games/UE\_5.6/Engine/Plugins/Experimental/HairCardGenerator/Content/Python\utils\config.py”, line 14, in  
import yaml  
ModuleNotFoundError: No module named ‘yaml’  
LogScript: Error: Script call stack:  
/HairCardGenerator/Python/CardUEInterop/\_\_init\_\_\_PY.HairCardGenForwardingController.LoadGroomData  
LogHairCardGenerator: Error: Failed to load groom asset. See log for details.

---

<div class="post-metadata">

**Author:** ![D.Wheeler90](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@D.Wheeler90](https://forums.unrealengine.com/u/D.Wheeler90)\
**Post date:** [September 26, 2025, 8:49pm UTC](https://forums.unrealengine.com/t/hair-card-generator-error/2567348/5 "2025-09-26T20:49:16Z")

</div>

This is still a problem - I think there is an issue with the plugin code. Works fine in 5.5 and 5.4 but cannot get it to work in 5.6.

Anyone have a solution?

---

<div class="post-metadata">

**Author:** ![rlopezll](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rlopezll](https://forums.unrealengine.com/u/rlopezll)\
**Post date:** [October 27, 2025, 10:26am UTC](https://forums.unrealengine.com/t/hair-card-generator-error/2567348/6 "2025-10-27T10:26:44Z")

</div>

I installed all the necessary modules manually, and it worked for me.

In my case, I used this command (in Windows Terminal):

E:\Epic\UE\_5.6\Engine\Binaries\ThirdParty\Python3\Win64\>python.exe -m pip install XXX

where XXX is the name of the module.

These were my commands:

python.exe -m pip install pyyaml  
python.exe -m pip install addict  
python.exe -m pip install torch  
python.exe -m pip install scipy  
python.exe -m pip install numpy (THIS RETURNED AN ERROR — I had to uninstall and reinstall the numpy module, follow the instructions below)

python.exe -m pip install sklearn  
python.exe -m pip install scikit-learn  
python.exe -m pip install moderngl  
python.exe -m pip install pillow  
python.exe -m pip install pyrr  
python.exe -m pip install PyOpenGL PyOpenGL\_accelerate

If you get an error with the **numpy** module, do this:

python.exe -m pip install --upgrade pip  
python.exe -m pip uninstall -y numpy  
python.exe -m pip install “numpy==1.26.\*” --force-reinstall

After that, I had to reboot the editor.  
It crashed the first time, but the second time everything worked fine.

I hope this helps you!

---

<div class="post-metadata">

**Author:** ![Alessiana](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Alessiana](https://forums.unrealengine.com/u/Alessiana)\
**Post date:** [November 19, 2025, 3:41pm UTC](https://forums.unrealengine.com/t/hair-card-generator-error/2567348/7 "2025-11-19T15:41:47Z")

</div>

I tried to install everything manually but I still got this error, any clue?

Thanls

> LogScript: Error: Script Msg: Traceback (most recent call last):  
> File “I:\UE\_5.6/Engine/Plugins/Experimental/HairCardGenerator/Content/Python\CardUEInterop\__init_\_.py”, line 39, in set\_optimizations  
> return self.\_wrapped\_inst.set\_optimizations(settings\_group\_index)  
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  
> RuntimeError: HairCardGenController: Traceback (most recent call last):  
> File “I:\UE\_5.6/Engine/Plugins/Experimental/HairCardGenerator/Content/Python\CardUEInterop\ue\_card\_gen\_controller.py”, line 209, in set\_optimizations  
> self.geometry\_opt.generate\_optimizations(max\_flyaways=group\_settings.max\_number\_of\_flyaways)  
> File “I:\UE\_5.6/Engine/Plugins/Experimental/HairCardGenerator/Content/Python\Modules\Geometry\optim\cards\_optimizer.py”, line 158, in generate\_optimizations  
> opt = self.\_align\_card(cluster\_id, labels)  
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  
> File “I:\UE\_5.6/Engine/Plugins/Experimental/HairCardGenerator/Content/Python\Modules\Geometry\optim\cards\_optimizer.py”, line 99, in \_align\_card  
> card\_opt = CardOptimizer(name=self.\_name,  
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  
> File “I:\UE\_5.6/Engine/Plugins/Experimental/HairCardGenerator/Content/Python\Modules\Geometry\optim\card\_optimizer.py”, line 110, in **init**  
> self.avg\_curves.append(self.\_get\_average\_curve(i))  
> ^^^^^^^^^^^^^^^^^^^^^^^^^^  
> File “I:\UE\_5.6/Engine/Plugins/Experimental/HairCardGenerator/Content/Python\Modules\Geometry\optim\card\_optimizer.py”, line 309, in \_get\_average\_curve  
> spline = UnivariateSpline(t\_param, avg\_curve\_points[:, i], w=weights[:, i], s=s)  
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  
> File “I:\UE\_5.6\Engine\Binaries\ThirdParty\Python3\Win64\Lib\site-packages\scipy\interpolate\_fitpack2.py”, line 238, in **init**  
> x, y, w, bbox, self.ext = self.validate\_input(x, y, w, bbox, k, s, ext,  
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  
> File “I:\UE\_5.6\Engine\Binaries\ThirdParty\Python3\Win64\Lib\site-packages\scipy\interpolate\_fitpack2.py”, line 264, in validate\_input  
> raise ValueError(“x must be increasing if s \> 0”)  
> ValueError: x must be increasing if s \> 0  
> LogScript: Error: Script call stack:  
> /HairCardGenerator/Python/CardUEInterop/\_\_init\_\_\_PY.HairCardGenForwardingController.SetOptimizations  
> LogHairCardGenerator: Error: Card geometry generation failed for settings group 0. Check the log for details.  
> LogHairCardGenerator: Error: Cards geometry failed for settings group 0. Check the log for details.  
> LogHairCardGenerator: Error: Failed to generate cards for all groups. See log for details.

---

<div class="post-metadata">

**Author:** ![ValkTuna](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ValkTuna](https://forums.unrealengine.com/u/ValkTuna)\
**Post date:** [December 7, 2025, 11:40pm UTC](https://forums.unrealengine.com/t/hair-card-generator-error/2567348/8 "2025-12-07T23:40:38Z")

</div>

Based on this thread:

[https://forums.unrealengine.com/t/possible-incompatible-versions-of-numpy-dependencies-in-python-foundation-packages-and-opencv-plugins/2650244](https://forums.unrealengine.com/t/possible-incompatible-versions-of-numpy-dependencies-in-python-foundation-packages-and-opencv-plugins/2650244)

It is likely that OpenCV is an active plugin in the project, and you’ll be able to see the engine having numpy conflict errors at startup in the output log (if you have not run the fix that rlopezll mentioned). I was running in the Metahumans sample project which automatically had this active.

It’s also probably why the Hair Card Generator just works on a new project.

I don’t know if this is patched in 5.7, based on the forum reply I can only guess it is. I am on 5.6.1.

However, at the time I didn’t know this, and ran the commands rlopezll mentioned, which eventually led to a lot of messy errors. To fix this, I first deleted the Python3 folder in:

Epic Games\UE\_5.6\Engine\Binaries\ThirdParty\Python3

And then ran Verify on the Unreal installation in the launcher, which gives a fresh copy of Python. (If you start up Unreal now with the OpenCV and Python Foundation plugins enabled you can now see the numpy conflict as linked in the above thread)

Then, go to Epic Games\UE\_5.6\Engine\Plugins\Runtime\OpenCV\OpenCV.uplugin

and edit it with a text editor. Change the numpy version to “numpy==1.26.4”, deleting the hashes. The Python Foundation package will handle it.

I could run the Hair Generator just fine after that. Hope it helps.

---

<div class="post-metadata">

**Author:** ![kieljavate](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kieljavate/32/1005302_2.png) [@kieljavate](https://forums.unrealengine.com/u/kieljavate)\
**Post date:** [January 15, 2026, 3:44am UTC](https://forums.unrealengine.com/t/hair-card-generator-error/2567348/9 "2026-01-15T03:44:59Z")

</div>

this works for me thanks

---

<div class="post-metadata">

**Author:** ![BitcoinBites](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bitcoinbites/32/1016954_2.png) [@BitcoinBites](https://forums.unrealengine.com/u/BitcoinBites)\
**Post date:** [January 17, 2026, 7:43am UTC](https://forums.unrealengine.com/t/hair-card-generator-error/2567348/10 "2026-01-17T07:43:50Z")

</div>

Upgrading project to 5.7.1 fixed it for me without messing with the above.

---

<div class="post-metadata">

**Author:** ![ArtFrey](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ArtFrey](https://forums.unrealengine.com/u/ArtFrey)\
**Post date:** [January 20, 2026, 4:19pm UTC](https://forums.unrealengine.com/t/hair-card-generator-error/2567348/11 "2026-01-20T16:19:26Z")

</div>

Doesn`t work for me. Tried 5.7.1 and fix above
