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!
i cannot run the python script
Moderators: Martin, Developers
i cannot run the python script
- Attachments
-
- c934dfdb2820f055350ed47c79f4605.png (83.9 KiB) Viewed 3363 times
Re: i cannot run the python script
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
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