FastFieldSolvers Forum
FastFieldSolvers Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 FastFieldSolvers
 E.M. Workbench
 A problem of "Create a FastHenry input file"

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Antispam question: What do MOONwalk and MOONdance have in common?
Answer:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON

 
   

T O P I C    R E V I E W
CHIA001 Posted - Feb 11 2022 : 09:52:05
I have build a FreeCAD model for FastHenry and I want to create a FastHenry input file but when I click the bottom ,"Create a FastHenry input file", the report view show the following message.

<Exception> UTF8 conversion failure at PropertyPath::getPyObject()
16:39:37 Running the Python command 'EM_FHInputFile' failed:
Traceback (most recent call last):
File "C:\Users\User\AppData\Roaming\FreeCAD\Mod\EM\EM_FHInputFile.py", line 187, in Activated
FreeCADGui.doCommand('obj=EM.createFHInputFile(App.ActiveDocument)')
File "<string>", line 1, in <module>
File "C:\Users\User\AppData\Roaming\FreeCAD\Mod\EM\EM_FHInputFile.py", line 103, in createFHInputFile
if solver.Folder == "":

UTF8 conversion failure at PropertyPath::getPyObject()


I install FastHenry & FreeCAD at D drive not at default path.
And I try to change my device language to English still not work.
3   L A T E S T    R E P L I E S    (Newest First)
Enrico Posted - Feb 11 2022 : 16:59:53
Oh I see. So the problem is not the E.M. Workbench but a more general problem with the text properties that are limited to contain UTF8 characters (that of course do not include Chinese characters).

Thanks for the update.

Enrico
CHIA001 Posted - Feb 11 2022 : 16:24:12
Thanks for your help.
Finally I found that my solver's path with Chinese word.
I think this is the reason why " solver.Folder == "" ".

Thanks a lot,
Jason
Enrico Posted - Feb 11 2022 : 15:21:38
As the exception information reports, the issue seems linked to the check

if solver.Folder == "":

Is your solver object created and valid?

Can you try to manually set the Folder property of your solver object to some path which is not empty and see what happens?

In this context, can you provide also the information about FreeCAD version? Just go "Help->About FreeCAD" menu and press "Copy to clipboard", then paste here.

Best Regards,
Enrico




FastFieldSolvers Forum © 2020 FastFieldSolvers S.R.L. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.06