may have been in progress in another thread when fork() was called.

简介: may have been in progress in another thread when fork() was called.

运行Python代码报错,之前好好的,今天很突然

may have been in progress in another thread when fork() was called.

解决方法:添加环境变

OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES

image.png


参考

“+[SomeClass initialize] may have been in progress in another thread when fork() was called”

相关文章
|
6月前
|
NoSQL 编译器 API
关于thread使用的错误:pure virtual method called terminate called without an active exception
关于thread使用的错误:pure virtual method called terminate called without an active exception
114 1
已解决 RuntimeError: There is no current event loop in thread ‘Thread-1‘.
Jetson Xavier NX 报错 RuntimeError: There is no current event loop in thread 'Thread-1'.异常错误,已解决
485 0
已解决 RuntimeError: There is no current event loop in thread ‘Thread-1‘.
|
5月前
|
Python
【ERROR】asyncio.run(main())报错:RuntimeError: Event loop is closed
【ERROR】asyncio.run(main())报错:RuntimeError: Event loop is closed
100 0
|
11月前
|
前端开发
The following tasks did not complete: first Did you forget to signal async completion?
The following tasks did not complete: first Did you forget to signal async completion?
Error:svn:E155037:Previous operation has not finished; run ‘cleanup‘ if it was interrupted(完美解决)
Error:svn:E155037:Previous operation has not finished; run ‘cleanup‘ if it was interrupted(完美解决)
414 0
Error:svn:E155037:Previous operation has not finished; run ‘cleanup‘ if it was interrupted(完美解决)
svn报错:“Previous operation has not finished; run ‘cleanup‘ if it was interrupted“ 的解决办法
svn报错:“Previous operation has not finished; run ‘cleanup‘ if it was interrupted“ 的解决办法
250 0
svn报错:“Previous operation has not finished; run ‘cleanup‘ if it was interrupted“ 的解决办法
|
Python
may have been in progress in another thread when fork() was called.
may have been in progress in another thread when fork() was called.
517 0
may have been in progress in another thread when fork() was called.