Mac M1 arm64,conda activate dify, flask db upgrade error #201

Closed
opened 2026-02-21 17:26:21 -05:00 by yindo · 4 comments
Owner

Originally created by @18810211910 on GitHub (Jun 21, 2023).

ImportError: dlopen(/Users/nenezsnp/anaconda3/envs/py310/lib/python3.10/site-packages/gevent/_gevent_c_hub_local.cpython-310-darwin.so, 0x0002): tried: '/Users/nenezsnp/anaconda3/envs/py310/lib/python3.10/site-packages/gevent/_gevent_c_hub_local.cpython-310-darwin.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/nenezsnp/anaconda3/envs/py310/lib/python3.10/site-packages/gevent/_gevent_c_hub_local.cpython-310-darwin.so' (no such file), '/Users/nenezsnp/anaconda3/envs/py310/lib/python3.10/site-packages/gevent/_gevent_c_hub_local.cpython-310-darwin.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64'))

Originally created by @18810211910 on GitHub (Jun 21, 2023). ImportError: dlopen(/Users/nenezsnp/anaconda3/envs/py310/lib/python3.10/site-packages/gevent/_gevent_c_hub_local.cpython-310-darwin.so, 0x0002): tried: '/Users/nenezsnp/anaconda3/envs/py310/lib/python3.10/site-packages/gevent/_gevent_c_hub_local.cpython-310-darwin.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/nenezsnp/anaconda3/envs/py310/lib/python3.10/site-packages/gevent/_gevent_c_hub_local.cpython-310-darwin.so' (no such file), '/Users/nenezsnp/anaconda3/envs/py310/lib/python3.10/site-packages/gevent/_gevent_c_hub_local.cpython-310-darwin.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64'))
yindo closed this issue 2026-02-21 17:26:21 -05:00
Author
Owner

@18810211910 commented on GitHub (Jun 21, 2023):

按照README.md执行,5.Run migrate Before the first launch, migrate the database to the latest version报错

@18810211910 commented on GitHub (Jun 21, 2023): 按照README.md执行,5.Run migrate Before the first launch, migrate the database to the latest version报错
Author
Owner

@18810211910 commented on GitHub (Jun 21, 2023):

使用 activate base启动报错ImportError: cannot import name 'EVENT_TYPE_OPENED' from 'watchdog.events' (/Users/nenezsnp/anaconda3/lib/python3.10/site-packages/watchdog/events.py)

@18810211910 commented on GitHub (Jun 21, 2023): 使用 activate base启动报错ImportError: cannot import name 'EVENT_TYPE_OPENED' from 'watchdog.events' (/Users/nenezsnp/anaconda3/lib/python3.10/site-packages/watchdog/events.py)
Author
Owner

@crazywoola commented on GitHub (Jun 21, 2023):

pip install --upgrade watchdog or try to cleanup the python environment. and rerun pip install

@crazywoola commented on GitHub (Jun 21, 2023): `pip install --upgrade watchdog` or try to cleanup the python environment. and rerun pip install
Author
Owner

@takatost commented on GitHub (Jun 21, 2023):

Try adding DEBUG=true in the api/.env file

@takatost commented on GitHub (Jun 21, 2023): Try adding `DEBUG=true` in the api/.env file
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#201