Open Aussian opened 3 years ago
from solution import solution ImportError: cannot import name 'solution' from 'solution' (D:\python\lib\site-packages\solution__init__.py) This is my mistake。
hi, from solution import solution the solution is not a package in python but a class(a file named "solution.py"). you can find it in the root. this class recorded some info of your model.
hope my answer can help you
Image(foldername +'/' + drop_plot_convergence.value)
TypeError Traceback (most recent call last)
Show selected convergence curve Image(foldername +'/' + drop_plot_convergence.value)
TypeError Traceback (most recent call last) in 1 #Show selected convergence curve ----> 2 Image(foldername +'/' + drop_plot_convergence.value)
TypeError: can only concatenate str (not "NoneType") to str
i have an error like this
you can try this Image(str(foldername) +'/' + str(drop_plot_convergence.value))
嗨, 从解决方案导入解决方案 解决方案不是python中的包,而是一个类(名为“solution.py”的文件)。 你可以在根目录中找到它。 这个类记录了你的模型的一些信息。
希望我的回答能帮到你
您好,具体是怎么导入的呢
https://github.com/7ossam81/EvoloPy/blob/5f12bf5b5f54332c91b72069ec5dfc06a192c0c8/optimizers/HHO.py#L49
In Python 3, this package doesn't have this usage。so what can I do to get the code to work?