Type error with load function #365
Unanswered
Lavanya-Bala
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hello, What a coincidence, I'm working on this tonight (and maybe tomorrow as well) so I have seen this error message too many times: the issue here is the version of h5py. I expect that you are using a version >3 and the current requirements of pyleecan is h5py==2.10.0. Reverting your version of the package to 2.10 should solve your problem. Best regards, |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am trying to run the optimisation from the tutorial and the following error occurs.
As far as I can guess, this is a backend issue? Could you please let me know if there is a way to go about this ?
Traceback (most recent call last):
File "\site-packages\pyleecan\Functions\Load\import_class.py", line 8, in import_class
module = import(mod_name + "." + class_name, fromlist=[class_name])
TypeError: can only concatenate str (not "bytes") to str
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "", line 312, in
res = load("opti_out.h5")
File "\site-packages\pyleecan\Functions\load.py", line 111, in load
return init_data(init_dict, file_path)
File "\site-packages\pyleecan\Functions\load.py", line 51, in init_data
class_obj = import_class("pyleecan.Classes", obj.get("class"), "")
File "\site-packages\pyleecan\Functions\Load\import_class.py", line 20, in import_class
"Unknow class name " + class_name + " when loading"
TypeError: can only concatenate str (not "bytes") to str
Beta Was this translation helpful? Give feedback.
All reactions