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

Kernel dies on my MacBook and multiprocess not run on Windows 10 #38

Closed
xywu-soc opened this issue Mar 14, 2023 · 5 comments
Closed

Kernel dies on my MacBook and multiprocess not run on Windows 10 #38

xywu-soc opened this issue Mar 14, 2023 · 5 comments

Comments

@xywu-soc
Copy link

Hi,

I'm trying to run this package on both my MacBook and Windows 10 machines. However, I cannot get it run on either one.
I'm trying with codes in your example.py, the first example using OllivierRicci().

On my MacBook, the kernel dies as soon as I run 'orc.compute_ricci_curvature()'.
On my Windows 10 desktop, I have to use 'spawn' for multiprocessing as neither 'fork' nor 'forkserver' is available for Windows. The program just hangs in the same line, 'orc.compute_ricci_curvature()'.

Is there any way to get around these issues, on any of the machines? Or this package only runs on particular machines?

Many thanks in advance!

@saibalmars
Copy link
Owner

Hi I tried on MacBook Pro with both Intel and M1 without any problems, can you attached the error code for further investigation?
Since I don't have a windows machine to test, I would suggest run the code inside WSL, it will give you a better compatibility for python too.

@AlenaResiko
Copy link

Hi,

I was wondering if you were able to resolve this issue? I am experiencing similar problem: when running orc.compute_ricci_curvature() on Windows, I get

raise ValueError('cannot find context for %r' % method) from None
ValueError: cannot find context for 'fork'

Do you have any suggestions on what I could potentially do?

@saibalmars
Copy link
Owner

Hi @AlenaResiko, the problem is due to Windows's fork issue. The only solution to run on Windows now is to run it inside WSL. Sorry about the inconvenience.

@AlenaResiko
Copy link

Hi @AlenaResiko, the problem is due to Windows's fork issue. The only solution to run on Windows now is to run it inside WSL. Sorry about the inconvenience.

Thank you!
By the way, the program runs perfectly on MacBook Air M1.

@xywu-soc
Copy link
Author

xywu-soc commented Nov 8, 2023

Hi I tried on MacBook Pro with both Intel and M1 without any problems, can you attached the error code for further investigation? Since I don't have a windows machine to test, I would suggest run the code inside WSL, it will give you a better compatibility for python too.

Hi, thank you so much for the reply! I was in conference travelling without a compatible machine to try on when receiving the reply, and we were distracted by some other unexpected issues on that project later on. Sorry for the delayed response.

It works perfectly on both newer MacBook and Linux-based virtual machines. Thank you so much for this great package and the help!

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