Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make breaks - ModuleNotFoundError: No module named 'flask' #82

Open
kashmax opened this issue Jul 26, 2022 · 1 comment
Open

Make breaks - ModuleNotFoundError: No module named 'flask' #82

kashmax opened this issue Jul 26, 2022 · 1 comment

Comments

@kashmax
Copy link

kashmax commented Jul 26, 2022

Hi,

Compiling breaks, here are the output.

root@20-c1:# pip3 install -r requirements.txt
Requirement already satisfied: flask==1.0.2 in /usr/local/lib/python3.8/dist-packages (from -r requirements.txt (line 1)) (1.0.2)
Requirement already satisfied: keras==2.3.1 in /usr/local/lib/python3.8/dist-packages (from -r requirements.txt (line 2)) (2.3.1)
Requirement already satisfied: pandas==0.25.3 in /usr/local/lib/python3.8/dist-packages (from -r requirements.txt (line 3)) (0.25.3)
Requirement already satisfied: numpy>=1.9.1 in /usr/local/lib/python3.8/dist-packages (from -r requirements.txt (line 4)) (1.19.5)
Requirement already satisfied: tensorflow==2.5.3 in /usr/local/lib/python3.8/dist-packages (from -r requirements.txt (line 5)) (2.5.3)
Requirement already satisfied: coloredlogs==10.0 in /usr/local/lib/python3.8/dist-packages (from -r requirements.txt (line 6)) (10.0)
Requirement already satisfied: pymongo==3.10.1 in /usr/local/lib/python3.8/dist-packages (from -r requirements.txt (line 7)) (3.10.1)
Requirement already satisfied: mypy==0.761 in /usr/local/lib/python3.8/dist-packages (from -r requirements.txt (line 8)) (0.761)
Requirement already satisfied: Jinja2>=2.10 in /usr/local/lib/python3.8/dist-packages (from flask==1.0.2->-r requirements.txt (line 1)) (3.1.2)
Requirement already satisfied: Werkzeug>=0.14 in /usr/local/lib/python3.8/dist-packages (from flask==1.0.2->-r requirements.txt (line 1)) (2.2.0)
Requirement already satisfied: itsdangerous>=0.24 in /usr/local/lib/python3.8/dist-packages (from flask==1.0.2->-r requirements.txt (line 1)) (2.1.2)
Requirement already satisfied: click>=5.1 in /usr/local/lib/python3.8/dist-packages (from flask==1.0.2->-r requirements.txt (line 1)) (8.1.3)
Requirement already satisfied: keras-applications>=1.0.6 in /usr/local/lib/python3.8/dist-packages (from keras==2.3.1->-r requirements.txt (line 2)) (1.0.8)
Requirement already satisfied: keras-preprocessing>=1.0.5 in /usr/local/lib/python3.8/dist-packages (from keras==2.3.1->-r requirements.txt (line 2)) (1.1.2)
Requirement already satisfied: scipy>=0.14 in /usr/local/lib/python3.8/dist-packages (from keras==2.3.1->-r requirements.txt (line 2)) (1.8.1)
Requirement already satisfied: pyyaml in /usr/lib/python3/dist-packages (from keras==2.3.1->-r requirements.txt (line 2)) (5.3.1)
Requirement already satisfied: six>=1.9.0 in /usr/local/lib/python3.8/dist-packages (from keras==2.3.1->-r requirements.txt (line 2)) (1.15.0)
Requirement already satisfied: h5py in /usr/local/lib/python3.8/dist-packages (from keras==2.3.1->-r requirements.txt (line 2)) (3.1.0)
Requirement already satisfied: python-dateutil>=2.6.1 in /usr/lib/python3/dist-packages (from pandas==0.25.3->-r requirements.txt (line 3)) (2.7.3)
Requirement already satisfied: pytz>=2017.2 in /usr/lib/python3/dist-packages (from pandas==0.25.3->-r requirements.txt (line 3)) (2019.3)
Requirement already satisfied: protobuf>=3.9.2 in /usr/local/lib/python3.8/dist-packages (from tensorflow==2.5.3->-r requirements.txt (line 5)) (3.19.4)
Requirement already satisfied: tensorboard~=2.5 in /usr/local/lib/python3.8/dist-packages (from tensorflow==2.5.3->-r requirements.txt (line 5)) (2.9.1)
Requirement already satisfied: opt-einsum~=3.3.0 in /usr/local/lib/python3.8/dist-packages (from tensorflow==2.5.3->-r requirements.txt (line 5)) (3.3.0)
Requirement already satisfied: astunparse~=1.6.3 in /usr/local/lib/python3.8/dist-packages (from tensorflow==2.5.3->-r requirements.txt (line 5)) (1.6.3)
Requirement already satisfied: wrapt~=1.12.1 in /usr/local/lib/python3.8/dist-packages (from tensorflow==2.5.3->-r requirements.txt (line 5)) (1.12.1)
Requirement already satisfied: grpcio~=1.34.0 in /usr/local/lib/python3.8/dist-packages (from tensorflow==2.5.3->-r requirements.txt (line 5)) (1.34.1)
Requirement already satisfied: google-pasta~=0.2 in /usr/local/lib/python3.8/dist-packages (from tensorflow==2.5.3->-r requirements.txt (line 5)) (0.2.0)
Requirement already satisfied: termcolor~=1.1.0 in /usr/local/lib/python3.8/dist-packages (from tensorflow==2.5.3->-r requirements.txt (line 5)) (1.1.0)
Requirement already satisfied: tensorflow-estimator<2.6.0,>=2.5.0 in /usr/local/lib/python3.8/dist-packages (from tensorflow==2.5.3->-r requirements.txt (line 5)) (2.5.0)
Requirement already satisfied: flatbuffers~=1.12.0 in /usr/local/lib/python3.8/dist-packages (from tensorflow==2.5.3->-r requirements.txt (line 5)) (1.12)
Requirement already satisfied: keras-nightly~=2.5.0.dev in /usr/local/lib/python3.8/dist-packages (from tensorflow==2.5.3->-r requirements.txt (line 5)) (2.5.0.dev2021032900)
Requirement already satisfied: typing-extensions~=3.7.4 in /usr/local/lib/python3.8/dist-packages (from tensorflow==2.5.3->-r requirements.txt (line 5)) (3.7.4.3)
Requirement already satisfied: absl-py~=0.10 in /usr/local/lib/python3.8/dist-packages (from tensorflow==2.5.3->-r requirements.txt (line 5)) (0.15.0)
Requirement already satisfied: gast==0.4.0 in /usr/local/lib/python3.8/dist-packages (from tensorflow==2.5.3->-r requirements.txt (line 5)) (0.4.0)
Requirement already satisfied: wheel~=0.35 in /usr/local/lib/python3.8/dist-packages (from tensorflow==2.5.3->-r requirements.txt (line 5)) (0.37.1)
Requirement already satisfied: humanfriendly>=4.7 in /usr/local/lib/python3.8/dist-packages (from coloredlogs==10.0->-r requirements.txt (line 6)) (10.0)
Requirement already satisfied: mypy-extensions<0.5.0,>=0.4.3 in /usr/local/lib/python3.8/dist-packages (from mypy==0.761->-r requirements.txt (line 8)) (0.4.3)
Requirement already satisfied: typed-ast<1.5.0,>=1.4.0 in /usr/local/lib/python3.8/dist-packages (from mypy==0.761->-r requirements.txt (line 8)) (1.4.3)
Requirement already satisfied: MarkupSafe>=2.0 in /usr/local/lib/python3.8/dist-packages (from Jinja2>=2.10->flask==1.0.2->-r requirements.txt (line 1)) (2.1.1)
Requirement already satisfied: tensorboard-data-server<0.7.0,>=0.6.0 in /usr/local/lib/python3.8/dist-packages (from tensorboard~=2.5->tensorflow==2.5.3->-r requirements.txt (line 5)) (0.6.1)
Requirement already satisfied: google-auth-oauthlib<0.5,>=0.4.1 in /usr/local/lib/python3.8/dist-packages (from tensorboard~=2.5->tensorflow==2.5.3->-r requirements.txt (line 5)) (0.4.6)
Requirement already satisfied: tensorboard-plugin-wit>=1.6.0 in /usr/local/lib/python3.8/dist-packages (from tensorboard~=2.5->tensorflow==2.5.3->-r requirements.txt (line 5)) (1.8.1)
Requirement already satisfied: setuptools>=41.0.0 in /usr/lib/python3/dist-packages (from tensorboard~=2.5->tensorflow==2.5.3->-r requirements.txt (line 5)) (45.2.0)
Requirement already satisfied: markdown>=2.6.8 in /usr/local/lib/python3.8/dist-packages (from tensorboard~=2.5->tensorflow==2.5.3->-r requirements.txt (line 5)) (3.4.1)
Requirement already satisfied: requests<3,>=2.21.0 in /usr/lib/python3/dist-packages (from tensorboard~=2.5->tensorflow==2.5.3->-r requirements.txt (line 5)) (2.22.0)
Requirement already satisfied: google-auth<3,>=1.6.3 in /usr/local/lib/python3.8/dist-packages (from tensorboard~=2.5->tensorflow==2.5.3->-r requirements.txt (line 5)) (2.9.1)
Requirement already satisfied: rsa<5,>=3.1.4 in /usr/local/lib/python3.8/dist-packages (from google-auth<3,>=1.6.3->tensorboard~=2.5->tensorflow==2.5.3->-r requirements.txt (line 5)) (4.9)
Requirement already satisfied: cachetools<6.0,>=2.0.0 in /usr/local/lib/python3.8/dist-packages (from google-auth<3,>=1.6.3->tensorboard~=2.5->tensorflow==2.5.3->-r requirements.txt (line 5)) (5.2.0)
Requirement already satisfied: pyasn1-modules>=0.2.1 in /usr/local/lib/python3.8/dist-packages (from google-auth<3,>=1.6.3->tensorboard~=2.5->tensorflow==2.5.3->-r requirements.txt (line 5)) (0.2.8)
Requirement already satisfied: requests-oauthlib>=0.7.0 in /usr/local/lib/python3.8/dist-packages (from google-auth-oauthlib<0.5,>=0.4.1->tensorboard~=2.5->tensorflow==2.5.3->-r requirements.txt (line 5)) (1.3.1)
Requirement already satisfied: importlib-metadata>=4.4 in /usr/local/lib/python3.8/dist-packages (from markdown>=2.6.8->tensorboard~=2.5->tensorflow==2.5.3->-r requirements.txt (line 5)) (4.12.0)
Requirement already satisfied: zipp>=0.5 in /usr/local/lib/python3.8/dist-packages (from importlib-metadata>=4.4->markdown>=2.6.8->tensorboard~=2.5->tensorflow==2.5.3->-r requirements.txt (line 5)) (3.8.1)
Requirement already satisfied: pyasn1<0.5.0,>=0.4.6 in /usr/local/lib/python3.8/dist-packages (from pyasn1-modules>=0.2.1->google-auth<3,>=1.6.3->tensorboard~=2.5->tensorflow==2.5.3->-r requirements.txt (line 5)) (0.4.8)
Requirement already satisfied: oauthlib>=3.0.0 in /usr/lib/python3/dist-packages (from requests-oauthlib>=0.7.0->google-auth-oauthlib<0.5,>=0.4.1->tensorboard~=2.5->tensorflow==2.5.3->-r requirements.txt (line 5)) (3.1.0)
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
root@20-c1:/home/sk/OpenUBA# make
cd core/ ; \
mypy \
anomaly.py \
case.py \
core.py \
database.py \
dataset.py \
entity.py \
entity_test.py \
encode.py \
encode_test.py \
model.py \
process.py \
process_test.py \
risk.py \
riskmanager.py \
display.py \
user.py \
user_test.py \
utility.py \
alert.py \
api.py \
hash.py \
hash_test.py \
--ignore-missing-imports ;
Success: no issues found in 22 source files
cd core/ ; python3.7 core.py ;
Traceback (most recent call last):
  File "core.py", line 21, in <module>
    from flask import Flask, jsonify
ModuleNotFoundError: No module named 'flask'
make: *** [Makefile:3: run] Error 1
root@20-c1:/home/sk/OpenUBA#

OS: Ubuntu 20.04 LTS

@kashmax kashmax changed the title Make breaks Make breaks - ModuleNotFoundError: No module named 'flask' Jul 26, 2022
@0xal0x
Copy link

0xal0x commented Jan 24, 2023

Try installing flask -- "pip3 install flask" that works for me but I got another error after that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants