Opened 10 years ago

Closed 8 years ago

#2442 closed defect (fixed)

np.float128 does not always exist

Reported by: jradinger Owned by: grass-dev@…
Priority: normal Milestone: 7.2.0
Component: Python Version: svn-trunk
Keywords: t.vect.univar Cc:
CPU: x86-32 Platform: Unspecified


When compiling the latest SVN (62197) of GRASS7 trunk I run into following error (first among the error list, mostly in the temporal dir):

Traceback (most recent call last):
  File "/usr/local/src/grass7_trunk/dist.i686-pc-linux-gnu/scripts/t.vect.univar", line 66, in <module>
    import grass.temporal as tgis
  File "/usr/local/src/grass7_trunk/dist.i686-pc-linux-gnu/etc/python/grass/temporal/", line 29, in <module>
    from temporal_vector_algebra import *
  File "/usr/local/src/grass7_trunk/dist.i686-pc-linux-gnu/etc/python/grass/temporal/", line 420, in <module>
    import grass.pygrass.modules as pygrass
  File "/usr/local/src/grass7_trunk/dist.i686-pc-linux-gnu/etc/python/grass/pygrass/", line 15, in <module>
    from . import raster
  File "/usr/local/src/grass7_trunk/dist.i686-pc-linux-gnu/etc/python/grass/pygrass/raster/", line 35, in <module>
    from grass.pygrass.raster.buffer import Buffer
  File "/usr/local/src/grass7_trunk/dist.i686-pc-linux-gnu/etc/python/grass/pygrass/raster/", line 14, in <module>
    DCELL = (np.float64, np.float128)
AttributeError: 'module' object has no attribute 'float128'
make[1]: *** [t.vect.univar.tmp.html] Error 1

Here I am running Python 2.7.3 with numpy 1.9.0.

Here it says that is is related to the architecture. In my case I am on a 32 bit system.

Changing from np.float128() to np.longdouble() (which exists on my system) should solve the problem.

Change History (6)

comment:1 by martinl, 10 years ago

Component: DefaultPython
Milestone: 7.1.0

in reply to:  description comment:2 by zarch, 10 years ago

Here it says that is is related to the architecture. In my case I am on a 32 bit system.

Right, I didn't thought about it!

Now should be fix in r62206. Moreover I've disconnected (r62205) and isolate the ctypes part of pygrass from the rest, this should make the whole pygrass more stable (I hope).

comment:3 by lucadelu, 8 years ago

Is this ticket still valid?

comment:4 by neteler, 8 years ago


Milestone renamed

comment:5 by neteler, 8 years ago

Keywords: t.vect.univar added

No response, closing.

comment:6 by neteler, 8 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.