Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I need help #59

Open
Aussian opened this issue Dec 23, 2020 · 5 comments
Open

I need help #59

Aussian opened this issue Dec 23, 2020 · 5 comments

Comments

@Aussian
Copy link

Aussian commented Dec 23, 2020

s = solution()

In Python 3, this package doesn't have this usage。so what can I do to get the code to work?

@Aussian
Copy link
Author

Aussian commented Dec 23, 2020

from solution import solution
ImportError: cannot import name 'solution' from 'solution' (D:\python\lib\site-packages\solution_init_.py)
This is my mistake。

@Swenchao
Copy link

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

@priyak2605
Copy link

#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

@Swenchao
Copy link

#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))

@Wonder9988
Copy link

嗨, 从解决方案导入解决方案 解决方案不是python中的包,而是一个类(名为“solution.py”的文件)。 你可以在根目录中找到它。 这个类记录了你的模型的一些信息。

希望我的回答能帮到你

您好,具体是怎么导入的呢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants