Skip to content

pymssql과 SQLAlchemy 사용시 유의할 점.

pymssql을 apt-get install python-pymssql로 설치하는 경우 1.0.2 버젼이 설치가 된다. (2013년 8월 22일 기준) 하지만, 제대로 사용하려면 pip install pymssql로 설치하는 것이 좋다. (2013년 8월 22일 기준 2.0.0b1-dev-20130403 버젼)

pymssql을 pip로 설치하는 경우에는 apt-get install freetds-dev 패키지를 먼저 깔아주어야 오류 없이 정상적으로 설치될 수 있다.

* pymssql 버젼 때문에 발생할 수 있는 문제

  • SQL Server의 Version Info를 가져오는데 실패해서 SQLAlchemy의 mssql 플러그인 중 버젼 체크 로직 부분에서 re.match에 None 타입이 파싱할 대상으로 들어가 Exception 발생.

Leave a Reply

Your email address will not be published. Required fields are marked *