pattern icon indicating copy to clipboard operation
pattern copied to clipboard

LINK : fatal error LNK1181: cannot open input file 'mariadbclient.lib'

Open fan3652 opened this issue 7 years ago • 2 comments

when I use this command :python setup.py build is ok. but when I use command:python setup.py install is error. Error Messages: Processing mysqlclient-1.4.2.post1.tar.gz Writing c:\users\appdata\local\temp\easy_install-eycove\mysqlclient-1.4.2.post1\setup.cfg Running mysqlclient-1.4.2.post1\setup.py -q bdist_egg --dist-dir c:\users\appdata\local\temp\easy_install-eycove\mysqlclient-1.4.2.post1\egg-dist-tmp-ziwvkr e:\python\Lib\distutils\dist.py:267: UserWarning: Unknown distribution option: 'long_description_content_type' warnings.warn(msg) _mysql.c MySQLdb/_mysql.c(304) : warning C4244: 'initializing' : conversion from 'Py_ssize_t' to 'int', possible loss of data MySQLdb/_mysql.c(951) : warning C4244: 'function' : conversion from 'Py_ssize_t' to 'unsigned long', possible loss of data MySQLdb/_mysql.c(956) : warning C4244: 'function' : conversion from 'Py_ssize_t' to 'unsigned long', possible loss of data MySQLdb/_mysql.c(1126) : warning C4090: 'function' : different 'const' qualifiers MySQLdb/_mysql.c(1215) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data MySQLdb/_mysql.c(1217) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data MySQLdb/_mysql.c(1253) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data MySQLdb/_mysql.c(1255) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data MySQLdb/_mysql.c(1671) : warning C4244: 'function' : conversion from 'SOCKET' to 'long', possible loss of data LINK : fatal error LNK1181: cannot open input file 'mariadbclient.lib' error: Setup script exited with error: command 'C:\\Users\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0\\VC\\Bin\\amd64\\link.exe' failed with exit status 1181 how to solve it ? I search "mariadbclient.lib" in google , can't find this lib.

fan3652 avatar Mar 02 '19 05:03 fan3652

Hi fan3652. I'm facing the same issue. Have you received any help on that?

paulohsgoes avatar Mar 08 '20 01:03 paulohsgoes

May be you can find it in somewhere like "C:\Program Files\MariaDB 10.x\lib". Also you have to take a look inside your "mariadb_windows.py" file.

ahke-sied avatar Jan 04 '22 09:01 ahke-sied