I'd like to determine the order of Python errors. import error

Asked 2 years ago, Updated 2 years ago, 74 views

When importing message.py from running py

Error importing util from message.py

Also, an error occurs when importing the util by itself from the util

Is the correct error solution to solve the problem first?

Is there a solution for the error of the cannot import name? I thought it was a path error

I set the route, but it hasn't been solved, so I'm asking you a question.

I modified it. I was so distracted that I wrote something weird.

python import-에러

2022-09-22 19:47

1 Answers

Hello. :-)

Calm down. I'll sort it out as I understand it.

< Assume that there is a code that is the starting point of the program called main.py

< When main.py is executed, this child will first import message.py

< message.py encountered an error importing a package called util

< The util package has an internal _init__.py imported, and this __init__ has an error in importing other codes inside util

Only 만 is a problem or up to 까지 is a problem. Of course, you have to fix it all. Slowly check from the smallest unit. ④It's better to check if the util of is normal, right?

I hope it works out well.

Thank you.


2022-09-22 19:47

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.