K
Size: a a a
K
A
K
L
A
Step 4/5 : RUN pip install pytest
---> Running in b33df15e90da
Collecting pytest
Downloading pytest-6.2.4-py3-none-any.whl (280 kB)
Collecting py>=1.8.2
Downloading py-1.10.0-py2.py3-none-any.whl (97 kB)
Collecting packaging
Downloading packaging-20.9-py2.py3-none-any.whl (40 kB)
Collecting importlib-metadata>=0.12
Downloading importlib_metadata-4.3.1-py3-none-any.whl (16 kB)
Collecting iniconfig
Downloading iniconfig-1.1.1-py2.py3-none-any.whl (5.0 kB)
Collecting toml
Downloading toml-0.10.2-py2.py3-none-any.whl (16 kB)
Collecting pluggy<1.0.0a1,>=0.12
Downloading pluggy-0.13.1-py2.py3-none-any.whl (18 kB)
Collecting attrs>=19.2.0
Downloading attrs-21.2.0-py2.py3-none-any.whl (53 kB)
Collecting typing-extensions>=3.6.4
Downloading typing_extensions-3.10.0.0-py3-none-any.whl (26 kB)
Collecting zipp>=0.5
Downloading zipp-3.4.1-py3-none-any.whl (5.2 kB)
Collecting pyparsing>=2.0.2
Downloading pyparsing-2.4.7-py2.py3-none-any.whl (67 kB)
Installing collected packages: zipp, typing-extensions, pyparsing, importlib-metadata, toml, py, pluggy, packaging, iniconfig, attrs, pytest
Successfully installed attrs-21.2.0 importlib-metadata-4.3.1 iniconfig-1.1.1 packaging-20.9 pluggy-0.13.1 py-1.10.0 pyparsing-2.4.7 pytest-6.2.4 toml-0.10.2 typing-extensions-3.10.0.0 zipp-3.4.1
WARNING: Running pip as root will break packages and permissions. You should install packages reliably by using venv: https://pip.pypa.io/warnings/venv
A
A
DS
DS
DS
guest@260507:~/na_svyazi$ tree -L 3
.
├── __init__.py
├── alembic.ini
├── app
│ ├── Dockerfile
│ ├── __init__.py
│ ├── __pycache__
│ │ ├── __init__.cpython-38.pyc
│ │ ├── config.cpython-38.pyc
│ │ ├── main.cpython-38.pyc
│ │ └── models.cpython-38.pyc
│ ├── config.py
│ ├── crud.py
│ ├── database.py
│ ├── errors_foo.py
│ ├── main.py
│ ├── models.py
│ ├── routers
│ │ ├── __init__.py
│ │ ├── admin.py
│ │ ├── auth.py
│ │ ├── claims.py
│ │ ├── clinics.py
│ │ ├── employees.py
│ │ ├── operators.py
│ │ ├── tickets.py
│ │ └── users.py
│ ├── schemas.py
│ ├── schemas_base.py
│ ├── services.py
│ └── utils.py
├── log_cron.txt
├── migrations
│ ├── README
│ ├── __pycache__
│ │ └── env.cpython-38.pyc
│ ├── env.py
│ ├── script.py.mako
│ └── versions
│ ├── 08b475947348_.py
│ ├── 15d1b03f563a_.py
│ ├── 34f0ca4e71a7_.py
│ ├── 5ff1c4387372_.py
│ ├── 64eef0fa0770_.py
│ ├── 6bdf0197ccae_.py
│ ├── 79521cd2dc30_.py
│ ├── 94b720db3029_.py
│ ├── 9a767d212c5d_.py
│ ├── __pycache__
│ ├── a71f5346ff94_.py
│ ├── be6e9c31b263_.py
│ ├── c14c7424d12f_.py
│ ├── eb0c57a6c538_.py
│ └── f6605802fa31_.py
├── requirements.txt
└── tests
├── __init__.py
├── conftest.py
├── test_auth_route.py
├── test_operator_route.py
└── test_users_route.py
8 directories, 52 files
guest@260507:~/na_svyazi$
DS
guest@260507:~/na_svyazi$ python3 app/main.py
Traceback (most recent call last):
File "app/main.py", line 9, in <module>
from app import config, crud, schemas, database
ModuleNotFoundError: No module named 'app'
guest@260507:~/na_svyazi$ python3 -m app/main.py
/usr/bin/python3: Error while finding module specification for 'app/main.py' (ModuleNotFoundError: No module named 'app/main')
guest@260507:~/na_svyazi$ cd app/
guest@260507:~/na_svyazi/app$ python3 main.py
Traceback (most recent call last):
File "main.py", line 9, in <module>
from app import config, crud, schemas, database
ModuleNotFoundError: No module named 'app'
guest@260507:~/na_svyazi/app$ python3 -m main.py
Traceback (most recent call last):
File "/usr/lib/python3.8/runpy.py", line 185, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/usr/lib/python3.8/runpy.py", line 111, in _get_module_details
__import__(pkg_name)
File "/home/guest/na_svyazi/app/main.py", line 9, in <module>
from app import config, crud, schemas, database
ModuleNotFoundError: No module named 'app'
guest@260507:~/na_svyazi/app$
AN
DS
П
RT
RT
П
YV
DI