점프 투 FastAPI질문 드립니다.

2-02 모델로 데이터베이스 관리하기 하고있는중인데여

import models 를 추가하면 되는것일까요?

저의 경우 env.py부분에

from logging.config import fileConfig

from sqlalchemy import engine_from_config
from sqlalchemy import pool

import models

# this is the Alembic Config object, which provides
# access to the values within the .ini file in use.
config = context.config

# Interpret the config file for Python logging.
# This line sets up loggers basically.
if config.config_file_name is not None:
    fileConfig(config.config_file_name)

# add your model's MetaData object here
# for 'autogenerate' support
# from myapp import mymodel
# target_metadata = mymodel.Base.metadata
target_metadata = models.Base.metadata

로 작성해서 프로그래밍을 돌렸을떄
sqlalchemy.exc.NoSuchModuleError: Can't load plugin: sqlalchemy.dialects:driver
에러가 발생합니다 무엇이 문제일까요

myhr123 992

M 2023년 8월 30일 4:35 오후

+1 sqlalchemy가 설치되지 않았거나 잘못 설치된거 같습니다. - 박응용님, 2023년 8월 30일 4:37 오후 추천 , 대댓글
@박응용님 안녕하세요 알려주신 정보로 확인 후 재설치 진행을 하였는데 동일 증상이 나오고 있으며, pip install sqlalchemy 했을 경우 ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. pybigquery 0.10.2 requires sqlalchemy<1.5.0dev,>=1.2.0, but you have sqlalchemy 2.0.20 which is incompatible. 에러가 발생해서 pip install wheel 부터 설치르 하였는데 같은 에러가 반복되네요 ㅠㅠ 어떻게 해야할까요 - myhr123님, 2023년 8월 31일 9:37 오전 추천 , 대댓글
@myhr123님 pybigquery가 사용하는 sqlalchemy버전과 충돌하는 거 같은데요, 해당 모듈을 업데이트 또는 삭제(가능하다면)하고 해 보세요. - 박응용님, 2023년 8월 31일 9:47 오전 추천 , 대댓글
목록으로