Polymer v4.17beta2 cython compiling error

Post Reply
lcatipovic
Posts: 2
Joined: Thu Aug 19, 2021 3:52 pm
company / institution: Woods hole oceanographic Institution
Location: Woods Hole, MA

Polymer v4.17beta2 cython compiling error

Post by lcatipovic »

Hello,

I am having trouble during the make step in v4.17beta2 when compiling with cython. The terminal output is as follows:

RuntimeError:
An attempt has been made to start a new process before the
current process has finished its bootstrapping phase.

This probably means that you are not using fork to start your
child processes and you have forgotten to use the proper idiom
in the main module:

if __name__ == '__main__':
freeze_support()
...

The "freeze_support()" line can be omitted if the program
is not going to be frozen to produce an executable.

There is much more output that I can provide if needed but the reoccurring error message is this. I am seeing this issue on both a 2023 Mac with an M3 chip as well as a 2014 Mac with an intel core I7.

Appreciate any help, thanks in advance.

-Luka
lcatipovic
Posts: 2
Joined: Thu Aug 19, 2021 3:52 pm
company / institution: Woods hole oceanographic Institution
Location: Woods Hole, MA

Re: Polymer v4.17beta2 cython compiling error

Post by lcatipovic »

Update, this error occurred when using the polymer version found on the GitHub. The issue was resolved when I downloaded v4.17beta2 from this website and operated out of the included polymer-v4.17beta2 folder
User avatar
fsteinmetz
Site Admin
Posts: 314
Joined: Fri Sep 07, 2018 1:34 pm
company / institution: Hygeos
Location: Lille, France
Contact:

Re: Polymer v4.17beta2 cython compiling error

Post by fsteinmetz »

Hello,
Apologies for the late answer. Which version of cython were you using ?
The culprit commit concerns probably the modifications introduced for supporting cython>=3.
However I have no experience of using polymer on Mac ; I don't know if using cython on this system may have an impact, and can not do the test.
François
Post Reply