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 couldn't run the program properly and had an error calling the package while pycharm was running the scratch_mlp/py file #9

Open
HarryFishCamelis opened this issue Nov 7, 2023 · 2 comments

Comments

@HarryFishCamelis
Copy link

I couldn't run the program properly and had an error calling the package while pycharm was running the scratch_mlp/py file.This is the content of the error:<class 'ImportError'>, ImportError("cannot import name 'utils' from partially initialized module 'scratch_mlp' (most likely due to a circular import).

@HarryFishCamelis
Copy link
Author

from scratch_mlp import utils
The problem seems to be in this line of code. I have checked the library I installed, but the name is not repeated. May I ask how I should modify it?

@LiuJiaji1999
Copy link

you need to change 'from scratch_mlp import utils' to 'import utils',

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