Open lgalbany opened 7 years ago
This is odd. For some reason sps_setup is looking for a MILES library at Z=0. (whereas it should be something like Z=0.0008). So it seems like the zlegend values are being truncated.
Can you let me know the output of
more $SPS_HOME/SPECTRA/MILES/zlegend.dat
ls $SPS_HOME/SPECTRA/MILES/*bin
lluis:~ lluisgalbany$ more $SPS_HOME/SPECTRA/MILES/zlegend.dat 0.0008 0.0035 0.0097 0.0190 0.0300 lluis:~ lluisgalbany$ ls $SPS_HOME/SPECTRA/MILES/*bin /Users/lluisgalbany/Palpha/fsps//SPECTRA/MILES/imiles_z0..spectra.bin /Users/lluisgalbany/Palpha/fsps//SPECTRA/MILES/imiles_z0.0097.spectra.bin /Users/lluisgalbany/Palpha/fsps//SPECTRA/MILES/imiles_z0.0008.spectra.bin /Users/lluisgalbany/Palpha/fsps//SPECTRA/MILES/imiles_z0.0190.spectra.bin /Users/lluisgalbany/Palpha/fsps//SPECTRA/MILES/imiles_z0.0035.spectra.bin /Users/lluisgalbany/Palpha/fsps//SPECTRA/MILES/imiles_z0.0300.spectra.bin lluis:~ lluisgalbany$
While I am able to run the executable 'autosps.exe' in the fsps/src folder (so fsps in fortran runs well), the problem seems to be in the python fsps.StellarPopulation function.
hmm. well, I'm not sure why this file exists
/Users/lluisgalbany/Palpha/fsps//SPECTRA/MILES/imiles_z0..spectra.bin
Can you try adding the following line to sps_setup.f90
at line 217
WRITE(*, *) z, nzinit, zstype, zlegendinit(z)
and then from the command line
cd $SPS_HOME/src/
make clean
make all
and reinstall python-fsps
BTW, how did you install python-fsps? pip or a development version?
It is bizarre that autosps.exe
works but python-fsps StellarPopulation
returns such an error, since python-fsps does not touch any of the relevant code where this error occurs.
what are your fsps compile flags?
'imiles_z0..spectra.bin' that was just me trying to check if it was a truncation problem...
flags for (fortran) fsps were F90FLAGS = -O3 -march=native -fPIC -cpp
and this si what I got wfter reinstalling all:
In [2]: import fsps
In [3]: sp = fsps.StellarPopulation(compute_vega_mags=False, zcontinuous=1, sfh=0, logzsol=0.0, dust_type=2, dust2=0.2) ...: 1 5 0. 8.0000000000000004E-004 SPS_SETUP ERROR: miles spectral library cannot be opened Z=0.
and what is the output when you run autosps.exe?
it seems to do fine!
./autosps.exe enter IMF [0-5; def:0]: (0=Salpeter, 1=Chabrier 2003, 2=Kroupa 2001, 3=van Dokkum 2008, 4=Dave 2008, 5=tabulated)
---> Using IMF 0
Specify SFH [0-2, def:0] (0=SSP, 1=CSP, 2=tabulated)
---> Computing an SSP
enter metallicity [1-22; def:20]:
---> Using metallicity 20 corresponding to log(Z/Zsol)= 0.00
Include default dust model? [yes/no, def:no] (default: tau1=1.0, tau2=0.3, MW extinction)
---> tau1= 0.00, tau2= 0.00
Enter filename [def: "CSP.out"]
---> Output filename: CSP.out
---> Running model.......
1 5 0.0008 8.0000000000000004E-004
2 5 0.0035 3.5000000000000001E-003
3 5 0.0097 9.7000000000000003E-003
4 5 0.0190 1.9000000000000000E-002
5 5 0.0300 2.9999999999999999E-002
Very strange. python-fsps does not touch anything in sps_setup, and indeed uses the compiled fsps/src/sps_setup.o module. All I can think is something has gone very strange in the f2py wrapping and linking process. What version of numpy are you using?
I run OSX 10.6.4, Homebrew GCC 6.3.0, numpy 1.12.0 and do not have this problem. The only major difference from your setup besides numpy is that I don't use the march=native f90 compile flag. Maybe try without that?
I have numpy 1.11, but I am trying to update to 1.13.
ok. and I meant OSX 10.12.4, so similar to your OS. If you till have the problem after upgrading numpy please post the log of the python-fsps install, i.e. the output of python setup.py install.
It works.
I did something more than just updating numpy. I started a new python3.6 environment and installed everything again. It could be due to some stupid conflict in my previous python installation.
thank you very much for your help!
glad it's working!
Wait!
I just created a python2.7 environment AND I HAVE AGAIN THE SAME PROBLEM!
Do you use 2.7 or 3.6?
I use 2.7.13 So weird!
Oh... at least I can still use fsps with python 3...
just to follow up your previous comment, this is the output of python (2.7) setup.py install:
(py27) lluis:python-fsps lluisgalbany$ python setup.py install
running install
running bdist_egg
running egg_info
writing fsps.egg-info/PKG-INFO
writing top-level names to fsps.egg-info/top_level.txt
writing dependency_links to fsps.egg-info/dependency_links.txt
reading manifest file 'fsps.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'fsps/data/filter_keys.txt'
writing manifest file 'fsps.egg-info/SOURCES.txt'
installing library code to build/bdist.macosx-10.6-x86_64/egg
running install_lib
running build_py
running build_ext
Running f2py on ['fsps.f90'] with flags ['-m', '_fsps', '-h', 'fsps.pyf', '--overwrite-signature']
Reading fortran codes...
Reading file 'fsps.f90' (format:free)
rmbadname1: Replacing "const" with "const_bn".
rmbadname1: Replacing "const" with "const_bn".
Post-processing...
Block: _fsps
Block: driver
In: :_fsps:fsps.f90:driver
get_useparameters: no module sps_utils info used by driver
In: :_fsps:fsps.f90:driver
get_useparameters: no module sps_vars info used by driver
In: :_fsps:fsps.f90:driver
getarrlen:variable "ntfull" undefined
In: :_fsps:fsps.f90:driver
getarrlen:variable "nz" undefined
In: :_fsps:fsps.f90:driver
getarrlen:variable "nz" undefined
In: :_fsps:fsps.f90:driver
getarrlen:variable "nt" undefined
Block: setup
In: :_fsps:fsps.f90:driver:setup
get_useparameters: no module sps_utils info used by setup
In: :_fsps:fsps.f90:driver:setup
get_useparameters: no module sps_vars info used by setup
Block: set_ssp_params
In: :_fsps:fsps.f90:driver:set_ssp_params
get_useparameters: no module sps_utils info used by set_ssp_params
In: :_fsps:fsps.f90:driver:set_ssp_params
get_useparameters: no module sps_vars info used by set_ssp_params
Block: set_csp_params
In: :_fsps:fsps.f90:driver:set_csp_params
get_useparameters: no module sps_utils info used by set_csp_params
In: :_fsps:fsps.f90:driver:set_csp_params
get_useparameters: no module sps_vars info used by set_csp_params
Block: ssps
In: :_fsps:fsps.f90:driver:ssps
get_useparameters: no module sps_utils info used by ssps
In: :_fsps:fsps.f90:driver:ssps
get_useparameters: no module sps_vars info used by ssps
Block: ssp
In: :_fsps:fsps.f90:driver:ssp
get_useparameters: no module sps_utils info used by ssp
In: :_fsps:fsps.f90:driver:ssp
get_useparameters: no module sps_vars info used by ssp
Block: compute_zdep
In: :_fsps:fsps.f90:driver:compute_zdep
get_useparameters: no module sps_utils info used by compute_zdep
In: :_fsps:fsps.f90:driver:compute_zdep
get_useparameters: no module sps_vars info used by compute_zdep
Block: get_spec
In: :_fsps:fsps.f90:driver:get_spec
get_useparameters: no module sps_utils info used by get_spec
In: :_fsps:fsps.f90:driver:get_spec
get_useparameters: no module sps_vars info used by get_spec
Block: get_mags
In: :_fsps:fsps.f90:driver:get_mags
get_useparameters: no module sps_utils info used by get_mags
In: :_fsps:fsps.f90:driver:get_mags
get_useparameters: no module sps_vars info used by get_mags
Block: interp_ssp
In: :_fsps:fsps.f90:driver:interp_ssp
get_useparameters: no module sps_utils info used by interp_ssp
In: :_fsps:fsps.f90:driver:interp_ssp
get_useparameters: no module sps_vars info used by interp_ssp
In: :_fsps:fsps.f90:driver:interp_ssp
getarrlen:variable "nt" undefined
Block: smooth_spectrum
In: :_fsps:fsps.f90:driver:smooth_spectrum
get_useparameters: no module sps_utils info used by smooth_spectrum
In: :_fsps:fsps.f90:driver:smooth_spectrum
get_useparameters: no module sps_vars info used by smooth_spectrum
Block: stellar_spectrum
In: :_fsps:fsps.f90:driver:stellar_spectrum
get_useparameters: no module sps_utils info used by stellar_spectrum
In: :_fsps:fsps.f90:driver:stellar_spectrum
get_useparameters: no module sps_vars info used by stellar_spectrum
Block: get_ssp_spec
In: :_fsps:fsps.f90:driver:get_ssp_spec
get_useparameters: no module sps_utils info used by get_ssp_spec
In: :_fsps:fsps.f90:driver:get_ssp_spec
get_useparameters: no module sps_vars info used by get_ssp_spec
Block: set_sfh_tab
In: :_fsps:fsps.f90:driver:set_sfh_tab
get_useparameters: no module sps_utils info used by set_sfh_tab
In: :_fsps:fsps.f90:driver:set_sfh_tab
get_useparameters: no module sps_vars info used by set_sfh_tab
Block: set_ssp_lsf
In: :_fsps:fsps.f90:driver:set_ssp_lsf
get_useparameters: no module sps_utils info used by set_ssp_lsf
In: :_fsps:fsps.f90:driver:set_ssp_lsf
get_useparameters: no module sps_vars info used by set_ssp_lsf
Block: get_setup_vars
In: :_fsps:fsps.f90:driver:get_setup_vars
get_useparameters: no module sps_utils info used by get_setup_vars
In: :_fsps:fsps.f90:driver:get_setup_vars
get_useparameters: no module sps_vars info used by get_setup_vars
Block: get_nz
In: :_fsps:fsps.f90:driver:get_nz
get_useparameters: no module sps_utils info used by get_nz
In: :_fsps:fsps.f90:driver:get_nz
get_useparameters: no module sps_vars info used by get_nz
Block: get_zlegend
In: :_fsps:fsps.f90:driver:get_zlegend
get_useparameters: no module sps_utils info used by get_zlegend
In: :_fsps:fsps.f90:driver:get_zlegend
get_useparameters: no module sps_vars info used by get_zlegend
Block: get_timefull
In: :_fsps:fsps.f90:driver:get_timefull
get_useparameters: no module sps_utils info used by get_timefull
In: :_fsps:fsps.f90:driver:get_timefull
get_useparameters: no module sps_vars info used by get_timefull
Block: get_ntfull
In: :_fsps:fsps.f90:driver:get_ntfull
get_useparameters: no module sps_utils info used by get_ntfull
In: :_fsps:fsps.f90:driver:get_ntfull
get_useparameters: no module sps_vars info used by get_ntfull
Block: get_nspec
In: :_fsps:fsps.f90:driver:get_nspec
get_useparameters: no module sps_utils info used by get_nspec
In: :_fsps:fsps.f90:driver:get_nspec
get_useparameters: no module sps_vars info used by get_nspec
Block: get_nbands
In: :_fsps:fsps.f90:driver:get_nbands
get_useparameters: no module sps_utils info used by get_nbands
In: :_fsps:fsps.f90:driver:get_nbands
get_useparameters: no module sps_vars info used by get_nbands
Block: get_nemline
In: :_fsps:fsps.f90:driver:get_nemline
get_useparameters: no module sps_utils info used by get_nemline
In: :_fsps:fsps.f90:driver:get_nemline
get_useparameters: no module sps_vars info used by get_nemline
Block: get_emlambda
In: :_fsps:fsps.f90:driver:get_emlambda
get_useparameters: no module sps_utils info used by get_emlambda
In: :_fsps:fsps.f90:driver:get_emlambda
get_useparameters: no module sps_vars info used by get_emlambda
Block: get_lambda
In: :_fsps:fsps.f90:driver:get_lambda
get_useparameters: no module sps_utils info used by get_lambda
In: :_fsps:fsps.f90:driver:get_lambda
get_useparameters: no module sps_vars info used by get_lambda
Block: get_libraries
In: :_fsps:fsps.f90:driver:get_libraries
get_useparameters: no module sps_utils info used by get_libraries
In: :_fsps:fsps.f90:driver:get_libraries
get_useparameters: no module sps_vars info used by get_libraries
Block: get_isochrone_dimensions
In: :_fsps:fsps.f90:driver:get_isochrone_dimensions
get_useparameters: no module sps_utils info used by get_isochrone_dimensions
In: :_fsps:fsps.f90:driver:get_isochrone_dimensions
get_useparameters: no module sps_vars info used by get_isochrone_dimensions
Block: get_nmass_isochrone
In: :_fsps:fsps.f90:driver:get_nmass_isochrone
get_useparameters: no module sps_utils info used by get_nmass_isochrone
In: :_fsps:fsps.f90:driver:get_nmass_isochrone
get_useparameters: no module sps_vars info used by get_nmass_isochrone
Block: get_stats
In: :_fsps:fsps.f90:driver:get_stats
get_useparameters: no module sps_utils info used by get_stats
In: :_fsps:fsps.f90:driver:get_stats
get_useparameters: no module sps_vars info used by get_stats
Block: get_filter_data
In: :_fsps:fsps.f90:driver:get_filter_data
get_useparameters: no module sps_utils info used by get_filter_data
In: :_fsps:fsps.f90:driver:get_filter_data
get_useparameters: no module sps_vars info used by get_filter_data
Block: write_isoc
In: :_fsps:fsps.f90:driver:write_isoc
get_useparameters: no module sps_utils info used by write_isoc
In: :_fsps:fsps.f90:driver:write_isoc
get_useparameters: no module sps_vars info used by write_isoc
Post-processing (stage 2)...
Block: _fsps
Block: unknown_interface
Block: driver
Block: setup
Block: set_ssp_params
Block: set_csp_params
Block: ssps
Block: ssp
Block: compute_zdep
Block: get_spec
Block: get_mags
Block: interp_ssp
Block: smooth_spectrum
Block: stellar_spectrum
Block: get_ssp_spec
Block: set_sfh_tab
Block: set_ssp_lsf
Block: get_setup_vars
Block: get_nz
Block: get_zlegend
Block: get_timefull
Block: get_ntfull
Block: get_nspec
Block: get_nbands
Block: get_nemline
Block: get_emlambda
Block: get_lambda
Block: get_libraries
Block: get_isochrone_dimensions
Block: get_nmass_isochrone
Block: get_stats
Block: get_filter_data
Block: write_isoc
Saving signatures to file "./fsps.pyf"
Running f2py on ['/Users/lluisgalbany/Palpha/fsps/src/add_agb_dust.o', '/Users/lluisgalbany/Palpha/fsps/src/add_bs.o', '/Users/lluisgalbany/Palpha/fsps/src/add_dust.o', '/Users/lluisgalbany/Palpha/fsps/src/add_nebular.o', '/Users/lluisgalbany/Palpha/fsps/src/add_remnants.o', '/Users/lluisgalbany/Palpha/fsps/src/agn_dust.o', '/Users/lluisgalbany/Palpha/fsps/src/attn_curve.o', '/Users/lluisgalbany/Palpha/fsps/src/compsp.o', '/Users/lluisgalbany/Palpha/fsps/src/csp_gen.o', '/Users/lluisgalbany/Palpha/fsps/src/funcint.o', '/Users/lluisgalbany/Palpha/fsps/src/get_lumdist.o', '/Users/lluisgalbany/Palpha/fsps/src/get_tuniv.o', '/Users/lluisgalbany/Palpha/fsps/src/getindx.o', '/Users/lluisgalbany/Palpha/fsps/src/getmags.o', '/Users/lluisgalbany/Palpha/fsps/src/getspec.o', '/Users/lluisgalbany/Palpha/fsps/src/igm_absorb.o', '/Users/lluisgalbany/Palpha/fsps/src/imf.o', '/Users/lluisgalbany/Palpha/fsps/src/imf_weight.o', '/Users/lluisgalbany/Palpha/fsps/src/intsfwght.o', '/Users/lluisgalbany/Palpha/fsps/src/linterp.o', '/Users/lluisgalbany/Palpha/fsps/src/linterparr.o', '/Users/lluisgalbany/Palpha/fsps/src/locate.o', '/Users/lluisgalbany/Palpha/fsps/src/mod_gb.o', '/Users/lluisgalbany/Palpha/fsps/src/mod_hb.o', '/Users/lluisgalbany/Palpha/fsps/src/pz_convol.o', '/Users/lluisgalbany/Palpha/fsps/src/sbf.o', '/Users/lluisgalbany/Palpha/fsps/src/setup_tabular_sfh.o', '/Users/lluisgalbany/Palpha/fsps/src/sfh_weight.o', '/Users/lluisgalbany/Palpha/fsps/src/sfhinfo.o', '/Users/lluisgalbany/Palpha/fsps/src/sfhlimit.o', '/Users/lluisgalbany/Palpha/fsps/src/sfhstat.o', '/Users/lluisgalbany/Palpha/fsps/src/smoothspec.o', '/Users/lluisgalbany/Palpha/fsps/src/spec_bin.o', '/Users/lluisgalbany/Palpha/fsps/src/sps_setup.o', '/Users/lluisgalbany/Palpha/fsps/src/sps_utils.o', '/Users/lluisgalbany/Palpha/fsps/src/sps_vars.o', '/Users/lluisgalbany/Palpha/fsps/src/ssp_gen.o', '/Users/lluisgalbany/Palpha/fsps/src/tsum.o', '/Users/lluisgalbany/Palpha/fsps/src/vacairconv.o', '/Users/lluisgalbany/Palpha/fsps/src/write_isochrone.o', '/Users/lluisgalbany/Palpha/fsps/src/ztinterp.o', 'fsps.f90', 'fsps.pyf'] with flags ['-c', '-I/Users/lluisgalbany/Palpha/fsps/src', '--f90flags=-cpp', '--f90flags=-fPIC']
Warning: Can't read registry to find the necessary compiler setting
Make sure that Python modules _winreg, win32api or win32con are installed.
running build
running config_cc
unifing config_cc, config, build_clib, build_ext, build commands --compiler options
running config_fc
unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
running build_src
build_src
building extension "_fsps" sources
creating /var/folders/5j/wf0786_50lv63pwrsl6ngphm0000gn/T/tmpTQGyrx/src.macosx-10.6-x86_64-2.7
f2py options: []
f2py: fsps.pyf
Reading fortran codes...
Reading file 'fsps.pyf' (format:free)
Post-processing...
Block: _fsps
Block: driver
In: fsps.pyf:_fsps:unknown_interface:driver
get_useparameters: no module sps_utils info used by driver
In: fsps.pyf:_fsps:unknown_interface:driver
get_useparameters: no module sps_vars info used by driver
Block: setup
In: fsps.pyf:_fsps:unknown_interface:driver:setup
get_useparameters: no module sps_utils info used by setup
In: fsps.pyf:_fsps:unknown_interface:driver:setup
get_useparameters: no module sps_vars info used by setup
Block: set_ssp_params
In: fsps.pyf:_fsps:unknown_interface:driver:set_ssp_params
get_useparameters: no module sps_utils info used by set_ssp_params
In: fsps.pyf:_fsps:unknown_interface:driver:set_ssp_params
get_useparameters: no module sps_vars info used by set_ssp_params
Block: set_csp_params
In: fsps.pyf:_fsps:unknown_interface:driver:set_csp_params
get_useparameters: no module sps_utils info used by set_csp_params
In: fsps.pyf:_fsps:unknown_interface:driver:set_csp_params
get_useparameters: no module sps_vars info used by set_csp_params
Block: ssps
In: fsps.pyf:_fsps:unknown_interface:driver:ssps
get_useparameters: no module sps_utils info used by ssps
In: fsps.pyf:_fsps:unknown_interface:driver:ssps
get_useparameters: no module sps_vars info used by ssps
Block: ssp
In: fsps.pyf:_fsps:unknown_interface:driver:ssp
get_useparameters: no module sps_utils info used by ssp
In: fsps.pyf:_fsps:unknown_interface:driver:ssp
get_useparameters: no module sps_vars info used by ssp
Block: compute_zdep
In: fsps.pyf:_fsps:unknown_interface:driver:compute_zdep
get_useparameters: no module sps_utils info used by compute_zdep
In: fsps.pyf:_fsps:unknown_interface:driver:compute_zdep
get_useparameters: no module sps_vars info used by compute_zdep
Block: get_spec
In: fsps.pyf:_fsps:unknown_interface:driver:get_spec
get_useparameters: no module sps_utils info used by get_spec
In: fsps.pyf:_fsps:unknown_interface:driver:get_spec
get_useparameters: no module sps_vars info used by get_spec
Block: get_mags
In: fsps.pyf:_fsps:unknown_interface:driver:get_mags
get_useparameters: no module sps_utils info used by get_mags
In: fsps.pyf:_fsps:unknown_interface:driver:get_mags
get_useparameters: no module sps_vars info used by get_mags
Block: interp_ssp
In: fsps.pyf:_fsps:unknown_interface:driver:interp_ssp
get_useparameters: no module sps_utils info used by interp_ssp
In: fsps.pyf:_fsps:unknown_interface:driver:interp_ssp
get_useparameters: no module sps_vars info used by interp_ssp
Block: smooth_spectrum
In: fsps.pyf:_fsps:unknown_interface:driver:smooth_spectrum
get_useparameters: no module sps_utils info used by smooth_spectrum
In: fsps.pyf:_fsps:unknown_interface:driver:smooth_spectrum
get_useparameters: no module sps_vars info used by smooth_spectrum
Block: stellar_spectrum
In: fsps.pyf:_fsps:unknown_interface:driver:stellar_spectrum
get_useparameters: no module sps_utils info used by stellar_spectrum
In: fsps.pyf:_fsps:unknown_interface:driver:stellar_spectrum
get_useparameters: no module sps_vars info used by stellar_spectrum
Block: get_ssp_spec
In: fsps.pyf:_fsps:unknown_interface:driver:get_ssp_spec
get_useparameters: no module sps_utils info used by get_ssp_spec
In: fsps.pyf:_fsps:unknown_interface:driver:get_ssp_spec
get_useparameters: no module sps_vars info used by get_ssp_spec
Block: set_sfh_tab
In: fsps.pyf:_fsps:unknown_interface:driver:set_sfh_tab
get_useparameters: no module sps_utils info used by set_sfh_tab
In: fsps.pyf:_fsps:unknown_interface:driver:set_sfh_tab
get_useparameters: no module sps_vars info used by set_sfh_tab
Block: set_ssp_lsf
In: fsps.pyf:_fsps:unknown_interface:driver:set_ssp_lsf
get_useparameters: no module sps_utils info used by set_ssp_lsf
In: fsps.pyf:_fsps:unknown_interface:driver:set_ssp_lsf
get_useparameters: no module sps_vars info used by set_ssp_lsf
Block: get_setup_vars
In: fsps.pyf:_fsps:unknown_interface:driver:get_setup_vars
get_useparameters: no module sps_utils info used by get_setup_vars
In: fsps.pyf:_fsps:unknown_interface:driver:get_setup_vars
get_useparameters: no module sps_vars info used by get_setup_vars
Block: get_nz
In: fsps.pyf:_fsps:unknown_interface:driver:get_nz
get_useparameters: no module sps_utils info used by get_nz
In: fsps.pyf:_fsps:unknown_interface:driver:get_nz
get_useparameters: no module sps_vars info used by get_nz
Block: get_zlegend
In: fsps.pyf:_fsps:unknown_interface:driver:get_zlegend
get_useparameters: no module sps_utils info used by get_zlegend
In: fsps.pyf:_fsps:unknown_interface:driver:get_zlegend
get_useparameters: no module sps_vars info used by get_zlegend
Block: get_timefull
In: fsps.pyf:_fsps:unknown_interface:driver:get_timefull
get_useparameters: no module sps_utils info used by get_timefull
In: fsps.pyf:_fsps:unknown_interface:driver:get_timefull
get_useparameters: no module sps_vars info used by get_timefull
Block: get_ntfull
In: fsps.pyf:_fsps:unknown_interface:driver:get_ntfull
get_useparameters: no module sps_utils info used by get_ntfull
In: fsps.pyf:_fsps:unknown_interface:driver:get_ntfull
get_useparameters: no module sps_vars info used by get_ntfull
Block: get_nspec
In: fsps.pyf:_fsps:unknown_interface:driver:get_nspec
get_useparameters: no module sps_utils info used by get_nspec
In: fsps.pyf:_fsps:unknown_interface:driver:get_nspec
get_useparameters: no module sps_vars info used by get_nspec
Block: get_nbands
In: fsps.pyf:_fsps:unknown_interface:driver:get_nbands
get_useparameters: no module sps_utils info used by get_nbands
In: fsps.pyf:_fsps:unknown_interface:driver:get_nbands
get_useparameters: no module sps_vars info used by get_nbands
Block: get_nemline
In: fsps.pyf:_fsps:unknown_interface:driver:get_nemline
get_useparameters: no module sps_utils info used by get_nemline
In: fsps.pyf:_fsps:unknown_interface:driver:get_nemline
get_useparameters: no module sps_vars info used by get_nemline
Block: get_emlambda
In: fsps.pyf:_fsps:unknown_interface:driver:get_emlambda
get_useparameters: no module sps_utils info used by get_emlambda
In: fsps.pyf:_fsps:unknown_interface:driver:get_emlambda
get_useparameters: no module sps_vars info used by get_emlambda
Block: get_lambda
In: fsps.pyf:_fsps:unknown_interface:driver:get_lambda
get_useparameters: no module sps_utils info used by get_lambda
In: fsps.pyf:_fsps:unknown_interface:driver:get_lambda
get_useparameters: no module sps_vars info used by get_lambda
Block: get_libraries
In: fsps.pyf:_fsps:unknown_interface:driver:get_libraries
get_useparameters: no module sps_utils info used by get_libraries
In: fsps.pyf:_fsps:unknown_interface:driver:get_libraries
get_useparameters: no module sps_vars info used by get_libraries
Block: get_isochrone_dimensions
In: fsps.pyf:_fsps:unknown_interface:driver:get_isochrone_dimensions
get_useparameters: no module sps_utils info used by get_isochrone_dimensions
In: fsps.pyf:_fsps:unknown_interface:driver:get_isochrone_dimensions
get_useparameters: no module sps_vars info used by get_isochrone_dimensions
Block: get_nmass_isochrone
In: fsps.pyf:_fsps:unknown_interface:driver:get_nmass_isochrone
get_useparameters: no module sps_utils info used by get_nmass_isochrone
In: fsps.pyf:_fsps:unknown_interface:driver:get_nmass_isochrone
get_useparameters: no module sps_vars info used by get_nmass_isochrone
Block: get_stats
In: fsps.pyf:_fsps:unknown_interface:driver:get_stats
get_useparameters: no module sps_utils info used by get_stats
In: fsps.pyf:_fsps:unknown_interface:driver:get_stats
get_useparameters: no module sps_vars info used by get_stats
Block: get_filter_data
In: fsps.pyf:_fsps:unknown_interface:driver:get_filter_data
get_useparameters: no module sps_utils info used by get_filter_data
In: fsps.pyf:_fsps:unknown_interface:driver:get_filter_data
get_useparameters: no module sps_vars info used by get_filter_data
Block: write_isoc
In: fsps.pyf:_fsps:unknown_interface:driver:write_isoc
get_useparameters: no module sps_utils info used by write_isoc
In: fsps.pyf:_fsps:unknown_interface:driver:write_isoc
get_useparameters: no module sps_vars info used by write_isoc
Post-processing (stage 2)...
Block: _fsps
Block: unknown_interface
Block: driver
Block: setup
Block: set_ssp_params
Block: set_csp_params
Block: ssps
Block: ssp
Block: compute_zdep
Block: get_spec
Block: get_mags
Block: interp_ssp
Block: smooth_spectrum
Block: stellar_spectrum
Block: get_ssp_spec
Block: set_sfh_tab
Block: set_ssp_lsf
Block: get_setup_vars
Block: get_nz
Block: get_zlegend
Block: get_timefull
Block: get_ntfull
Block: get_nspec
Block: get_nbands
Block: get_nemline
Block: get_emlambda
Block: get_lambda
Block: get_libraries
Block: get_isochrone_dimensions
Block: get_nmass_isochrone
Block: get_stats
Block: get_filter_data
Block: write_isoc
Building modules...
Building module "_fsps"...
Constructing F90 module support for "driver"...
Variables: is_setup
Constructing wrapper function "driver.setup"...
setup(compute_vega_mags0,vactoair_flag0)
Constructing wrapper function "driver.set_ssp_params"...
set_ssp_params(imf_type0,imf_upper_limit0,imf_lower_limit0,imf1,imf2,imf3,vdmc,mdave,dell,delt,sbss,fbhb,pagb,add_stellar_remnants0,tpagb_norm_type0,add_agb_dust_model0,agb_dust,redgb,masscut,fcstar,evtype,smooth_lsf0)
Constructing wrapper function "driver.set_csp_params"...
set_csp_params(smooth_velocity0,redshift_colors0,compute_light_ages0,nebemlineinspec0,dust_type0,add_dust_emission0,add_neb_emission0,add_neb_continuum0,cloudy_dust0,add_igm_absorption0,zmet,sfh,wgp1,wgp2,wgp3,tau,const_bn,tage,fburst,tburst,dust1,dust2,logzsol,zred,pmetals,dust_clumps,frac_nodust,dust_index,dust_tesc,frac_obrun,uvb,mwr,dust1_index,sf_start,sf_trunc,sf_slope,duste_gamma,duste_umin,duste_qpah,sigma_smooth,min_wave_smooth,max_wave_smooth,gas_logu,gas_logz,igm_factor,fagn,agn_tau)
Constructing wrapper function "driver.ssps"...
ssps()
Constructing wrapper function "driver.ssp"...
ssp(zi)
Constructing wrapper function "driver.compute_zdep"...
compute_zdep(ns,n_age,ztype)
Constructing wrapper function "driver.get_spec"...
spec_out = get_spec(ns,n_age)
Constructing wrapper function "driver.get_mags"...
mags = get_mags(ns,n_age,z_red,mc,[n_bands])
Constructing wrapper function "driver.interp_ssp"...
interp_ssp(zpos,tpos,spec,mass,lbol,[ns])
Constructing wrapper function "driver.smooth_spectrum"...
smooth_spectrum(wave,spec,sigma_broad,minw,maxw,[ns])
Constructing wrapper function "driver.stellar_spectrum"...
stellar_spectrum(mact,logt,lbol,logg,phase,ffco,lmdot,wght,spec_out,[ns])
Constructing wrapper function "driver.get_ssp_spec"...
get_ssp_spec(ssp_spec_out,ssp_mass_out,ssp_lbol_out,[ns,n_age,n_z])
Constructing wrapper function "driver.set_sfh_tab"...
set_sfh_tab(age,sfr,met,[ntab])
Constructing wrapper function "driver.set_ssp_lsf"...
set_ssp_lsf(sigma,wlo,whi,[nsv])
Constructing wrapper function "driver.get_setup_vars"...
cvms,vta_flag = get_setup_vars()
Constructing wrapper function "driver.get_nz"...
n_z = get_nz()
Constructing wrapper function "driver.get_zlegend"...
z_legend = get_zlegend(n_z)
Constructing wrapper function "driver.get_timefull"...
timefull = get_timefull(n_age)
Constructing wrapper function "driver.get_ntfull"...
n_age = get_ntfull()
Constructing wrapper function "driver.get_nspec"...
ns = get_nspec()
Constructing wrapper function "driver.get_nbands"...
nb = get_nbands()
Constructing wrapper function "driver.get_nemline"...
nline = get_nemline()
Constructing wrapper function "driver.get_emlambda"...
em_lambda = get_emlambda(nline)
Constructing wrapper function "driver.get_lambda"...
lambda = get_lambda(ns)
Constructing wrapper function "driver.get_libraries"...
isocname,specname = get_libraries()
Constructing wrapper function "driver.get_isochrone_dimensions"...
n_age,n_mass = get_isochrone_dimensions()
Constructing wrapper function "driver.get_nmass_isochrone"...
nmass = get_nmass_isochrone(zz,tt)
Constructing wrapper function "driver.get_stats"...
age,mass_csp,lbol_csp,sfr,mdust,mformed,emlines = get_stats(n_age,nline)
Constructing wrapper function "driver.get_filter_data"...
wave_eff,mag_vega,mag_sun = get_filter_data(nb)
Constructing wrapper function "driver.write_isoc"...
write_isoc(outfile)
Wrote C/API module "_fsps" to file "/var/folders/5j/wf0786_50lv63pwrsl6ngphm0000gn/T/tmpTQGyrx/src.macosx-10.6-x86_64-2.7/_fspsmodule.c"
Fortran 90 wrappers are saved to "/var/folders/5j/wf0786_50lv63pwrsl6ngphm0000gn/T/tmpTQGyrx/src.macosx-10.6-x86_64-2.7/_fsps-f2pywrappers2.f90"
adding '/var/folders/5j/wf0786_50lv63pwrsl6ngphm0000gn/T/tmpTQGyrx/src.macosx-10.6-x86_64-2.7/fortranobject.c' to sources.
adding '/var/folders/5j/wf0786_50lv63pwrsl6ngphm0000gn/T/tmpTQGyrx/src.macosx-10.6-x86_64-2.7' to include_dirs.
copying /Users/lluisgalbany/miniconda3/envs/py27/lib/python2.7/site-packages/numpy/f2py/src/fortranobject.c -> /var/folders/5j/wf0786_50lv63pwrsl6ngphm0000gn/T/tmpTQGyrx/src.macosx-10.6-x86_64-2.7
copying /Users/lluisgalbany/miniconda3/envs/py27/lib/python2.7/site-packages/numpy/f2py/src/fortranobject.h -> /var/folders/5j/wf0786_50lv63pwrsl6ngphm0000gn/T/tmpTQGyrx/src.macosx-10.6-x86_64-2.7
adding '/var/folders/5j/wf0786_50lv63pwrsl6ngphm0000gn/T/tmpTQGyrx/src.macosx-10.6-x86_64-2.7/_fsps-f2pywrappers2.f90' to sources.
build_src: building npy-pkg config files
running build_ext
customize UnixCCompiler
customize UnixCCompiler using build_ext
customize Gnu95FCompiler
Found executable /usr/local/bin/gfortran
Found executable /iraf/iraf/unix/hlib/f77.sh
Found executable /usr/bin/ranlib
customize Gnu95FCompiler
customize Gnu95FCompiler using build_ext
building '_fsps' extension
compiling C sources
C compiler: gcc -fno-strict-aliasing -I/Users/lluisgalbany/miniconda3/envs/py27/include -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes
creating /var/folders/5j/wf0786_50lv63pwrsl6ngphm0000gn/T/tmpTQGyrx/var
creating /var/folders/5j/wf0786_50lv63pwrsl6ngphm0000gn/T/tmpTQGyrx/var/folders
creating /var/folders/5j/wf0786_50lv63pwrsl6ngphm0000gn/T/tmpTQGyrx/var/folders/5j
creating /var/folders/5j/wf0786_50lv63pwrsl6ngphm0000gn/T/tmpTQGyrx/var/folders/5j/wf0786_50lv63pwrsl6ngphm0000gn
creating /var/folders/5j/wf0786_50lv63pwrsl6ngphm0000gn/T/tmpTQGyrx/var/folders/5j/wf0786_50lv63pwrsl6ngphm0000gn/T
creating /var/folders/5j/wf0786_50lv63pwrsl6ngphm0000gn/T/tmpTQGyrx/var/folders/5j/wf0786_50lv63pwrsl6ngphm0000gn/T/tmpTQGyrx
creating /var/folders/5j/wf0786_50lv63pwrsl6ngphm0000gn/T/tmpTQGyrx/var/folders/5j/wf0786_50lv63pwrsl6ngphm0000gn/T/tmpTQGyrx/src.macosx-10.6-x86_64-2.7
compile options: '-I/Users/lluisgalbany/Palpha/fsps/src -I/var/folders/5j/wf0786_50lv63pwrsl6ngphm0000gn/T/tmpTQGyrx/src.macosx-10.6-x86_64-2.7 -I/Users/lluisgalbany/miniconda3/envs/py27/lib/python2.7/site-packages/numpy/core/include -I/Users/lluisgalbany/miniconda3/envs/py27/include/python2.7 -c'
gcc: /var/folders/5j/wf0786_50lv63pwrsl6ngphm0000gn/T/tmpTQGyrx/src.macosx-10.6-x86_64-2.7/_fspsmodule.c
In file included from /var/folders/5j/wf0786_50lv63pwrsl6ngphm0000gn/T/tmpTQGyrx/src.macosx-10.6-x86_64-2.7/_fspsmodule.c:19:
In file included from /var/folders/5j/wf0786_50lv63pwrsl6ngphm0000gn/T/tmpTQGyrx/src.macosx-10.6-x86_64-2.7/fortranobject.h:13:
In file included from /Users/lluisgalbany/miniconda3/envs/py27/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4:
In file included from /Users/lluisgalbany/miniconda3/envs/py27/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:18:
In file included from /Users/lluisgalbany/miniconda3/envs/py27/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1809:
/Users/lluisgalbany/miniconda3/envs/py27/lib/python2.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]
#warning "Using deprecated NumPy API, disable it by " \
^
/var/folders/5j/wf0786_50lv63pwrsl6ngphm0000gn/T/tmpTQGyrx/src.macosx-10.6-x86_64-2.7/_fspsmodule.c:145:12: warning: unused function 'f2py_size' [-Wunused-function]
static int f2py_size(PyArrayObject* var, ...)
^
2 warnings generated.
gcc: /var/folders/5j/wf0786_50lv63pwrsl6ngphm0000gn/T/tmpTQGyrx/src.macosx-10.6-x86_64-2.7/fortranobject.c
In file included from /var/folders/5j/wf0786_50lv63pwrsl6ngphm0000gn/T/tmpTQGyrx/src.macosx-10.6-x86_64-2.7/fortranobject.c:2:
In file included from /var/folders/5j/wf0786_50lv63pwrsl6ngphm0000gn/T/tmpTQGyrx/src.macosx-10.6-x86_64-2.7/fortranobject.h:13:
In file included from /Users/lluisgalbany/miniconda3/envs/py27/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4:
In file included from /Users/lluisgalbany/miniconda3/envs/py27/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:18:
In file included from /Users/lluisgalbany/miniconda3/envs/py27/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1809:
/Users/lluisgalbany/miniconda3/envs/py27/lib/python2.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]
#warning "Using deprecated NumPy API, disable it by " \
^
1 warning generated.
compiling Fortran 90 module sources
Fortran f77 compiler: /iraf/iraf/unix/hlib//f77.sh -Wall -g -ffixed-form -fno-second-underscore -m64 -fPIC -O3 -funroll-loops
Fortran f90 compiler: /usr/local/bin/gfortran -fPIC -m64 -fPIC -O3 -funroll-loops
Fortran fix compiler: /usr/local/bin/gfortran -Wall -g -ffixed-form -fno-second-underscore -fPIC -m64 -fPIC -O3 -funroll-loops
compile options: '-I/Users/lluisgalbany/Palpha/fsps/src -I/var/folders/5j/wf0786_50lv63pwrsl6ngphm0000gn/T/tmpTQGyrx/src.macosx-10.6-x86_64-2.7 -I/Users/lluisgalbany/miniconda3/envs/py27/lib/python2.7/site-packages/numpy/core/include -I/Users/lluisgalbany/miniconda3/envs/py27/include/python2.7 -c'
extra options: '-J/var/folders/5j/wf0786_50lv63pwrsl6ngphm0000gn/T/tmpTQGyrx/ -I/var/folders/5j/wf0786_50lv63pwrsl6ngphm0000gn/T/tmpTQGyrx/'
gfortran:f90: fsps.f90
compiling Fortran sources
Fortran f77 compiler: /iraf/iraf/unix/hlib//f77.sh -Wall -g -ffixed-form -fno-second-underscore -m64 -fPIC -O3 -funroll-loops
Fortran f90 compiler: /usr/local/bin/gfortran -fPIC -m64 -fPIC -O3 -funroll-loops
Fortran fix compiler: /usr/local/bin/gfortran -Wall -g -ffixed-form -fno-second-underscore -fPIC -m64 -fPIC -O3 -funroll-loops
compile options: '-I/Users/lluisgalbany/Palpha/fsps/src -I/var/folders/5j/wf0786_50lv63pwrsl6ngphm0000gn/T/tmpTQGyrx/src.macosx-10.6-x86_64-2.7 -I/Users/lluisgalbany/miniconda3/envs/py27/lib/python2.7/site-packages/numpy/core/include -I/Users/lluisgalbany/miniconda3/envs/py27/include/python2.7 -c'
extra options: '-J/var/folders/5j/wf0786_50lv63pwrsl6ngphm0000gn/T/tmpTQGyrx/ -I/var/folders/5j/wf0786_50lv63pwrsl6ngphm0000gn/T/tmpTQGyrx/'
gfortran:f90: /var/folders/5j/wf0786_50lv63pwrsl6ngphm0000gn/T/tmpTQGyrx/src.macosx-10.6-x86_64-2.7/_fsps-f2pywrappers2.f90
/usr/local/bin/gfortran -Wall -g -m64 -Wall -g -undefined dynamic_lookup -bundle /var/folders/5j/wf0786_50lv63pwrsl6ngphm0000gn/T/tmpTQGyrx/var/folders/5j/wf0786_50lv63pwrsl6ngphm0000gn/T/tmpTQGyrx/src.macosx-10.6-x86_64-2.7/_fspsmodule.o /var/folders/5j/wf0786_50lv63pwrsl6ngphm0000gn/T/tmpTQGyrx/var/folders/5j/wf0786_50lv63pwrsl6ngphm0000gn/T/tmpTQGyrx/src.macosx-10.6-x86_64-2.7/fortranobject.o /var/folders/5j/wf0786_50lv63pwrsl6ngphm0000gn/T/tmpTQGyrx/fsps.o /var/folders/5j/wf0786_50lv63pwrsl6ngphm0000gn/T/tmpTQGyrx/var/folders/5j/wf0786_50lv63pwrsl6ngphm0000gn/T/tmpTQGyrx/src.macosx-10.6-x86_64-2.7/_fsps-f2pywrappers2.o /Users/lluisgalbany/Palpha/fsps/src/add_agb_dust.o /Users/lluisgalbany/Palpha/fsps/src/add_bs.o /Users/lluisgalbany/Palpha/fsps/src/add_dust.o /Users/lluisgalbany/Palpha/fsps/src/add_nebular.o /Users/lluisgalbany/Palpha/fsps/src/add_remnants.o /Users/lluisgalbany/Palpha/fsps/src/agn_dust.o /Users/lluisgalbany/Palpha/fsps/src/attn_curve.o /Users/lluisgalbany/Palpha/fsps/src/compsp.o /Users/lluisgalbany/Palpha/fsps/src/csp_gen.o /Users/lluisgalbany/Palpha/fsps/src/funcint.o /Users/lluisgalbany/Palpha/fsps/src/get_lumdist.o /Users/lluisgalbany/Palpha/fsps/src/get_tuniv.o /Users/lluisgalbany/Palpha/fsps/src/getindx.o /Users/lluisgalbany/Palpha/fsps/src/getmags.o /Users/lluisgalbany/Palpha/fsps/src/getspec.o /Users/lluisgalbany/Palpha/fsps/src/igm_absorb.o /Users/lluisgalbany/Palpha/fsps/src/imf.o /Users/lluisgalbany/Palpha/fsps/src/imf_weight.o /Users/lluisgalbany/Palpha/fsps/src/intsfwght.o /Users/lluisgalbany/Palpha/fsps/src/linterp.o /Users/lluisgalbany/Palpha/fsps/src/linterparr.o /Users/lluisgalbany/Palpha/fsps/src/locate.o /Users/lluisgalbany/Palpha/fsps/src/mod_gb.o /Users/lluisgalbany/Palpha/fsps/src/mod_hb.o /Users/lluisgalbany/Palpha/fsps/src/pz_convol.o /Users/lluisgalbany/Palpha/fsps/src/sbf.o /Users/lluisgalbany/Palpha/fsps/src/setup_tabular_sfh.o /Users/lluisgalbany/Palpha/fsps/src/sfh_weight.o /Users/lluisgalbany/Palpha/fsps/src/sfhinfo.o /Users/lluisgalbany/Palpha/fsps/src/sfhlimit.o /Users/lluisgalbany/Palpha/fsps/src/sfhstat.o /Users/lluisgalbany/Palpha/fsps/src/smoothspec.o /Users/lluisgalbany/Palpha/fsps/src/spec_bin.o /Users/lluisgalbany/Palpha/fsps/src/sps_setup.o /Users/lluisgalbany/Palpha/fsps/src/sps_utils.o /Users/lluisgalbany/Palpha/fsps/src/sps_vars.o /Users/lluisgalbany/Palpha/fsps/src/ssp_gen.o /Users/lluisgalbany/Palpha/fsps/src/tsum.o /Users/lluisgalbany/Palpha/fsps/src/vacairconv.o /Users/lluisgalbany/Palpha/fsps/src/write_isochrone.o /Users/lluisgalbany/Palpha/fsps/src/ztinterp.o -L/Users/lluisgalbany/miniconda3/envs/py27/lib -lgfortran -o ./_fsps.so
ld: warning: ld: warning: ld: warning: object file (/Users/lluisgalbany/Palpha/fsps/src/add_dust.o) was built for newer OSX version (10.12) than being linked (10.9)object file (/Users/lluisgalbany/Palpha/fsps/src/add_agb_dust.o) was built for newer OSX version (10.12) than being linked (10.9)object file (/Users/lluisgalbany/Palpha/fsps/src/add_bs.o) was built for newer OSX version (10.12) than being linked (10.9)
ld: warning: ld: warning: ld: warning: object file (/Users/lluisgalbany/Palpha/fsps/src/add_nebular.o) was built for newer OSX version (10.12) than being linked (10.9)ld: warning: object file (/Users/lluisgalbany/Palpha/fsps/src/agn_dust.o) was built for newer OSX version (10.12) than being linked (10.9)object file (/Users/lluisgalbany/Palpha/fsps/src/add_remnants.o) was built for newer OSX version (10.12) than being linked (10.9)
object file (/Users/lluisgalbany/Palpha/fsps/src/attn_curve.o) was built for newer OSX version (10.12) than being linked (10.9)
ld: warning: object file (/Users/lluisgalbany/Palpha/fsps/src/get_lumdist.o) was built for newer OSX version (10.12) than being linked (10.9)
ld: warning: ld: warning: object file (/Users/lluisgalbany/Palpha/fsps/src/csp_gen.o) was built for newer OSX version (10.12) than being linked (10.9)ld: warning: object file (/Users/lluisgalbany/Palpha/fsps/src/compsp.o) was built for newer OSX version (10.12) than being linked (10.9)
object file (/Users/lluisgalbany/Palpha/fsps/src/funcint.o) was built for newer OSX version (10.12) than being linked (10.9)
ld: warning: ld: warning: ld: warning: object file (/Users/lluisgalbany/Palpha/fsps/src/getindx.o) was built for newer OSX version (10.12) than being linked (10.9)object file (/Users/lluisgalbany/Palpha/fsps/src/get_tuniv.o) was built for newer OSX version (10.12) than being linked (10.9)object file (/Users/lluisgalbany/Palpha/fsps/src/getmags.o) was built for newer OSX version (10.12) than being linked (10.9)
ld: warning: ld: warning: ld: warning: ld: warning: object file (/Users/lluisgalbany/Palpha/fsps/src/igm_absorb.o) was built for newer OSX version (10.12) than being linked (10.9)object file (/Users/lluisgalbany/Palpha/fsps/src/getspec.o) was built for newer OSX version (10.12) than being linked (10.9)object file (/Users/lluisgalbany/Palpha/fsps/src/imf_weight.o) was built for newer OSX version (10.12) than being linked (10.9)object file (/Users/lluisgalbany/Palpha/fsps/src/imf.o) was built for newer OSX version (10.12) than being linked (10.9)
ld: warning: object file (/Users/lluisgalbany/Palpha/fsps/src/locate.o) was built for newer OSX version (10.12) than being linked (10.9)
ld: warning: ld: warning: ld: warning: object file (/Users/lluisgalbany/Palpha/fsps/src/linterparr.o) was built for newer OSX version (10.12) than being linked (10.9)object file (/Users/lluisgalbany/Palpha/fsps/src/intsfwght.o) was built for newer OSX version (10.12) than being linked (10.9)object file (/Users/lluisgalbany/Palpha/fsps/src/linterp.o) was built for newer OSX version (10.12) than being linked (10.9)
ld: warning: ld: warning: ld: warning: ld: warning: object file (/Users/lluisgalbany/Palpha/fsps/src/pz_convol.o) was built for newer OSX version (10.12) than being linked (10.9)object file (/Users/lluisgalbany/Palpha/fsps/src/mod_hb.o) was built for newer OSX version (10.12) than being linked (10.9)object file (/Users/lluisgalbany/Palpha/fsps/src/sbf.o) was built for newer OSX version (10.12) than being linked (10.9)object file (/Users/lluisgalbany/Palpha/fsps/src/mod_gb.o) was built for newer OSX version (10.12) than being linked (10.9)
ld: warning: ld: warning: object file (/Users/lluisgalbany/Palpha/fsps/src/sfh_weight.o) was built for newer OSX version (10.12) than being linked (10.9)ld: warning: ld: warning: object file (/Users/lluisgalbany/Palpha/fsps/src/sfhlimit.o) was built for newer OSX version (10.12) than being linked (10.9)
object file (/Users/lluisgalbany/Palpha/fsps/src/sfhinfo.o) was built for newer OSX version (10.12) than being linked (10.9)object file (/Users/lluisgalbany/Palpha/fsps/src/setup_tabular_sfh.o) was built for newer OSX version (10.12) than being linked (10.9)
ld: warning: ld: warning: ld: warning: ld: warning: object file (/Users/lluisgalbany/Palpha/fsps/src/sfhstat.o) was built for newer OSX version (10.12) than being linked (10.9)object file (/Users/lluisgalbany/Palpha/fsps/src/spec_bin.o) was built for newer OSX version (10.12) than being linked (10.9)object file (/Users/lluisgalbany/Palpha/fsps/src/smoothspec.o) was built for newer OSX version (10.12) than being linked (10.9)object file (/Users/lluisgalbany/Palpha/fsps/src/sps_setup.o) was built for newer OSX version (10.12) than being linked (10.9)
ld: warning: object file (/Users/lluisgalbany/Palpha/fsps/src/sps_utils.o) was built for newer OSX version (10.12) than being linked (10.9)ld: warning:
ld: warning: object file (/Users/lluisgalbany/Palpha/fsps/src/ssp_gen.o) was built for newer OSX version (10.12) than being linked (10.9)object file (/Users/lluisgalbany/Palpha/fsps/src/sps_vars.o) was built for newer OSX version (10.12) than being linked (10.9)
ld: warning: ld: warning: object file (/Users/lluisgalbany/Palpha/fsps/src/vacairconv.o) was built for newer OSX version (10.12) than being linked (10.9)object file (/Users/lluisgalbany/Palpha/fsps/src/tsum.o) was built for newer OSX version (10.12) than being linked (10.9)
ld: warning: ld: warning: object file (/Users/lluisgalbany/Palpha/fsps/src/write_isochrone.o) was built for newer OSX version (10.12) than being linked (10.9)object file (/Users/lluisgalbany/Palpha/fsps/src/ztinterp.o) was built for newer OSX version (10.12) than being linked (10.9)
Removing build directory /var/folders/5j/wf0786_50lv63pwrsl6ngphm0000gn/T/tmpTQGyrx
Copying /Users/lluisgalbany/Palpha/python-fsps/fsps/_fsps.so to /Users/lluisgalbany/Palpha/python-fsps/build/lib.macosx-10.6-x86_64-2.7/fsps/_fsps.so
creating build/bdist.macosx-10.6-x86_64/egg
copying build/lib.macosx-10.6-x86_64-2.7/.DS_Store -> build/bdist.macosx-10.6-x86_64/egg
creating build/bdist.macosx-10.6-x86_64/egg/fsps
copying build/lib.macosx-10.6-x86_64-2.7/fsps/__init__.py -> build/bdist.macosx-10.6-x86_64/egg/fsps
copying build/lib.macosx-10.6-x86_64-2.7/fsps/__init__.pyc -> build/bdist.macosx-10.6-x86_64/egg/fsps
copying build/lib.macosx-10.6-x86_64-2.7/fsps/_fsps.so -> build/bdist.macosx-10.6-x86_64/egg/fsps
copying build/lib.macosx-10.6-x86_64-2.7/fsps/filters.py -> build/bdist.macosx-10.6-x86_64/egg/fsps
copying build/lib.macosx-10.6-x86_64-2.7/fsps/filters.pyc -> build/bdist.macosx-10.6-x86_64/egg/fsps
copying build/lib.macosx-10.6-x86_64-2.7/fsps/fsps.f90 -> build/bdist.macosx-10.6-x86_64/egg/fsps
copying build/lib.macosx-10.6-x86_64-2.7/fsps/fsps.py -> build/bdist.macosx-10.6-x86_64/egg/fsps
copying build/lib.macosx-10.6-x86_64-2.7/fsps/fsps.pyc -> build/bdist.macosx-10.6-x86_64/egg/fsps
copying build/lib.macosx-10.6-x86_64-2.7/fsps/tests.py -> build/bdist.macosx-10.6-x86_64/egg/fsps
byte-compiling build/bdist.macosx-10.6-x86_64/egg/fsps/tests.py to tests.pyc
creating stub loader for fsps/_fsps.so
byte-compiling build/bdist.macosx-10.6-x86_64/egg/fsps/_fsps.py to _fsps.pyc
creating build/bdist.macosx-10.6-x86_64/egg/EGG-INFO
installing scripts to build/bdist.macosx-10.6-x86_64/egg/EGG-INFO/scripts
running install_scripts
running build_scripts
creating build/bdist.macosx-10.6-x86_64/egg/EGG-INFO/scripts
copying build/scripts-2.7/fsps_filter_table.py -> build/bdist.macosx-10.6-x86_64/egg/EGG-INFO/scripts
changing mode of build/bdist.macosx-10.6-x86_64/egg/EGG-INFO/scripts/fsps_filter_table.py to 755
copying fsps.egg-info/PKG-INFO -> build/bdist.macosx-10.6-x86_64/egg/EGG-INFO
copying fsps.egg-info/SOURCES.txt -> build/bdist.macosx-10.6-x86_64/egg/EGG-INFO
copying fsps.egg-info/dependency_links.txt -> build/bdist.macosx-10.6-x86_64/egg/EGG-INFO
copying fsps.egg-info/top_level.txt -> build/bdist.macosx-10.6-x86_64/egg/EGG-INFO
writing build/bdist.macosx-10.6-x86_64/egg/EGG-INFO/native_libs.txt
zip_safe flag not set; analyzing archive contents...
creating 'dist/fsps-0.3.0-py2.7-macosx-10.6-x86_64.egg' and adding 'build/bdist.macosx-10.6-x86_64/egg' to it
removing 'build/bdist.macosx-10.6-x86_64/egg' (and everything under it)
Processing fsps-0.3.0-py2.7-macosx-10.6-x86_64.egg
Copying fsps-0.3.0-py2.7-macosx-10.6-x86_64.egg to /Users/lluisgalbany/miniconda3/envs/py27/lib/python2.7/site-packages
Adding fsps 0.3.0 to easy-install.pth file
Installing fsps_filter_table.py script to /Users/lluisgalbany/miniconda3/envs/py27/bin
Installed /Users/lluisgalbany/miniconda3/envs/py27/lib/python2.7/site-packages/fsps-0.3.0-py2.7-macosx-10.6-x86_64.egg
Processing dependencies for fsps==0.3.0
Finished processing dependencies for fsps==0.3.0
(py27) lluis:python-fsps lluisgalbany$
you have a number of entries of the form
ld: warning: ld: warning: ld: warning: object file (/Users/lluisgalbany/Palpha/fsps/src/add_nebular.o) was built for newer OSX version (10.12) than being linked (10.9)ld: warning: object file (/Users/lluisgalbany/Palpha/fsps/src/agn_dust.o) was built for newer OSX version (10.12) than being linked (10.9)object file (/Users/lluisgalbany/Palpha/fsps/src/add_remnants.o) was built for newer OSX version (10.12) than being linked (10.9) object file (/Users/lluisgalbany/Palpha/fsps/src/attn_curve.o) was built for newer OSX version (10.12) than being linked (10.9)
This indeed looks like a problem with the linking. I'm not sure where it's coming from. I do note that multiple compilers were found during installation, though I think the right one does get used eventually.
customize Gnu95FCompiler Found executable /usr/local/bin/gfortran Found executable /iraf/iraf/unix/hlib/f77.sh Found executable /usr/bin/ranlib
You also have the following entry in the install log that I don't see in mine, which might be related?
Warning: Can't read registry to find the necessary compiler setting Make sure that Python modules _winreg, win32api or win32con are installed.
also this near the very beginning seems wrong - why does the python installer think you are on OSX 10.6?
installing library code to build/bdist.macosx-10.6-x86_64/egg
perhaps related to #15.
with
export MACOSX_DEPLOYMENT_TARGET=10.12
all warnings went off. Although it still builds in '-10.6-x86_64'
There is also at the beginning this warning:
warning: no files found matching 'fsps/data/filter_keys.txt'
I don't think filter_keys.txt is used anymore. Anyway I don't have it, though my install doesn't complain that it's missing.
Did you try to install python-fsps using pip at some point?
yes (to the pip installation), and I have the same problem.
and did you make sure to pip uninstall?
sure.
what about that warning to f2py_size?
I get the same warning and can't reproduce the error you get. I'm kind of at a loss. Can you do
import fsps
print(fsps.__file__)
Also just to confirm, you are still getting the same error after setting the deployment target (but no linker warnings)?
FWIW here's the travis build script (which passed with all tested numpy and python versions on the last commit in July) https://github.com/dfm/python-fsps/blob/master/.travis.yml plus the FSPS make script used with travis. https://github.com/dfm/python-fsps/blob/master/.travis.Makefile
this is what I get in my python 2.7 environment (the one not working):
/Users/lluisgalbany/miniconda3/envs/py27/lib/python2.7/site-packages/fsps-0.3.0-py2.7-macosx-10.6-x86_64.egg/fsps/__init__.pyc
and this is what I get in the default python3.6:
/Users/lluisgalbany/miniconda3/lib/python3.6/site-packages/fsps-0.3.0-py3.6-macosx-10.7-x86_64.egg/fsps/__init__.py
Yes! still getting the error but with no warnings after the deployment target.
Any progress on this issue? I'm running into the same problem with python 2.7, Mac 10.13.1, gfortran 7.2.0, and numpy 1.13.3.
Thanks.
sorry no progress yet @johnnygreco. Thanks for the additional datapoint.
Hey @lgalbany & @bd-j,
I got it to work by switching my gfortran version to 6.4.0. Previously, I was using 7.2.0.
Both python-fsps & prospector appear to be working for me now.
Cheers.
Thanks @johnnygreco! Did you try any versions in between or did you go straight to 6.4.0 from 7.2.0?
I went straight from 7.2.0 to 6.4.0.
I do have 7.1.0. I will try downgrading to 6.4.0.
this is all useful info, thanks.
OS: EL7 GCC: 8.3.0
I'm seeing a similar issue trying to use the python-fsps module:
>>> import fsps
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/rds/bear-apps/devel/2019b/carpenjj-eb-1/EL7/EL7-cascadelake/software/python-fsps/6cb5769-foss-2019b-Python-3.7.4/lib/python3.7/site-packages/fsps/__init__.py", line 38, in <module>
from .fsps import StellarPopulation
File "/rds/bear-apps/devel/2019b/carpenjj-eb-1/EL7/EL7-cascadelake/software/python-fsps/6cb5769-foss-2019b-Python-3.7.4/lib/python3.7/site-packages/fsps/fsps.py", line 9, in <module>
from ._fsps import driver
ImportError: /rds/bear-apps/devel/2019b/carpenjj-eb-1/EL7/EL7-cascadelake/software/python-fsps/6cb5769-foss-2019b-Python-3.7.4/lib/python3.7/site-packages/fsps/_fsps.cpython-37m-x86_64-linux-gnu.so: cannot dynamically load executable
Having done a bit of digging around and trying to execute the .so
file directly I get the following:
(venv-dev-2019b-1) [carpenjj-admin@bear-pg0211u03a easyconfigs]$ SPS_HOME=$EBROOTFSPS /rds/bear-apps/devel/2019b/carpenjj-eb-1/EL7/EL7-cascadelake/software/python-fsps/6cb5769-foss-2019b-Python-3.7.4/lib/python3.7/site-packages/fsps/_fsps.cpython-37m-x86_64-linux-gnu.so
At line 47 of file spec_bin.f90 (unit = 92)
Fortran runtime error: Cannot open file '/rds/bear-apps/devel/2019b/carpenjj-eb-1/EL7/EL7-cascadelake/software/FSPS/182e2b4-foss-2019b/SPECTRA/MILES/imiles_z0.0008.spectra': No such file or directory
Error termination. Backtrace:
#0 0x2b10fb2fcf84 in already_open
at ../../../libgfortran/io/open.c:714
#1 0x42803a in ???
#2 0x4024be in ???
#3 0x2b10fb67b554 in ???
#4 0x4024ee in ???
#5 0xffffffffffffffff in ???
Line 47 of file spec_bin.f90:
ELSE IF (spec_type.EQ.'miles') THEN
OPEN(92,FILE=TRIM(SPS_HOME)//'/SPECTRA/MILES/imiles_z'&
//zstype//'.spectra',FORM='FORMATTED',&
STATUS='OLD',ACTION='READ')
OPEN(93,FILE=TRIM(SPS_HOME)//'/SPECTRA/MILES/imiles_z'&
//zstype//'.spectra.bin',FORM='UNFORMATTED',&
STATUS='REPLACE',access='direct',&
recl=nspec*ndim_logg*ndim_logt*4)
Hi there,
I am not sure if I should start a seperate thread here but I am having a very similar issue as described where the only difference is the metallicity with which the issue seems to exist.
SPS_SETUP ERROR: miles spectral library cannot be opened Z=0.0008
I have uninstalled and reinstalled FSPS on my computer as suggestd above however I am unsure if this is an issue with gcc or an update to FSPS that I may have missed.
Thank you very much for your help as always! Max
I am using a Mac 10.12.6, gcc 7.1.0 (but also tried with v6.3.0), and I am finding a problem when running the first instruction in prospector tutorial:
python prospector.py --param_file=demo_params.py --objid=0 --outfile=demo_obj0 gives the following error:
SPS_SETUP ERROR: miles spectral library cannot be opened Z=0.
It seems that something is being truncated.