Hi Naajil,

There is a PySLURM mailing-list right there:
https://groups.google.com/forum/#!forum/pyslurm

That's probably a better place to ask for help.

Best,
Rémi

Le 15/04/2016 07:21, Naajil Aamir a écrit :
i guess the error is with cython because it generates pyslurm.c
*
Unable to find pgen, not compiling formal grammar.*
i got this while installing cython but i ignored it because i thought
this is no error

On Fri, Apr 15, 2016 at 9:41 AM, Naajil Aamir <[email protected]
<mailto:[email protected]>> wrote:

    Do i need pyslurm.c file having some code?because in pyslurm2.3.3
    this file is empty and i installed it successfully but when i try to
    import pyslurm i get the following error

    *import pyslurm
    Traceback (most recent call last):
       File "<stdin>", line 1, in <module>
       File
    "/usr/local/lib/python2.7/dist-packages/pyslurm/__init__.py", line
    17, in <module>
         from .pyslurm import *
    ImportError: dynamic module does not define init function (initpyslurm)


    *
    This is what i get after installing pyslurm
    *mpiu@fypmaster-OptiPlex-330:~/Desktop/pyslurm-slurm-2.3.3$ sudo
    python setup.py build
    INFO:root:Info:
    INFO:root:Info: Building PySlurm (2.3.3-1)
    INFO:root:Info: ------------------------------
    INFO:root:Info:
    INFO:root:Info: Cython version 0.24 installed

    running build
    running build_py
    copying pyslurm/__init__.py -> build/lib.linux-x86_64-2.7/pyslurm
    running build_ext
    skipping 'pyslurm/pyslurm.c' Cython extension (up-to-date)
    mpiu@fypmaster-OptiPlex-330:~/Desktop/pyslurm-slurm-2.3.3$ sudo
    python setup.py install
    INFO:root:Info:
    INFO:root:Info: Building PySlurm (2.3.3-1)
    INFO:root:Info: ------------------------------
    INFO:root:Info:
    INFO:root:Info: Cython version 0.24 installed

    running install
    running build
    running build_py
    running build_ext
    skipping 'pyslurm/pyslurm.c' Cython extension (up-to-date)
    running install_lib
    byte-compiling
    /usr/local/lib/python2.7/dist-packages/pyslurm/__init__.py to
    __init__.pyc
    running install_egg_info
    Removing /usr/local/lib/python2.7/dist-packages/pyslurm-2.3.3_1.egg-info
    Writing /usr/local/lib/python2.7/dist-packages/pyslurm-2.3.3_1.egg-info
    mpiu@fypmaster-OptiPlex-330:~/Desktop/pyslurm-slurm-2.3.3$ *

    On Thu, Apr 14, 2016 at 3:46 PM, Benjamin Redling
    <[email protected] <mailto:[email protected]>> wrote:


        On 04/14/2016 11:08, Naajil Aamir wrote:
        > Hi hope you are doing well. I am currently working on a scheduling 
policy
         > of slurm 2.3.2 for that i need *PYSLURM* version that is
        compatible with
        > slurm 2.3.3 which i am unable to find on internet. It would be a 
great help
        > if you could provide a link to PYSLURM for Slurm 2.3.2 repository.

        Maybe the stale branches of pyslurm are what you are looking for?
        https://github.com/PySlurm/pyslurm/branches

        2.3.3 seems to be the oldest

        Benjamin
        --
        FSU Jena | JULIELab.de/Staff/Benjamin+Redling.html
        vox: +49 3641 9 44323 <tel:%2B49%203641%209%2044323> | fax: +49
        3641 9 44321 <tel:%2B49%203641%209%2044321>



Reply via email to