errors while using python3.7 to call TexGen3.13.1

General discussion about TexGen.

Moderators: Martin, Developers

Post Reply
LijunGu
Regular
Posts: 30
Joined: Mon Jun 01, 2020 4:49 am

errors while using python3.7 to call TexGen3.13.1

Post by LijunGu »

Hi Dr. louisepb,

I tried to use python to call TexGen, errors showing: Unable to complete python code with TAB, completer module not found!

there are some errors showing in TexGen:
<1> from _Embedded import *
<!> Error compiling code!<1> from TexGen.Core import *
<!> Error compiling code!<1> from TexGen.Renderer import *
<!> Error compiling code!<1> from TexGen.Export import *
<!> Error compiling code!<1> from TexGen.WeavePattern import *
<!> Error compiling code!<1> from TexGen.WiseTex import *
<!> Error compiling code!<1> from TexGen.FlowTex import *
<!> Error compiling code!<1> import math
<!> Error compiling code!<1> import runpy
<!> Error compiling code!<1> runpy.run_path(r"c=F:\TexGen\voxmesh.py")
<!> Error compiling code!

Could you please give me some support about this?
thank you!
louisepb
Project Leader
Posts: 998
Joined: Tue Dec 08, 2009 2:27 pm
Location: Nottingham

Re: errors while using python3.7 to call TexGen3.13.1

Post by louisepb »

Hello,
This is normally an issue with finding the Python libraries. Make sure that you have the Python39.dll in the folder with the TexGen executable and that you have the new versions of the TexGen libraries in the folder with the TexGen executable. Also, check that you have the libraries in your path.

Best wishes,
Louise
LijunGu
Regular
Posts: 30
Joined: Mon Jun 01, 2020 4:49 am

Re: errors while using python3.7 to call TexGen3.13.1

Post by LijunGu »

Hi,

What do you mean 'have the new versions of the TexGen libraries in the folder with the TexGen executable'?



Best wishes,
Lijun Gu
louisepb
Project Leader
Posts: 998
Joined: Tue Dec 08, 2009 2:27 pm
Location: Nottingham

Re: errors while using python3.7 to call TexGen3.13.1

Post by louisepb »

Hi,
Just to clarify, have you used the bundled installation or the one which doesn't include the python libraries? The time I normally see completer error is if I've done a TexGen build but forgotten to install the new TexGen libraries into the folder that I'm running the TexGen exe from (usually my build folder when I'm developing code). Make sure that all libraries in the folder that you're running TexGen from are the same version.

To check things it can be useful to put the script you are trying to run into the same folder as the TexGen files so you're absolutely sure that they can be accessed.

Best wishes,
Louise
Post Reply