#543 [pytango] error compiling 8.0.1 with init_numpy

closed-invalid
5
2012-10-10
2012-10-10
No

Hello tiago,

to me the 8.0.1 will have a very short time of life :)

gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -D_FORTIFY_SOURCE=2 -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -fPIC -DPYTANGO_HAS_UNIQUE_PTR=1 -I/tmp/buildd/pytango-8.0.1/src -I/usr/include -I/usr/include/tango -I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/include/python3.2mu -c /tmp/buildd/pytango-8.0.1/src/pytango.cpp -o build/temp.linux-i686-3.2/tmp/buildd/pytango-8.0.1/src/pytango.o -std=c++0x
/tmp/buildd/pytango-8.0.1/src/pytango.cpp: In function 'void init_numpy()':
/tmp/buildd/pytango-8.0.1/src/pytango.cpp:71:136: error: return-statement with a value, in function returning 'void' [-fpermissive]
error: command 'gcc' failed with exit status 1

I am using numpy 1.6.2.
Before the modification of init_numpy the code was compiling.
It seems that a void function return a value ???

cheers

Fred

Discussion

  • Tiago Coutinho

    Tiago Coutinho - 2012-10-10

    Hello Frédéric,

    Which SVN revision are you using? I have commited a change on Mon Oct 8 19:00 (revision 21230) which should fix the problem for both linux and windows, python 2 and 3
    Can you confirm that with revision 21230 the problem is fixed? If this is the case then there should be no problem for 8.0.1

    There would be a warning in case you have Python >=3 and NOT numpy installed. I have fixed this warning as well but I still didn't commit it to SVN.

    Thanks in advance.

     
  • Frédéric PICCA

    Hello,

    I am using the tar.gz uploaded at pypy

    http://pypi.python.org/packages/source/P/PyTango/PyTango-\(.*)\.tar\.gz

    On the Debian infrastructure we use a watch file which check for newer version of a package.
    That way I package the "new" 8.0.1 version ;)

    this is maybe not the official pyTango 8.0.1.

    I can confirma that I install pyton-numpy and python3-numpy.
    So I have multiple version of numpy installed for pyton 2.6 2.7 and 3.2

    Cheers

    Fred

     
  • Tiago Coutinho

    Tiago Coutinho - 2012-10-10

    Hello,

    I registered PyTango 8.0.1 on PyPI but i marked it as hidden so I could do any change if necessary (like replacing files).
    Now that I am aware I will be more careful.
    I will remove 8.0.1 from PyPI and release a 8.0.2 because I already saw that there are many downloads already (specially for windows!)

    I close this bub and mark it as Invalid.

    Thanks for the warning.

     
  • Tiago Coutinho

    Tiago Coutinho - 2012-10-10
    • status: open --> closed-invalid
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks