I can't manage to import some functions in the files. Here is the structure
.
├── main.py
├── src
│ ├── mypandas.py
│ ├── labelling.py
Labelling uses class from mypandas and mypandas uses functions from labelling.
Labelling imports mypandas as
import mypandas as myp
mypandas imports labelling as
import labelling as l
In main, I import both as
import src.labelling as sl
import src.mypandas as sp
Which gives me an error,: module not
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
Cell In[1], line 7
5 import src.webscraping as sw
6 import src.viz as sv
----> 7 import src.mypandas as sp
9 import sqlite3
10 import pandas as pd
File ~/Desktop/code/Instagram_bot_classification/src/mypandas.py:5
1 def foo ():
2 print('oui')
----> 5 import labelling
6 import pandas as pd
7 import plotly.express as px
ModuleNotFoundError: No module named 'labelling'
How can I change the folder structure or code to not get an error but still to what I want?