adeshpande3/March-Madness-ML

MarchMadness.py error

Opened this issue · 1 comments

Traceback (most recent call last):
File "MarchMadness.py", line 22, in
from keras.utils import np_utils
File "C:\Users\Nick Jwaida\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\keras_init_.py", line 21, in
from keras import models
File "C:\Users\Nick Jwaida\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\keras\models_init_.py", line 18, in
from keras.engine.functional import Functional
File "C:\Users\Nick Jwaida\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\keras\engine\functional.py", line 24, in
import tensorflow.compat.v2 as tf
File "C:\Users\Nick Jwaida\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\tensorflow_init_.py", line 37, in
from tensorflow.python.tools import module_util as _module_util
ModuleNotFoundError: No module named 'tensorflow.python'

Hmm this one is interesting. Seems like the root issue is that it can't find a particular tensorflow variable, but not sure why the keras installation didn't handle it.

Looked at where that lib is being used, and it doesn't seem like it actually is, so honestly would recommend just removing that import (although might potentially cause a downstream error)

image