running TexGen 3.12 without scripts

General discussion about TexGen.

Moderators: Martin, Developers

Post Reply
sooriyan
Regular
Posts: 10
Joined: Tue Mar 24, 2020 1:55 pm

running TexGen 3.12 without scripts

Post by sooriyan »

I was running the TexGen 3.11.0 without GUI using the following lines of code before the start of modeller.

Code: Select all

import sys
sys.path.append("C:\Program Files\TexGen\Python\libxtra\TexGen")
from Core import *              # TexGen library
Recently, I updated TexGen to 3.12.0, since I had to get Voxel Mesh with Octree Refinement. But i could not run the same code using TexGen 3.12.0 because the DLL couldn't be loaded.

The following is the error i get when i try to run the code now:

from Core import * # TexGen library
File "C:\Program Files\TexGen\Python\libxtra\TexGen\Core.py", line 15, in <module>
import _Core
ImportError: DLL load failed: The specified module could not be found.


I searched for the difference between the scripts available in the two models and I found that swig version with which the wrapper is built is different. How can I get rid of this error? Should updation of swig will solve the problem?
sooriyan
Regular
Posts: 10
Joined: Tue Mar 24, 2020 1:55 pm

Re: running TexGen 3.12 without scripts

Post by sooriyan »

Hi, its me again.

That issue got resolved. There were three .dll files placed in TexGen home directory (\TexGen) rather than inside \TexGen\Python\libxtra\TexGen. I copied and pasted those three DLLs into the directory i am appending in the system path and it worked.

Hope it is of help to someone.

Thank you
Post Reply