You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2018/03/28 11:27:27 UTC

[GitHub] asitstands opened a new issue #10295: Build failure with recent versions of cython and setuptools

asitstands opened a new issue #10295: Build failure with recent versions of cython and setuptools
URL: https://github.com/apache/incubator-mxnet/issues/10295
 
 
   `make cython` fails with the following errors. My environment is Arch linux with python 3.6.4, cython 0.28.1, and setuptools 39.0.1. I got these errors after recent update of cython.
   
   ```
   Compiling mxnet/cython/ndarray.pyx because it changed.
   Compiling mxnet/cython/symbol.pyx because it changed.
   [1/2] Cythonizing mxnet/cython/ndarray.pyx
   
   Error compiling Cython file:
   ------------------------------------------------------------
   ...
   # Licensed to the Apache Software Foundation (ASF) under one
   ^
   ------------------------------------------------------------
   
   mxnet/cython/ndarray.pyx:1:0: 'mxnet/_cy3/.ndarray' is not a valid module name
   Traceback (most recent call last):
     File "setup.py", line 108, in <module>
       ext_modules=config_cython(),
     File "setup.py", line 96, in config_cython
       return cythonize(ret)
     File "/usr/lib/python3.6/site-packages/Cython/Build/Dependencies.py", line 1026, in cythonize
       cythonize_one(*args)
     File "/usr/lib/python3.6/site-packages/Cython/Build/Dependencies.py", line 1146, in cythonize_one
       raise CompileError(None, pyx_file)
   Cython.Compiler.Errors.CompileError: mxnet/cython/ndarray.pyx
   ```
   Downgrading cython to 0.27.3 resolves this but gives warnings and different errors.
   ```
   Warning: Extension name 'mxnet/_cy3/.ndarray' does not match fully qualified name 'ndarray' of 'mxnet/cython/ndarray.pyx'
   Warning: Extension name 'mxnet/_cy3/.symbol' does not match fully qualified name 'symbol' of 'mxnet/cython/symbol.pyx'
   Compiling mxnet/cython/ndarray.pyx because it changed.
   Compiling mxnet/cython/symbol.pyx because it changed.
   [1/2] Cythonizing mxnet/cython/ndarray.pyx
   [2/2] Cythonizing mxnet/cython/symbol.pyx
   running build_ext
   error: each element of 'ext_modules' option must be an Extension instance or 2-tuple
   ```
   If I run `python setup.py build_ext --with-cython` (without `--inplace`), the build succeeds with cython 0.27.3.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services