Giter Site home page Giter Site logo

Comments (4)

methane avatar methane commented on August 22, 2024

I think you should fix your mysql_config.
mysqlclient-python uses it.

from mysqlclient.

awatts avatar awatts commented on August 22, 2024

It looks like the problem is actually with Anaconda and pip. Closing, because I don't think there's anything mysqlclient can do to help.

from mysqlclient.

methane avatar methane commented on August 22, 2024

I suppose you can use rpath to link libmysqlclient correctly.
And you will be able to modify mysql_config to specify link options.

I'm not an expert of OS X and I haven't used OS X 10.11 yet.
Please google about how to set rpath.

from mysqlclient.

awatts avatar awatts commented on August 22, 2024

Looks like that's what conda does. Further googling led me to the working solution of:

conda skeleton pypi mysqlclient
conda build mysqlclient
conda install /anaconda/conda-bld/osx-64/mysqlclient-1.3.7-py34_0.tar.bz2

And now:

(/hlpUsers/awatts/venvs/django_bcs)awatts@slate:~/venvs/django_bcs/CrowdExp$ otool -L /hlpUsers/awatts/venvs/django_bcs/lib/python3.4/site-packages/_mysql.so
/hlpUsers/awatts/venvs/django_bcs/lib/python3.4/site-packages/_mysql.so:
    /usr/local/opt/mariadb/lib/libmysqlclient.18.dylib (compatibility version 18.0.0, current version 18.0.0)
    @rpath/libz.1.dylib (compatibility version 1.0.0, current version 1.2.8)
    @rpath/libssl.1.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)
    @rpath/libcrypto.1.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1226.10.1)

from mysqlclient.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.