pik-copan / pyunicorn

Unified Complex Network and Recurrence Analysis Toolbox
http://pik-potsdam.de/~donges/pyunicorn/
Other
195 stars 86 forks source link

Error installing version 0.6.1 #134

Closed sombuddha-bagchi closed 4 years ago

sombuddha-bagchi commented 4 years ago

I have been trying to install this version in MacOS 10.15.2 Python 3.7.5 but the following error keeps on coming repeatedly. I installed gcc7 but still it did not get resolved.

Error message : pyunicorn/climate/_ext/numerics.c:6421:21: error: no member named 'exc_type' in 'struct _ts'

Command line errors: In file included from pyunicorn/climate/_ext/numerics.c:458: pyunicorn/climate/_ext/src_numerics.c:35:19: warning: incompatible pointer types assigning to 'double ' from 'float ' [-Wincompatible-pointer-types] p_anomaly = anomaly + in_samples; ^ ~~~~ pyunicorn/climate/_ext/numerics.c:6421:21: error: no member named 'exc_type' in 'struct _ts' *type = tstate->exc_type;


    pyunicorn/climate/_ext/numerics.c:6422:22: error: no member named 'exc_value' in 'struct _ts'; did you mean 'curexc_value'?
        *value = tstate->exc_value;
                         ^~~~~~~~~
                         curexc_value
    /Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:240:15: note: 'curexc_value' declared here
        PyObject *curexc_value;
                  ^
    pyunicorn/climate/_ext/numerics.c:6423:19: error: no member named 'exc_traceback' in 'struct _ts'; did you mean 'curexc_traceback'?
        *tb = tstate->exc_traceback;
                      ^~~~~~~~~~~~~
                      curexc_traceback
    /Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:241:15: note: 'curexc_traceback' declared here
        PyObject *curexc_traceback;
                  ^
    pyunicorn/climate/_ext/numerics.c:6430:24: error: no member named 'exc_type' in 'struct _ts'
        tmp_type = tstate->exc_type;
                   ~~~~~~  ^
    pyunicorn/climate/_ext/numerics.c:6431:25: error: no member named 'exc_value' in 'struct _ts'; did you mean 'curexc_value'?
        tmp_value = tstate->exc_value;
                            ^~~~~~~~~
                            curexc_value
    /Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:240:15: note: 'curexc_value' declared here
        PyObject *curexc_value;
                  ^
    pyunicorn/climate/_ext/numerics.c:6432:22: error: no member named 'exc_traceback' in 'struct _ts'; did you mean 'curexc_traceback'?
        tmp_tb = tstate->exc_traceback;
                         ^~~~~~~~~~~~~
                         curexc_traceback
    /Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:241:15: note: 'curexc_traceback' declared here
        PyObject *curexc_traceback;
                  ^
    pyunicorn/climate/_ext/numerics.c:6433:13: error: no member named 'exc_type' in 'struct _ts'
        tstate->exc_type = type;
        ~~~~~~  ^
    pyunicorn/climate/_ext/numerics.c:6434:13: error: no member named 'exc_value' in 'struct _ts'; did you mean 'curexc_value'?
        tstate->exc_value = value;
                ^~~~~~~~~
                curexc_value
    /Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:240:15: note: 'curexc_value' declared here
        PyObject *curexc_value;
                  ^
    pyunicorn/climate/_ext/numerics.c:6435:13: error: no member named 'exc_traceback' in 'struct _ts'; did you mean 'curexc_traceback'?
        tstate->exc_traceback = tb;
                ^~~~~~~~~~~~~
                curexc_traceback
    /Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:241:15: note: 'curexc_traceback' declared here
        PyObject *curexc_traceback;
                  ^
    pyunicorn/climate/_ext/numerics.c:6490:24: error: no member named 'exc_type' in 'struct _ts'
        tmp_type = tstate->exc_type;
                   ~~~~~~  ^
    pyunicorn/climate/_ext/numerics.c:6491:25: error: no member named 'exc_value' in 'struct _ts'; did you mean 'curexc_value'?
        tmp_value = tstate->exc_value;
                            ^~~~~~~~~
                            curexc_value
    /Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:240:15: note: 'curexc_value' declared here
        PyObject *curexc_value;
                  ^
    pyunicorn/climate/_ext/numerics.c:6492:22: error: no member named 'exc_traceback' in 'struct _ts'; did you mean 'curexc_traceback'?
        tmp_tb = tstate->exc_traceback;
                         ^~~~~~~~~~~~~
                         curexc_traceback
    /Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:241:15: note: 'curexc_traceback' declared here
        PyObject *curexc_traceback;
                  ^
    pyunicorn/climate/_ext/numerics.c:6493:13: error: no member named 'exc_type' in 'struct _ts'
        tstate->exc_type = local_type;
        ~~~~~~  ^
    pyunicorn/climate/_ext/numerics.c:6494:13: error: no member named 'exc_value' in 'struct _ts'; did you mean 'curexc_value'?
        tstate->exc_value = local_value;
                ^~~~~~~~~
                curexc_value
    /Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:240:15: note: 'curexc_value' declared here
        PyObject *curexc_value;
                  ^
    pyunicorn/climate/_ext/numerics.c:6495:13: error: no member named 'exc_traceback' in 'struct _ts'; did you mean 'curexc_traceback'?
        tstate->exc_traceback = local_tb;
                ^~~~~~~~~~~~~
                curexc_traceback
    /Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:241:15: note: 'curexc_traceback' declared here
        PyObject *curexc_traceback;
                  ^
    2 warnings and 15 errors generated.
    error: command 'gcc' failed with exit status 1
renzocom commented 4 years ago

Hi @sombuddha-bagchi, I am getting the same error, could you explain how did you solve it?

I'm running MacOS 10.15.3 and Python 3.7.7

sombuddha-bagchi commented 4 years ago

Try running python in a Virtual environment like PyCharm and install Cython, CythonGSL,gcc7 toolboxes. Hope this solves!

renzocom commented 4 years ago

Yes, installing Cython fixed it, thanks!