Ask Your Question

Revision history [back]

I tried and i cannot reproduce it on GNU/Linux x86_64. I got (without error):

sage: fork_test()
parent, child: 5167
child
2

(i replaced the "dummy matrix calculation" by print 1+1).

Hence, there might be a problem with your build. Did you download the binary corresponding to your OS ? Which one (architecture, OS, Sage binary) ? Did you compile Sage by yourself ? Which version ? Does it work if you run it from a python shell on the same machine (type python from the command line, not sage nor sage -python) ?

I tried and i cannot reproduce it on GNU/Linux x86_64. I got (without error):

sage: fork_test()
parent, child: 5167
child
2

(i replaced the "dummy matrix calculation" by print 1+1).

Hence, there might be a problem with your build. build (and more precisely the python binary). Did you download the binary corresponding to your OS ? Which one (architecture, OS, Sage binary) ? Did you compile Sage by yourself ? Which version ? Does it work if you run it the first script from a python shell on the same machine (type python from the command line, not sage nor sage -python) ?