sqlalchemy / alembic

A database migrations tool for SQLAlchemy.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AttributeError: 'ConfigParser' object has no attribute '_proxies'

MosTafa2K opened this issue · comments

Describe the bug
After installing the alembic package, I entered the alembic init migrations command and alembic created the migrations directory and the alembic.ini file without any errors, but when I use the alembic revision --autogenerate -m "Some message" command, I get the error AttributeError: 'ConfigParser' object has no attribute '_proxies' and I don't know where the problem is. I also tested different versions of sqlalchemy and alembic, but the problem still persists. This error is also displayed when using the alembic check command.

Below is a picture of the error that occurred :

alembic

Versions.

  • OS: Windows 10
  • Python: 3.9
  • Alembic: 1.12.1
  • SQLAlchemy: 2.0.23
  • Database: Sqlite

I found out that this problem exists on Windows OS because I run the commands on Ubuntu and I didn't face any problem and the commands worked correctly.

there's something wrong with your Python install. ConfigParser in Python has a "_proxies" attribute, so not sure how you are getting that.