3.8.2 (default, Mar 31 2020, 15:23:55)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import flask
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.8/site-packages/flask/__init__.py", line 14, in <module>
from jinja2 import escape
File "/usr/local/lib/python3.8/site-packages/jinja2/__init__.py", line 82, in <module>
_patch_async()
File "/usr/local/lib/python3.8/site-packages/jinja2/__init__.py", line 78, in _patch_async
from jinja2.asyncsupport import patch_all
File "/usr/local/lib/python3.8/site-packages/jinja2/asyncsupport.py", line 13, in <module>
import asyncio
File "/usr/local/lib/python3.8/asyncio/__init__.py", line 8, in <module>
from .base_events import *
File "/usr/local/lib/python3.8/asyncio/base_events.py", line 23, in <module>
import socket
File "/app/socket.py", line 2, in <module>
from flask import Flask, render_template, request, session
ImportError: cannot import name 'Flask' from partially initialized module 'flask' (most likely due to a circular import) (/usr/local/lib/python3.8/site-packages/flask/__init__.py)
>>>
Модули установлены, pip freeze их показывает, но я ег оне могу импортнуть. Может кто-то сталкивался?
Асинкио и фласк?
А что за /app/socket.py?
Обсуждают сегодня