Skip to content

error Library not loaded: /usr/local/opt/mysql-client/lib/libssl.1.1.dylib #546

@dinager

Description

@dinager

Describe the bug

Uncaught exception!
Traceback (most recent call last):
  File "/Users/myname/my-app/some/path/sqlalchemy_db_profiling.py", line 10, in <module>
    from MySQLdb.converters import conversions, escape
  File "/Users/myname/my-app/venv/lib/python3.7/site-packages/MySQLdb/__init__.py", line 18, in <module>
    from . import _mysql
ImportError: dlopen(/Users/myname/my-app/venv/lib/python3.7/site-packages/MySQLdb/_mysql.cpython-37m-darwin.so, 2): 
  Library not loaded: /usr/local/opt/mysql-client/lib/libssl.1.1.dylib
      Referenced from: /Users/myname/my-app/venv/lib/python3.7/site-packages/MySQLdb/_mysql.cpython-37m-darwin.so
      Reason: image not found

installed package:
mysqlclient==1.4.6

Environment

  • OS: macOS 11.4 (Big Sur)

  • Python: pyenv Python 3.7.10

  • Connector/C: Homebrew mysql-client 8.0.29

  • Openssl: Brew openssl@1.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions