小编Hit*_*wal的帖子

NameError: name '_mysql' 未定义 -- 在 MacOSX 中的气流启动时

关于这个标题问题有很多文章,但没有一篇对我有用。详细错误如下:

Traceback (most recent call last):
  File "/Users/hiteshagarwal/Documents/venv/lib/python3.7/site-packages/MySQLdb/__init__.py", line 18, in <module>
    from . import _mysql
ImportError: dlopen(/Users/hiteshagarwal/Documents/venv/lib/python3.7/site-packages/MySQLdb/_mysql.cpython-37m-darwin.so, 2): Symbol not found: _mysql_affected_rows
  Referenced from: /Users/hiteshagarwal/Documents/venv/lib/python3.7/site-packages/MySQLdb/_mysql.cpython-37m-darwin.so
  Expected in: flat namespace
 in /Users/hiteshagarwal/Documents/venv/lib/python3.7/site-packages/MySQLdb/_mysql.cpython-37m-darwin.so

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/hiteshagarwal/Documents/venv/bin/airflow", line 25, in <module>
    from airflow.configuration import conf
  File "/Users/hiteshagarwal/Documents/venv/lib/python3.7/site-packages/airflow/__init__.py", line 47, in <module>
    settings.initialize()
  File "/Users/hiteshagarwal/Documents/venv/lib/python3.7/site-packages/airflow/settings.py", line 403, in initialize
    configure_adapters()
  File "/Users/hiteshagarwal/Documents/venv/lib/python3.7/site-packages/airflow/settings.py", line 326, in configure_adapters
    import MySQLdb.converters
  File "/Users/hiteshagarwal/Documents/venv/lib/python3.7/site-packages/MySQLdb/__init__.py", …
Run Code Online (Sandbox Code Playgroud)

mysql django airflow airflow-scheduler

3
推荐指数
1
解决办法
8482
查看次数

标签 统计

airflow ×1

airflow-scheduler ×1

django ×1

mysql ×1