kyleskom / NBA-Machine-Learning-Sports-Betting

NBA sports betting using machine learning
1.23k stars 443 forks source link

"no module named src" #324

Closed Noehy closed 1 year ago

Noehy commented 1 year ago

I have all of the required dependencies installed, and every time I try to get new data this happens.

`C:>cd NBA-Machine-Learning-Sports-Betting

C:\NBA-Machine-Learning-Sports-Betting>cd src/Process-Data

C:\NBA-Machine-Learning-Sports-Betting\src\Process-Data>python -m Get_Data Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "C:\NBA-Machine-Learning-Sports-Betting\src\Process-Data\Get_Data.py", line 10, in from src.Utils.tools import get_json_data, to_data_frame ModuleNotFoundError: No module named 'src'`

sact1909 commented 1 year ago

Just create a folder called src inside this route src/Process-Data and copy the folder Utils from src folder and pasted into the new src folder inside Process-Data

That works for me for now meanwhile the fix it

Noehy commented 1 year ago

Thank you!

cpjolicoeur commented 1 year ago

can also just symlink it instead of copying

cd src/Process-Data
ln -nfs ../. src