Replies: 2 comments
-
Hello, @19920716! I'm here to help you with any bugs, questions, or contributions while you wait for a human maintainer. The import lock issue during debugging in PyCharm is likely caused by the use of if not os.environ.get("DEBUG") or os.environ.get("DEBUG", "false").lower() != 'true':
from gevent import monkey
monkey.patch_all()
import grpc.experimental.gevent
grpc.experimental.gevent.init_gevent() When To resolve this, you can try the following steps:
By following these steps, you should be able to mitigate the import lock issue and improve the debugging experience in PyCharm. |
Beta Was this translation helpful? Give feedback.
-
The import lock issue during debugging in PyCharm is likely caused by the use of if not os.environ.get("DEBUG") or os.environ.get("DEBUG", "false").lower() != 'true':
from gevent import monkey
monkey.patch_all()
import grpc.experimental.gevent
grpc.experimental.gevent.init_gevent() When To resolve this, you can try the following steps:
By following these steps, you should be able to mitigate the import lock issue and improve the debugging experience in PyCharm. For more details, you can refer to the similar issue here. |
Beta Was this translation helpful? Give feedback.
-
Self Checks
Dify version
github main branch
Cloud or Self Hosted
Self Hosted (Source)
Steps to reproduce
File "", line 1024, in _find_and_load
File "", line 174, in exit
File "", line 129, in release
RuntimeError: cannot release un-acquired lock
✔️ Expected Behavior
File "", line 1024, in _find_and_load
File "", line 174, in exit
File "", line 129, in release
RuntimeError: cannot release un-acquired lock
❌ Actual Behavior
File "", line 1024, in _find_and_load
File "", line 174, in exit
File "", line 129, in release
RuntimeError: cannot release un-acquired lock
Beta Was this translation helpful? Give feedback.
All reactions