1

My project structure:

project main.py modules client.py server.py find_host_ip.py 

Traceback:

File "C:\...\main.py", line 1, in <module> from modules import client, server File "C:\...\modules\client.py", line 2, in <module> from find_host_ip import Network ModuleNotFoundError: No module named 'find_host_ip' 

What's wrong?

0

1 Answer 1

3

You need to use full path to module, or you can place modules in root directory, and you don't have to change the code:

from /modules/find_host_ip import Network 
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.