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

Can't run the code #6

Open
artofstate opened this issue May 11, 2022 · 1 comment
Open

Can't run the code #6

artofstate opened this issue May 11, 2022 · 1 comment

Comments

@artofstate
Copy link

Hi @zhangcheng828 ,when I run main_cls.py and I can get nothing . I have found that there is something wrong when import some function,such from model.pvt import pvt and so on .But I have no idea how to solve it .Have you ever encounted the same mistake ?

@GunnerStone
Copy link

GunnerStone commented Oct 1, 2022

I got the same error... Python modules are difficult to code, especially when your file tree looks as web-like as this project's. It also looks like some imported library uses cython (somewhere). I was getting errors for not having cl.exe on path.

As a temporary fix to anyone still with this problem, removing most of the __all__ = [<function list here>] inside each helper .py file and manually fixing each missing import allowed me to finally run the from model.partpvt import pvpt partseg line without error.

For those with issues with Command '['where', 'cl']' returned non-zero exit status 1. Make sure to install C++ using Visual Studio 2019. cl.exe should be located inside C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64

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

2 participants