[yt-dev] Issue #1039: Can't compile cython code with latest dev (yt_analysis/yt)
Adam Ginsburg
issues-reply at bitbucket.org
Thu Jul 2 09:26:46 PDT 2015
New issue 1039: Can't compile cython code with latest dev
https://bitbucket.org/yt_analysis/yt/issue/1039/cant-compile-cython-code-with-latest-dev
Adam Ginsburg:
(this could be an hg mistake on my part though)
I get this traceback when doing `python setup.py install` on the commit yt::16305:4d383ff42e24 (I think that's branch::commit#:commithash)
```
Error compiling Cython file:
------------------------------------------------------------
...
# So, let's compute these vectors. See above where these are written out
# for ease of use.
cdef np.float64_t vec1[3], vec2[3], cp_vec[3], dp, npoint[3]
cdef np.uint8_t faces[MAX_NUM_FACES][2][2], nf
if nvertices == 4:
faces = tetra_face_defs
^
------------------------------------------------------------
yt/utilities/lib/pixelization_routines.pyx:382:14: Assignment to non-lvalue 'faces'
Error compiling Cython file:
------------------------------------------------------------
...
cdef np.uint8_t faces[MAX_NUM_FACES][2][2], nf
if nvertices == 4:
faces = tetra_face_defs
nf = TETRA_NF
elif nvertices == 6:
faces = wedge_face_defs
^
------------------------------------------------------------
yt/utilities/lib/pixelization_routines.pyx:385:14: Assignment to non-lvalue 'faces'
Error compiling Cython file:
------------------------------------------------------------
...
nf = TETRA_NF
elif nvertices == 6:
faces = wedge_face_defs
nf = WEDGE_NF
elif nvertices == 8:
faces = hex_face_defs
^
------------------------------------------------------------
yt/utilities/lib/pixelization_routines.pyx:388:14: Assignment to non-lvalue 'faces'
error: 3 errors while compiling 'yt/utilities/lib/pixelization_routines.pyx' with Cython
```
Is this just me doing something stupid in a dirty build environment, or is there a real underlying issue?
Note that I attempted to update in the hope of correcting this error that I had encountered a few months ago when running `export_sketchfab`:
```
File "/Users/adam/repos/yt/yt/data_objects/construction_data_containers.py", line 1722, in export_sketchfab
sample_type = "vertex")
File "/Users/adam/repos/yt/yt/data_objects/construction_data_containers.py", line 1571, in export_ply
self.get_data(color_field, sample_type)
File "/Users/adam/repos/yt/yt/data_objects/construction_data_containers.py", line 1009, in get_data
preload_fields = deps)):
File "/Users/adam/repos/yt/yt/utilities/parallel_tools/parallel_analysis_interface.py", line 507, in parallel_objects
for obj_id, obj in oiter:
File "/Users/adam/repos/yt/yt/data_objects/data_containers.py", line 599, in chunks
for chunk in self.index._chunk(self, chunking_style, **kwargs):
File "/Users/adam/repos/yt/yt/geometry/geometry_handler.py", line 266, in _chunk
return self._chunk_io(dobj, **kwargs)
TypeError: _chunk_io() got an unexpected keyword argument 'preload_fields'
```
More information about the yt-dev
mailing list