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

Pyslurm-2.5.0 and Cython-0.17.2 raises API issue #14

Closed
gingergeeks opened this issue Dec 8, 2012 · 0 comments
Closed

Pyslurm-2.5.0 and Cython-0.17.2 raises API issue #14

gingergeeks opened this issue Dec 8, 2012 · 0 comments

Comments

@gingergeeks
Copy link
Member

Whilst completing PySlurm-2.5.0 for release the compile was tested against Cython-0.17.2 which has raised the following code error against the Slurm API. Cython is correct and the code below is indeed incorrect ! This needs to be fixed and retested before formal release and previous versions should be verified as well at some point to see where the API changed.

makalu:/home/mark/pyslurm # python setup.py build_ext -inplace
INFO:root:Info:
INFO:root:Info: Building PySlurm (2.5.0-1)
INFO:root:Info: ------------------------------
INFO:root:Info:
INFO:root:Info: Cython version 0.17.2 installed

running build_ext
cythoning pyslurm/pyslurm.pyx to pyslurm/pyslurm.c

Error compiling Cython file:
------------------------------------------------------------
...
        resv_msg.duration = uint32_value

        if reservation_dict[u'node_cnt'] != -1:
                int_value = reservation_dict[u'node_cnt']
                resv_msg.node_cnt = <uint32_t>slurm.xmalloc(sizeof(uint32_t) * 2)
                *resv_msg.node_cnt = int_value
 ^
------------------------------------------------------------

pyslurm/pyslurm.pyx:2893:2: a starred assignment target must be in a list or tuple - maybe you meant to use an index assignment: var              [0] = ...
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

1 participant