You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was just trying to build the most recent package from scratch and I got the following error:
error: astropy/time/sofa_time.c: Could not find C file astropy/time/sofa_time.c for Cython file astropy/time/sofa_time.pyx when building extension astropy.time.sofa_time. Cython must be installed to build from a git checkout
After installing cython, I'm still getting this error and can't build this package. I imagine this might be related to #396, but I'm not really sure at the moment. Any ideas?
And will cython installation be necessary for the installation of the package? If so, the documents should be updated.
This is an old bug, but I'm encountering that error when attempting to pip install v0.1: IOError: Could not find C file astropy/nddata/convolution/boundary_wrap.c for Cython file astropy/nddata/convolution/boundary_wrap.pyx when building extension astropy.nddata.convolution.boundary_wrap. Cython must be installed to build from a git checkout
I'm confused because cython is installed and this is a tarball install, so the .c files should be included.
@keflavich - I think this is a known bug in 0.1 - it definitely acts somewhat oddly with respect to building with Cython. There was some talk of a 0.1.1 release to fix this problem (at least, I think it's the same one), but we opted to just forge ahead and wait until 0.2 to get a release that fixed it.
Activity
mdboom commentedon Oct 9, 2012
Cython is required when checking out from github, but we do ship the pre-Cythoned
.cfiles in release tarballs, so Cython isn't required in that case.I'm not sure why it's not finding your Cython. If you start up the "python" you're using to build and type "import Cython", does that work?
crawfordsm commentedon Oct 9, 2012
Ah, that was the problem--cython was installed somewhere else other than in the normal python path.
It might be good idea in mentioning cython for the 'build from source' description in the documents.
eteq commentedon Oct 11, 2012
FYI, @crawfordsm, I added this to the build directions at astropy.org - was there somewhere else in the documentation you were thinking of, too?
crawfordsm commentedon Oct 11, 2012
Updating the docs/install.rst would probably be the only other place I can think of. Thanks Eric!
eteq commentedon Oct 16, 2012
@crawfordsm - just updated that in 6ff918e - thanks for the suggestion!
keflavich commentedon Jan 13, 2013
This is an old bug, but I'm encountering that error when attempting to pip install v0.1:
IOError: Could not find C file astropy/nddata/convolution/boundary_wrap.c for Cython file astropy/nddata/convolution/boundary_wrap.pyx when building extension astropy.nddata.convolution.boundary_wrap. Cython must be installed to build from a git checkoutI'm confused because cython is installed and this is a tarball install, so the
.cfiles should be included.Command I'm trying:
pip install https://github.com/astropy/astropy/archive/v0.1.tar.gz(and in case there's any doubt,
pipuses the samepythonthat importsCython:)
eteq commentedon Jan 14, 2013
@keflavich - I think this is a known bug in 0.1 - it definitely acts somewhat oddly with respect to building with Cython. There was some talk of a 0.1.1 release to fix this problem (at least, I think it's the same one), but we opted to just forge ahead and wait until 0.2 to get a release that fixed it.
Merge pull request astropy#407 from drdavella/fix-test-warnings