re style=“box-sizing: unset; font-family: var(–jp-code-font-family); font-size: var(–jp-code-font-size); line-height: normal; color: var(–jp-content-font-color1); border: none; margin-top: 0px; margin-bottom: 0px; padding: 0px; word-break: break-all; overflow-wrap: break-word;”>AttributeError: module ‘.Equit’ has no attribute 'solution:
</pre
Hello,
This looks like an error in your team’s qlib functions. Can you check if there are any syntax errors?
Seems it’s caused by a customized file. So importing .py files in Qlib doesn’t support ‘class’ method? We’re only allowed to write functions?..Since everything works fine when I change the ‘class’ to ‘def’…
Hi,
can you please switch back to “class”, save it in the Qlib, restart your kernel in lab, and import again please. This should work.