sabago / pysph

Automatically exported from code.google.com/p/pysph
0 stars 0 forks source link

Error installing PySPH #7

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download source zip-file or clone repo
2. $ sudo python setup.py install

What is the expected output? What do you see instead?.
Compilation fails for file point.pyx (see output below)

What version of the product are you using? On what operating system?
Latest available zip file (0.9) on Ubuntu 32bit

Please provide any additional information below.
Output to terminal when running $ sudo python setup.py install:

(...)
Cythonizing source/pysph/base/point.pyx

Error compiling Cython file:
------------------------------------------------------------
...
        r[0] = self.data.x
        r[1] = self.data.y
        r[2] = self.data.z
        return r

    cpdef inline double norm(Point self):
         ^
------------------------------------------------------------

source/pysph/base/point.pyx:156:10: Only final types can have final Python (def/
cpdef) methods
Cythonizing source/pysph/sph/funcs/boundary_funcs.pyx
Traceback (most recent call last):
  File "setup.py", line 153, in <module>
    ext_modules = cythonize(ext_modules,nthreads=ncpu,include_path=inc_dirs)
  File "/usr/local/lib/python2.7/dist-packages/Cython-0.17.1-py2.7-linux-i686.eg
g/Cython/Build/Dependencies.py", line 631, in cythonize
    pool.map(cythonize_one_helper, to_compile)
  File "/usr/lib/python2.7/multiprocessing/pool.py", line 227, in map
    return self.map_async(func, iterable, chunksize).get()
  File "/usr/lib/python2.7/multiprocessing/pool.py", line 528, in get
    raise self._value
Cython.Compiler.Errors.CompileError: source/pysph/base/point.pyx

Original issue reported on code.google.com by paal.lev...@gmail.com on 23 Oct 2012 at 9:08

GoogleCodeExporter commented 9 years ago
I am having the same issue. I have tried cython 0.14, cython 0.15, and cython 
0.16. I am currently running Ubuntu 10.4, with Python2.6 because that is 
standard with this Ubuntu and the documentation says that this version was 
confirmed to work. I have also taken out the inline and it will then compile 
into a C++ file but the C++ file fails to compile into a .o and errors out in 
GCC.

Original comment by cram9...@gmail.com on 20 Nov 2012 at 2:25

GoogleCodeExporter commented 9 years ago
To quickly follow up on my earlier comment. I have g++ installed but it 
defaults to compiling with gcc, both my gcc and g++ are version 4.4. I also 
tried cython 0.17 as well.

Original comment by cram9...@gmail.com on 20 Nov 2012 at 2:29

GoogleCodeExporter commented 9 years ago
Same issue under Windows 7, Cython 0.19.1

Original comment by dhy...@gmail.com on 25 Oct 2013 at 1:31