Cryptic Cython Error Message

asked 2022-11-27 23:40:19 +0100

Quinten87 gravatar image

updated 2022-11-28 00:09:58 +0100

I have been coding a basic algorithm to compute infinite dimensional path integrals in cython cell in sagemath and have received an error message I am completely baffled by. Despite a good amount of effort I can not reproduce this in a short code sequence. I don't expect anyone to look through my whole code (I can't upload attachments as I do not have 60 points), but if someone could at least tell me what to look for in my code or what this error message means it would be very helpful and very much appreciated. The google does not seem to offer many suggestions.

End of the long error message (or at least what I think is relevant "command 'gcc' failed with exit status 1" also shows up a lot):

/home/sage/.sage/temp/LAPTOP-IGPR97B1/1431/spyx/_home_sage__sage_temp_LAPTOP_IGPR97B1_1431_tmp__kf5usfp_pyx/_home_sage__sage_ temp_LAPTOP_IGPR97B1_1431_tmp__kf5usfp_pyx_0.c:871:10: error: field ‘__pyx_v_S’ declared as a function 871 | double __pyx_v_S(double *); | ^~~~~~~~~

It is perhaps relevant to mention that I did not declare anything as ‘__pyx_v_S’. Finally, if it matters, I am using Sagemath 9.3.

edit retag flag offensive close merge delete

Comments

first thing to do is to use a more recent version of sage (9.7)

FrédéricC gravatar imageFrédéricC ( 2022-11-28 10:18:13 +0100 )edit

second thing to do is to share the entire cython code together with the command you used to compile.

vdelecroix gravatar imagevdelecroix ( 2022-11-30 13:49:35 +0100 )edit