i cannot run the python script

General discussion about TexGen.

Moderators: Martin, Developers

Post Reply
daixuan
Posts: 4
Joined: Tue Mar 17, 2020 4:33 pm

i cannot run the python script

Post by daixuan »

Dear friends:
I run my python script sucessfully bofore,but when I click rendering the domain axes, my texgen always be crash and close the user interface. So I download the newest version to solve the problem.But when I try to run my python script,some errors appear like something in the picture.
I am really looking forward to your reply,thank you!
Attachments
c934dfdb2820f055350ed47c79f4605.png
c934dfdb2820f055350ed47c79f4605.png (83.9 KiB) Viewed 3363 times
louisepb
Project Leader
Posts: 998
Joined: Tue Dec 08, 2009 2:27 pm
Location: Nottingham

Re: i cannot run the python script

Post by louisepb »

Hi,
I'm afraid that there is a bug in TexGen which I haven't managed to identify yet when the domain is re-rendered. If you specify the domain in your script and have the Render Domain option selected in the GUI then it should be fine.

The errors that you're getting are because Python tightened up on its requirement for bool operators. As you can see from the error messages the function is expecting bool parameters. 0 and 1 is no longer accepted so you need to either cast it to bool or use True and False as the parameters.

Best wishes,
Louise
Post Reply