LINK : fatal error LNK1181: cannot open input file 'mariadbclient.lib'
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 8.9k
- Forks
- 1.6k
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with setup.py and reproduce the difference between python setup.py build and python setup.py install on Windows. Inspect the linker configuration around mariadbclient.lib; done means the install command completes successfully or the required library setup is clearly documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- mysql, python
- Domain
- build-system, databases
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100