Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python quit unexpectedly #55

Open
janzheng opened this issue Apr 24, 2023 · 6 comments
Open

Python quit unexpectedly #55

janzheng opened this issue Apr 24, 2023 · 6 comments

Comments

@janzheng
Copy link

Hi there,

I'm trying a basic example on an Intel Mac and getting "Python quit unexpectedly" while Docker is running. I'm logged into Jina and running locally.

Errors:

⠋ Waiting ... ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0/2 -:--:--🐳 The pulled image container does not support ARM architecture while the host machine relies on MacOS (Darwin).The image may run with poor performance or fail if run via emulation.                                                                            
⠧ Waiting deepcomplimentgeneratorexecutor1683106 gateway... ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0/2 0:00:00objc[59837]: +[__NSTimeZone initialize] may have been in progress in another thread when fork() was called.
objc[59837]: +[__NSTimeZone initialize] may have been in progress in another thread when fork() was called. We cannot safely call it or ignore it in the fork() child process. Crashing instead. Set a breakpoint on objc_initializeAfterForkError to debug.
⠏ Waiting deepcomplimentgeneratorexecutor1683106 gateway... ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0/2 0:00:00objc[59836]: +[__NSTimeZone initialize] may have been in progress in another thread when fork() was called.
objc[59836]: +[__NSTimeZone initialize] may have been in progress in another thread when fork() was called. We cannot safely call it or ignore it in the fork() child process. Crashing instead. Set a breakpoint on objc_initializeAfterForkError to debug.
⠏ Waiting deepcomplimentgeneratorexecutor1683106... ━━━━━━━━━━━━━━━━━━━━╺━━━━━━━━━━━━━━━━━━━ 1/2 0:01:19
@JoanFM
Copy link
Member

JoanFM commented Apr 24, 2023

Hey @janzheng ,

can you try setting this environment variable before running it?

export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES

@janzheng
Copy link
Author

janzheng commented Apr 24, 2023

heck yes that worked!!! (Could you please add that in the docs so I remember for the next time?)

@JoanFM
Copy link
Member

JoanFM commented Apr 25, 2023

@florian-hoenicke, @joschkabraun you may want to put it. Jina puts that into your zsrhc or bashrc, but may not work for some other shells.

@florian-hoenicke
Copy link
Member

@JoanFM great that you found the fix.
We install jina in the requirements, so it should automatically set the environment variable right?

@JoanFM
Copy link
Member

JoanFM commented Apr 25, 2023

In theory yes, but maybe for some shells or if some permissions are not there, it may fail to edit the bashrc, etc ...

Therefore it can be good to add

@janzheng
Copy link
Author

fwiw I'm on Mac Intel OSX Ventura 13.2.1, vanilla bash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants