farcepest / MySQLdb1

MySQL database connector for Python (legacy version)
https://sourceforge.net/projects/mysql-python/
666 stars 318 forks source link

Installation problem on Windows #107

Open vit1251 opened 8 years ago

vit1251 commented 8 years ago

Can not compile under Python 2.7 with installed Visual Studio and MySQL/Connector/C++

    running build_ext
    building '_mysql' extension
    creating build\temp.win32-2.7
    creating build\temp.win32-2.7\Release
    C:\Users\vit12\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\cl.exe /c /nologo /Ox /MD /W
3 /GS- /DNDEBUG -Dversion_info=(1,2,5,'final',1) -D__version__=1.2.5 "-IC:\Program Files (x86)\MySQL\MySQL Connector C 6
.0.2\include" -Ic:\python27\include -Ic:\python27\PC /Tc_mysql.c /Fobuild\temp.win32-2.7\Release\_mysql.obj /Zl
    _mysql.c
    _mysql.c(42) : fatal error C1083: Cannot open include file: 'config-win.h': No such file or directory
    error: command 'C:\\Users\\vit1251\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0\\VC\\Bin\\
cl.exe' failed with exit status 2
methane commented 8 years ago

Have you tried mysqlclient ?

vit1251 commented 8 years ago

@methane mysqlclient is work! But why @farcepest does not resolve issues in MySQLdb? @farcepest is leave MySQLdb support?

claudep commented 8 years ago

Yes, MySQLdb is unmaintained for the time being.

vit1251 commented 8 years ago

@claudep most old documentation and project have reference to MySQL-python. How about start activity to inform each developing application and all Linux distribution to start migration?

Today most library is outdated and ecosystem have too many grbage. Earlay I use PIL and also have Pillow redirection and more and more another project with lost support. How to transporent resolv this problem?

methane commented 8 years ago

@vit1251 See http://sourceforge.net/p/pypi/support-requests/553/

vit1251 commented 8 years ago

@methane cool. I think pip may make virtual package like apt-get. When people request old package it may show Warning and ask about install another package or install silent in non-interactive mode.