Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 479434 - dev-python/astropy-0.2.3 - error: 'FITSfile' has no member named 'quantize_dither'
Summary: dev-python/astropy-0.2.3 - error: 'FITSfile' has no member named 'quantize_di...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-01 20:29 UTC by drnairb
Modified: 2013-08-01 21:24 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info '=dev-python/astropy-0.2.3' (emerge_info,6.21 KB, text/plain)
2013-08-01 20:29 UTC, drnairb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description drnairb 2013-08-01 20:29:43 UTC
Created attachment 354852 [details]
emerge --info '=dev-python/astropy-0.2.3'

Below is output of "emerge astropy". The latest version of sci-libs/cfitsio available in the Gentoo tree is 3.140, but the latest version available from NASA is 3.350. Maybe updating to the latest version would fix this? (The warning about CFITSIO_MAJOR being undefined makes me think this.)

...

building 'astropy.io.fits.compression' extension
creating /var/tmp/portage/dev-python/astropy-0.2.3/work/astropy-0.2.3-python2_7/temp.linux-x86_64-2.7/astropy/io/fits
creating /var/tmp/portage/dev-python/astropy-0.2.3/work/astropy-0.2.3-python2_7/temp.linux-x86_64-2.7/astropy/io/fits/src
x86_64-pc-linux-gnu-gcc -pthread -O2 -pipe -march=native -fPIC -I/usr/lib64/python2.7/site-packages/numpy/core/include -I/usr/include/python2.7 -c astropy/io/fits/src/compressionmodule.c -o /var/tmp/portage/dev-python/astropy-0.2.3/work/astropy-0.2.3-python2_7/temp.linux-x86_64-2.7/astropy/io/fits/src/compressionmodule.o
In file included from /usr/include/python2.7/Python.h:8:0,
                 from astropy/io/fits/src/compressionmodule.c:99:
/usr/include/python2.7/pyconfig.h:1173:0: warning: "_POSIX_C_SOURCE" redefined [enabled by default]
/usr/include/features.h:215:0: note: this is the location of the previous definition
In file included from astropy/io/fits/src/compressionmodule.c:103:0:
astropy/io/fits/src/compressionmodule.h:23:10: warning: #warning "CFITSIO_MAJOR not defined; your CFITSIO version may be too old; compile at your own risk" [-Wcpp]
astropy/io/fits/src/compressionmodule.c: In function 'configure_compression':
astropy/io/fits/src/compressionmodule.c:662:17: error: 'FITSfile' has no member named 'quantize_dither'
astropy/io/fits/src/compressionmodule.c:662:37: error: 'SUBTRACTIVE_DITHER_1' undeclared (first use in this function)
astropy/io/fits/src/compressionmodule.c:662:37: note: each undeclared identifier is reported only once for each function it appears in
astropy/io/fits/src/compressionmodule.c:664:17: error: 'FITSfile' has no member named 'quantize_dither'
astropy/io/fits/src/compressionmodule.c:667:13: error: 'FITSfile' has no member named 'quantize_dither'
error: command 'x86_64-pc-linux-gnu-gcc' failed with exit status 1
 * ERROR: dev-python/astropy-0.2.3 failed (compile phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line   93:  Called src_compile
 *   environment, line 3532:  Called distutils-r1_src_compile
 *   environment, line 1022:  Called _distutils-r1_run_foreach_impl 'distutils-r1_python_compile'
 *   environment, line  245:  Called python_parallel_foreach_impl 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 3401:  Called multibuild_parallel_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 2646:  Called multibuild_foreach_variant '_multibuild_parallel' '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 2594:  Called _multibuild_run '_multibuild_parallel' '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 2592:  Called _multibuild_parallel '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 2637:  Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line  597:  Called distutils-r1_run_phase 'distutils-r1_python_compile'
 *   environment, line 1011:  Called distutils-r1_python_compile
 *   environment, line  913:  Called esetup.py
 *   environment, line 1794:  Called die
 * The specific snippet of code:
 *       "${@}" || die
Comment 1 drnairb 2013-08-01 21:24:59 UTC
Never mind, adding version 3.350 of sci-libs/cfitsio to package.accept_keywords fixed this.