keflavich / pyradex

Python interface to RADEX
BSD 3-Clause "New" or "Revised" License
19 stars 12 forks source link

Did not find the correct .so file(s) #40

Closed Antares1234 closed 1 year ago

Antares1234 commented 1 year ago

Hi, I am trying to install pyradex on MacOS 11.2.3, but an error occurred:

/Users/zqq/opt/anaconda3/lib/python3.8/distutils/dist.py:274: UserWarning: Unknown distribution option: 'install_requires' warnings.warn(msg) running install_radex Downloading RADEX Download succeeded, or at least didn't obviously fail. Extracting RADEX source from file /Users/zqq/.astropy/cache/download/url/df9a6b344f9b6851d8c799789754b74e/contents Reading fortran codes... Reading file 'main.f' (format:fix,strict) Reading file 'radex.inc' (format:fix) Line #25 in main.f:" integer niter ! iteration counter" updatevars: could not crack entity declaration "niter!". Ignoring. Line #26 in main.f:" integer imore ! are we running again?" updatevars: could not crack entity declaration "imore!". Ignoring. Line #26 in main.f:" integer imore ! are we running again?" updatevars: could not crack entity declaration "again?". Ignoring. Line #29 in main.f:" logical conv ! are we converged?" updatevars: could not crack entity declaration "conv!". Ignoring. Line #29 in main.f:" logical conv ! are we converged?" updatevars: attempt to change the type of "are" ("integer") to "logical". Ignoring. Line #29 in main.f:" logical conv ! are we converged?" updatevars: attempt to change the type of "we" ("integer") to "logical". Ignoring. Line #29 in main.f:" logical conv ! are we converged?" updatevars: could not crack entity declaration "converged?". Ignoring. Reading file 'background.f' (format:fix,strict) Reading file 'radex.inc' (format:fix) Reading file 'radex.inc' (format:fix) Reading file 'slatec.f' (format:fix,strict) Reading file 'matrix.f' (format:fix,strict) Reading file 'radex.inc' (format:fix) Line #25 in matrix.f:" integer niter ! iteration counter" updatevars: could not crack entity declaration "niter!". Ignoring. Line #26 in matrix.f:" integer ilev,jlev,klev ! to loop over energy levels" updatevars: could not crack entity declaration "klev!". Ignoring. Line #27 in matrix.f:" integer nplus ! to solve statistical equilibrium" updatevars: could not crack entity declaration "nplus!". Ignoring. Line #28 in matrix.f:" integer iline ! to loop over lines" updatevars: could not crack entity declaration "iline!". Ignoring. Line #29 in matrix.f:" integer m,n ! line upper/lower levels" updatevars: could not crack entity declaration "n!". Ignoring. Line #29 in matrix.f:" integer m,n ! line upper/lower levels" updatevars: could not crack entity declaration "upper/lower". Ignoring. Line #30 in matrix.f:" integer nthick ! counts optically thick lines" updatevars: could not crack entity declaration "nthick!". Ignoring. Line #31 in matrix.f:" integer nfat ! counts highly optically thick lines" updatevars: could not crack entity declaration "nfat!". Ignoring. Line #32 in matrix.f:" integer nreduce ! size of reduced rate matrix" updatevars: could not crack entity declaration "nreduce!". Ignoring. rmbadname1: Replacing "size" with "size_bn". Line #34 in matrix.f:" integer indx,dsign ! needed for NumRep equation solver" updatevars: could not crack entity declaration "dsign!". Ignoring. rmbadname1: Replacing "for" with "for_bn". Line #35 in matrix.f:" real8 rhs(maxlev) ! RHS of rate equation" updatevars: could not crack entity declaration "rhs(maxlev)!". Ignoring. Line #35 in matrix.f:" real8 rhs(maxlev) ! RHS of rate equation" updatevars: attempt to change the type of "of" ("integer") to "real". Ignoring. Line #35 in matrix.f:" real8 rhs(maxlev) ! RHS of rate equation" updatevars: attempt to change the type of "rate" ("integer") to "real". Ignoring. Line #35 in matrix.f:" real8 rhs(maxlev) ! RHS of rate equation" updatevars: attempt to change the type of "equation" ("integer") to "real". Ignoring. Line #37 in matrix.f:" real8 yrate(maxlev,maxlev) ! rate matrix" updatevars: could not crack entity declaration "yrate(maxlev,maxlev)!". Ignoring. Line #37 in matrix.f:" real8 yrate(maxlev,maxlev) ! rate matrix" updatevars: attempt to change the type of "rate" ("integer") to "real". Ignoring. Line #37 in matrix.f:" real8 yrate(maxlev,maxlev) ! rate matrix" updatevars: attempt to change the type of "matrix" ("integer") to "real". Ignoring. Line #38 in matrix.f:" real8 etr,exr ! to calculate radiative rates" updatevars: could not crack entity declaration "exr!". Ignoring. Line #38 in matrix.f:" real8 etr,exr ! to calculate radiative rates" updatevars: attempt to change the type of "to" ("integer") to "real". Ignoring. Line #39 in matrix.f:" real8 xt ! frequency cubed" updatevars: could not crack entity declaration "xt!". Ignoring. Line #40 in matrix.f:" real8 hnu ! photon energy" updatevars: could not crack entity declaration "hnu!". Ignoring. Line #40 in matrix.f:" real8 hnu ! photon energy" updatevars: attempt to change the type of "energy" ("integer") to "real". Ignoring. Line #41 in matrix.f:" real8 bnutex ! line source function" updatevars: could not crack entity declaration "bnutex!". Ignoring. Line #41 in matrix.f:" real8 bnutex ! line source function" updatevars: attempt to change the type of "line" ("integer") to "real". Ignoring. Line #42 in matrix.f:" real8 cddv ! N(mol) / delta V" updatevars: could not crack entity declaration "cddv!". Ignoring. Line #42 in matrix.f:" real8 cddv ! N(mol) / delta V" updatevars: attempt to change the type of "n" ("integer") to "real". Ignoring. Line #42 in matrix.f:" real8 cddv ! N(mol) / delta V" updatevars: could not crack entity declaration "n(mol)/delta". Ignoring. Line #43 in matrix.f:" real8 beta,escprob ! escape probability" updatevars: could not crack entity declaration "escprob!". Ignoring. Line #45 in matrix.f:" real8 bnu ! Planck function" updatevars: could not crack entity declaration "bnu!". Ignoring. Line #46 in matrix.f:" real8 uarray(maxlev,maxlev) ! reduced rate matrix" updatevars: could not crack entity declaration "uarray(maxlev,maxlev)!". Ignoring. Line #46 in matrix.f:" real8 uarray(maxlev,maxlev) ! reduced rate matrix" updatevars: attempt to change the type of "reduced" ("integer") to "real". Ignoring. Line #46 in matrix.f:" real8 uarray(maxlev,maxlev) ! reduced rate matrix" updatevars: attempt to change the type of "rate" ("integer") to "real". Ignoring. Line #46 in matrix.f:" real8 uarray(maxlev,maxlev) ! reduced rate matrix" updatevars: attempt to change the type of "matrix" ("integer") to "real". Ignoring. Line #47 in matrix.f:" real8 redcrit ! reduction criterion" updatevars: could not crack entity declaration "redcrit!". Ignoring. Line #48 in matrix.f:" real8 sumx ! summed radiative rate" updatevars: could not crack entity declaration "sumx!". Ignoring. Line #48 in matrix.f:" real8 sumx ! summed radiative rate" updatevars: attempt to change the type of "rate" ("integer") to "real". Ignoring. Line #49 in matrix.f:" real8 total ! to normalize populations" updatevars: could not crack entity declaration "total!". Ignoring. Line #49 in matrix.f:" real8 total ! to normalize populations" updatevars: attempt to change the type of "to" ("integer") to "real". Ignoring. Line #51 in matrix.f:" real8 tsum,thistex ! to check convergence" updatevars: could not crack entity declaration "thistex!". Ignoring. Line #51 in matrix.f:" real8 tsum,thistex ! to check convergence" updatevars: attempt to change the type of "to" ("integer") to "real". Ignoring. Line #54 in matrix.f:" logical conv ! are we converged?" updatevars: could not crack entity declaration "conv!". Ignoring. Line #54 in matrix.f:" logical conv ! are we converged?" updatevars: could not crack entity declaration "converged?". Ignoring. Reading file 'radex.inc' (format:fix) Line #329 in matrix.f:" real8 taur !optical radius" updatevars: could not crack entity declaration "taur!optical". Ignoring. Reading file 'io.f' (format:fix,strict) Reading file 'radex.inc' (format:fix) Line #24 in io.f:" integer length ! subroutine to determine" updatevars: could not crack entity declaration "length!". Ignoring. Line #26 in io.f:" integer ipart ! loop over collision partners" updatevars: could not crack entity declaration "ipart!". Ignoring. Line #27 in io.f:" character10 partner ! name of collision partner" updatevars: no name pattern found for entity='!'. Skipping. Line #27 in io.f:" character10 partner ! name of collision partner" updatevars: attempt to change the type of "collision" ("integer") to "character". Ignoring. updatevars:collision: attempt to change empty charselector to {'': '10'}. Ignoring. Line #30 in io.f:" integer id ! ID code of collision partner" updatevars: could not crack entity declaration "id!". Ignoring. Line #30 in io.f:" integer id ! ID code of collision partner" updatevars: attempt to change the type of "of" ("character") to "integer". Ignoring. Line #30 in io.f:" integer id ! ID code of collision partner" updatevars: attempt to change the type of "partner" ("character") to "integer". Ignoring. Reading file 'radex.inc' (format:fix) Line #162 in io.f:" integer ipart ! to loop over collision partners" updatevars: could not crack entity declaration "ipart!". Ignoring. Reading file 'radex.inc' (format:fix) Line #201 in io.f:" integer iline ! to loop over lines" updatevars: could not crack entity declaration "iline!". Ignoring. Line #202 in io.f:" integer m,n ! upper & lower level of the line" updatevars: could not crack entity declaration "n!". Ignoring. Line #202 in io.f:" integer m,n ! upper & lower level of the line" updatevars: no name pattern found for entity='&'. Skipping. Line #204 in io.f:" integer niter ! final number of iterations" updatevars: could not crack entity declaration "niter!". Ignoring. Line #208 in io.f:" real8 xt ! frequency cubed" updatevars: could not crack entity declaration "xt!". Ignoring. Line #209 in io.f:" real8 hnu ! photon energy" updatevars: could not crack entity declaration "hnu!". Ignoring. Line #210 in io.f:" real8 bnutex ! line source function" updatevars: could not crack entity declaration "bnutex!". Ignoring. Line #210 in io.f:" real8 bnutex ! line source function" updatevars: attempt to change the type of "line" ("integer") to "real". Ignoring. Line #211 in io.f:" real8 ftau ! exp(-tau)" updatevars: could not crack entity declaration "ftau!". Ignoring. Line #212 in io.f:" real8 toti ! background intensity" updatevars: could not crack entity declaration "toti!". Ignoring. Line #213 in io.f:" real8 tbl ! black body temperature" updatevars: could not crack entity declaration "tbl!". Ignoring. Line #214 in io.f:" real8 wh ! Planck correction" updatevars: could not crack entity declaration "wh!". Ignoring. Line #215 in io.f:" real8 tback ! background temperature" updatevars: could not crack entity declaration "tback!". Ignoring. Line #216 in io.f:" real8 ta ! line antenna temperature" updatevars: could not crack entity declaration "ta!". Ignoring. Line #216 in io.f:" real8 ta ! line antenna temperature" updatevars: attempt to change the type of "line" ("integer") to "real". Ignoring. Line #217 in io.f:" real8 tr ! line radiation temperature" updatevars: could not crack entity declaration "tr!". Ignoring. Line #217 in io.f:" real8 tr ! line radiation temperature" updatevars: attempt to change the type of "line" ("integer") to "real". Ignoring. Line #218 in io.f:" real8 beta,escprob ! escape probability" updatevars: no name pattern found for entity='!'. Skipping. Line #220 in io.f:" real8 bnu ! Planck function" updatevars: could not crack entity declaration "bnu!". Ignoring. Line #221 in io.f:" real8 kkms ! line integrated intensity (K km/s)" updatevars: could not crack entity declaration "kkms!". Ignoring. Line #221 in io.f:" real8 kkms ! line integrated intensity (K km/s)" updatevars: attempt to change the type of "line" ("integer") to "real". Ignoring. Line #222 in io.f:" real8 ergs ! line flux (erg / s / cm^2)" updatevars: could not crack entity declaration "ergs!". Ignoring. Line #222 in io.f:" real8 ergs ! line flux (erg / s / cm^2)" updatevars: attempt to change the type of "line" ("integer") to "real". Ignoring. Line #227 in io.f:" real8 wavel ! line wavelength (micron)" updatevars: could not crack entity declaration "wavel!". Ignoring. Line #227 in io.f:" real8 wavel ! line wavelength (micron)" updatevars: attempt to change the type of "line" ("integer") to "real". Ignoring. Reading file 'readdata.f' (format:fix,strict) Reading file 'radex.inc' (format:fix) Line #25 in readdata.f:" integer ilev,jlev ! to loop over energy levels" updatevars: could not crack entity declaration "jlev!". Ignoring. Line #26 in readdata.f:" integer iline ! to loop over lines" updatevars: could not crack entity declaration "iline!". Ignoring. Line #27 in readdata.f:" integer ipart,jpart ! to loop over collision partners" updatevars: no name pattern found for entity='!'. Skipping. Line #28 in readdata.f:" integer itemp ! to loop over collision temperatures" updatevars: could not crack entity declaration "itemp!". Ignoring. Line #29 in readdata.f:" integer icoll ! to loop over collisional transitions" updatevars: could not crack entity declaration "icoll!". Ignoring. Line #31 in readdata.f:" integer dummy ! to skip part of the file" updatevars: could not crack entity declaration "dummy!". Ignoring. Line #34 in readdata.f:" integer id(maxpart) ! to identify collision partners" updatevars: could not crack entity declaration "id(maxpart)!". Ignoring. Line #40 in readdata.f:" real8 temp(maxtemp) ! collision temperatures" updatevars: could not crack entity declaration "temp(maxtemp)!". Ignoring. Line #40 in readdata.f:" real8 temp(maxtemp) ! collision temperatures" updatevars: attempt to change the type of "collision" ("integer") to "real". Ignoring. Line #40 in readdata.f:" real8 temp(maxtemp) ! collision temperatures" updatevars: attempt to change the type of "temperatures" ("integer") to "real". Ignoring. Line #43 in readdata.f:" character120 collref ! text about source of collisional data" updatevars: no name pattern found for entity='!'. Skipping. Line #43 in readdata.f:" character120 collref ! text about source of collisional data" updatevars: attempt to change the type of "of" ("integer") to "character". Ignoring. updatevars:of: attempt to change empty charselector to {'': '120'}. Ignoring. Line #43 in readdata.f:" character120 collref ! text about source of collisional data" updatevars: attempt to change the type of "collisional" ("integer") to "character". Ignoring. updatevars:collisional: attempt to change empty charselector to {'': '120'}. Ignoring. Post-processing... Block: radex analyzevars: character array "character6 qnum(2999)" is considered as "character qnum(2999,6)"; "intent(c)" is forced. Block: backrad analyzevars: character array "character6 qnum(2999)" is considered as "character qnum(2999,6)"; "intent(c)" is forced. Block: galbr analyzevars: character array "character6 qnum(2999)" is considered as "character qnum(2999,6)"; "intent(c)" is forced. Block: splcoeff Block: splintrp Block: ludcmp Block: lubksb Block: sgeir Block: r1mach Block: sasum Block: scopy Block: sdsdot Block: sgefa Block: isamax Block: saxpy Block: sscal Block: sgesl Block: sdot Block: xermsg Block: j4save Block: xercnt Block: xerhlt Block: xerprn Block: i1mach Block: xgetua Block: xersve analyzevars: character array "character8 libtab(10)" is considered as "character libtab(10,8)"; "intent(c)" is forced. analyzevars: character array "character8 subtab(10)" is considered as "character subtab(10,8)"; "intent(c)" is forced. analyzevars: character array "character20 mestab(10)" is considered as "character mestab(10,20)"; "intent(c)" is forced. Block: fdump Block: matrix analyzevars: character array "character6 qnum(2999)" is considered as "character qnum(2999,6)"; "intent(c)" is forced. Block: escprob analyzevars: character array "character6 qnum(2999)" is considered as "character qnum(2999,6)"; "intent(c)" is forced. Block: getinputs analyzevars: character array "character6 qnum(2999)" is considered as "character qnum(2999,6)"; "intent(c)" is forced. Block: defaults analyzevars: character array "character6 qnum(2999)" is considered as "character qnum(2999,6)"; "intent(c)" is forced. Block: length Block: output analyzevars: character array "character6 qnum(2999)" is considered as "character qnum(2999,6)"; "intent(c)" is forced. /Users/zqq/opt/anaconda3/lib/python3.8/site-packages/numpy/f2py/symbolic.py:1508: ExprWarning: fromstring: treating 'k km' as symbol (original=k km/s) ewarn( /Users/zqq/opt/anaconda3/lib/python3.8/site-packages/numpy/f2py/symbolic.py:1508: ExprWarning: fromstring: treating 'cm^2' as symbol (original=erg/s/cm^2) ewarn( Block: readdata analyzevars: character array "character6 qnum(2999)" is considered as "character qnum(2999,6)"; "intent(c)" is forced. Post-processing (stage 2)... Saving signatures to file "./radex.pyf" Running f2py with fcompiler=gfortran, f77exec=, include_path=-I/Users/zqq/astro/pyradex/Radex/src Unknown vendor: "gfortran" running build running config_cc INFO: unifing config_cc, config, build_clib, build_ext, build commands --compiler options running config_fc INFO: unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options running build_src INFO: build_src INFO: building extension "radex" sources INFO: f2py options: [] INFO: f2py:> /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpo2h_5idr/src.macosx-10.9-x86_64-3.8/radexmodule.c creating /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpo2h_5idr/src.macosx-10.9-x86_64-3.8 Reading fortran codes... Reading file '/var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f' (format:fix,strict) Reading file 'radex.inc' (format:fix) Line #25 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" integer niter ! iteration counter" updatevars: could not crack entity declaration "niter!". Ignoring. Line #26 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" integer imore ! are we running again?" updatevars: could not crack entity declaration "imore!". Ignoring. Line #26 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" integer imore ! are we running again?" updatevars: could not crack entity declaration "again?". Ignoring. Line #29 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" logical conv ! are we converged?" updatevars: could not crack entity declaration "conv!". Ignoring. Line #29 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" logical conv ! are we converged?" updatevars: attempt to change the type of "are" ("integer") to "logical". Ignoring. Line #29 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" logical conv ! are we converged?" updatevars: attempt to change the type of "we" ("integer") to "logical". Ignoring. Line #29 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" logical conv ! are we converged?" updatevars: could not crack entity declaration "converged?". Ignoring. Reading file 'radex.inc' (format:fix) Reading file 'radex.inc' (format:fix) Reading file 'radex.inc' (format:fix) Line #3992 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" integer niter ! iteration counter" updatevars: could not crack entity declaration "niter!". Ignoring. Line #3993 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" integer ilev,jlev,klev ! to loop over energy levels" updatevars: could not crack entity declaration "klev!". Ignoring. Line #3994 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" integer nplus ! to solve statistical equilibrium" updatevars: could not crack entity declaration "nplus!". Ignoring. Line #3995 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" integer iline ! to loop over lines" updatevars: could not crack entity declaration "iline!". Ignoring. Line #3996 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" integer m,n ! line upper/lower levels" updatevars: could not crack entity declaration "n!". Ignoring. Line #3996 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" integer m,n ! line upper/lower levels" updatevars: could not crack entity declaration "upper/lower". Ignoring. Line #3997 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" integer nthick ! counts optically thick lines" updatevars: could not crack entity declaration "nthick!". Ignoring. Line #3998 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" integer nfat ! counts highly optically thick lines" updatevars: could not crack entity declaration "nfat!". Ignoring. Line #3999 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" integer nreduce ! size of reduced rate matrix" updatevars: could not crack entity declaration "nreduce!". Ignoring. Line #4001 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" integer indx,dsign ! needed for NumRep equation solver" updatevars: could not crack entity declaration "dsign!". Ignoring. Line #4002 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" real8 rhs(maxlev) ! RHS of rate equation" updatevars: could not crack entity declaration "rhs(maxlev)!". Ignoring. Line #4002 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" real8 rhs(maxlev) ! RHS of rate equation" updatevars: attempt to change the type of "of" ("integer") to "real". Ignoring. Line #4002 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" real8 rhs(maxlev) ! RHS of rate equation" updatevars: attempt to change the type of "rate" ("integer") to "real". Ignoring. Line #4002 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" real8 rhs(maxlev) ! RHS of rate equation" updatevars: attempt to change the type of "equation" ("integer") to "real". Ignoring. Line #4004 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" real8 yrate(maxlev,maxlev) ! rate matrix" updatevars: could not crack entity declaration "yrate(maxlev,maxlev)!". Ignoring. Line #4004 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" real8 yrate(maxlev,maxlev) ! rate matrix" updatevars: attempt to change the type of "rate" ("integer") to "real". Ignoring. Line #4004 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" real8 yrate(maxlev,maxlev) ! rate matrix" updatevars: attempt to change the type of "matrix" ("integer") to "real". Ignoring. Line #4005 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" real8 etr,exr ! to calculate radiative rates" updatevars: could not crack entity declaration "exr!". Ignoring. Line #4005 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" real8 etr,exr ! to calculate radiative rates" updatevars: attempt to change the type of "to" ("integer") to "real". Ignoring. Line #4006 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" real8 xt ! frequency cubed" updatevars: could not crack entity declaration "xt!". Ignoring. Line #4007 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" real8 hnu ! photon energy" updatevars: could not crack entity declaration "hnu!". Ignoring. Line #4007 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" real8 hnu ! photon energy" updatevars: attempt to change the type of "energy" ("integer") to "real". Ignoring. Line #4008 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" real8 bnutex ! line source function" updatevars: could not crack entity declaration "bnutex!". Ignoring. Line #4008 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" real8 bnutex ! line source function" updatevars: attempt to change the type of "line" ("integer") to "real". Ignoring. Line #4009 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" real8 cddv ! N(mol) / delta V" updatevars: could not crack entity declaration "cddv!". Ignoring. Line #4009 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" real8 cddv ! N(mol) / delta V" updatevars: attempt to change the type of "n" ("integer") to "real". Ignoring. Line #4009 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" real8 cddv ! N(mol) / delta V" updatevars: could not crack entity declaration "n(mol)/delta". Ignoring. Line #4010 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" real8 beta,escprob ! escape probability" updatevars: could not crack entity declaration "escprob!". Ignoring. Line #4012 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" real8 bnu ! Planck function" updatevars: could not crack entity declaration "bnu!". Ignoring. Line #4013 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" real8 uarray(maxlev,maxlev) ! reduced rate matrix" updatevars: could not crack entity declaration "uarray(maxlev,maxlev)!". Ignoring. Line #4013 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" real8 uarray(maxlev,maxlev) ! reduced rate matrix" updatevars: attempt to change the type of "reduced" ("integer") to "real". Ignoring. Line #4013 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" real8 uarray(maxlev,maxlev) ! reduced rate matrix" updatevars: attempt to change the type of "rate" ("integer") to "real". Ignoring. Line #4013 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" real8 uarray(maxlev,maxlev) ! reduced rate matrix" updatevars: attempt to change the type of "matrix" ("integer") to "real". Ignoring. Line #4014 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" real8 redcrit ! reduction criterion" updatevars: could not crack entity declaration "redcrit!". Ignoring. Line #4015 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" real8 sumx ! summed radiative rate" updatevars: could not crack entity declaration "sumx!". Ignoring. Line #4015 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" real8 sumx ! summed radiative rate" updatevars: attempt to change the type of "rate" ("integer") to "real". Ignoring. Line #4016 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" real8 total ! to normalize populations" updatevars: could not crack entity declaration "total!". Ignoring. Line #4016 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" real8 total ! to normalize populations" updatevars: attempt to change the type of "to" ("integer") to "real". Ignoring. Line #4018 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" real8 tsum,thistex ! to check convergence" updatevars: could not crack entity declaration "thistex!". Ignoring. Line #4018 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" real8 tsum,thistex ! to check convergence" updatevars: attempt to change the type of "to" ("integer") to "real". Ignoring. Line #4021 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" logical conv ! are we converged?" updatevars: could not crack entity declaration "conv!". Ignoring. Line #4021 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" logical conv ! are we converged?" updatevars: could not crack entity declaration "converged?". Ignoring. Reading file 'radex.inc' (format:fix) Line #4296 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" real8 taur !optical radius" updatevars: could not crack entity declaration "taur!optical". Ignoring. Reading file 'radex.inc' (format:fix) Line #4365 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" integer length ! subroutine to determine" updatevars: could not crack entity declaration "length!". Ignoring. Line #4367 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" integer ipart ! loop over collision partners" updatevars: could not crack entity declaration "ipart!". Ignoring. Line #4368 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" character10 partner ! name of collision partner" updatevars: no name pattern found for entity='!'. Skipping. Line #4368 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" character10 partner ! name of collision partner" updatevars: attempt to change the type of "collision" ("integer") to "character". Ignoring. Line #4371 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" integer id ! ID code of collision partner" updatevars: could not crack entity declaration "id!". Ignoring. Line #4371 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" integer id ! ID code of collision partner" updatevars: attempt to change the type of "of" ("character") to "integer". Ignoring. Line #4371 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" integer id ! ID code of collision partner" updatevars: attempt to change the type of "partner" ("character") to "integer". Ignoring. Reading file 'radex.inc' (format:fix) Line #4503 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" integer ipart ! to loop over collision partners" updatevars: could not crack entity declaration "ipart!". Ignoring. Reading file 'radex.inc' (format:fix) Line #4542 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" integer iline ! to loop over lines" updatevars: could not crack entity declaration "iline!". Ignoring. Line #4543 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" integer m,n ! upper & lower level of the line" updatevars: could not crack entity declaration "n!". Ignoring. Line #4543 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" integer m,n ! upper & lower level of the line" updatevars: no name pattern found for entity='&'. Skipping. Line #4545 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" integer niter ! final number of iterations" updatevars: could not crack entity declaration "niter!". Ignoring. Line #4549 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" real8 xt ! frequency cubed" updatevars: could not crack entity declaration "xt!". Ignoring. Line #4550 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" real8 hnu ! photon energy" updatevars: could not crack entity declaration "hnu!". Ignoring. Line #4551 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" real8 bnutex ! line source function" updatevars: could not crack entity declaration "bnutex!". Ignoring. Line #4551 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" real8 bnutex ! line source function" updatevars: attempt to change the type of "line" ("integer") to "real". Ignoring. Line #4552 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" real8 ftau ! exp(-tau)" updatevars: could not crack entity declaration "ftau!". Ignoring. Line #4553 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" real8 toti ! background intensity" updatevars: could not crack entity declaration "toti!". Ignoring. Line #4554 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" real8 tbl ! black body temperature" updatevars: could not crack entity declaration "tbl!". Ignoring. Line #4555 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" real8 wh ! Planck correction" updatevars: could not crack entity declaration "wh!". Ignoring. Line #4556 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" real8 tback ! background temperature" updatevars: could not crack entity declaration "tback!". Ignoring. Line #4557 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" real8 ta ! line antenna temperature" updatevars: could not crack entity declaration "ta!". Ignoring. Line #4557 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" real8 ta ! line antenna temperature" updatevars: attempt to change the type of "line" ("integer") to "real". Ignoring. Line #4558 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" real8 tr ! line radiation temperature" updatevars: could not crack entity declaration "tr!". Ignoring. Line #4558 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" real8 tr ! line radiation temperature" updatevars: attempt to change the type of "line" ("integer") to "real". Ignoring. Line #4559 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" real8 beta,escprob ! escape probability" updatevars: no name pattern found for entity='!'. Skipping. Line #4561 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" real8 bnu ! Planck function" updatevars: could not crack entity declaration "bnu!". Ignoring. Line #4562 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" real8 kkms ! line integrated intensity (K km/s)" updatevars: could not crack entity declaration "kkms!". Ignoring. Line #4562 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" real8 kkms ! line integrated intensity (K km/s)" updatevars: attempt to change the type of "line" ("integer") to "real". Ignoring. Line #4563 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" real8 ergs ! line flux (erg / s / cm^2)" updatevars: could not crack entity declaration "ergs!". Ignoring. Line #4563 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" real8 ergs ! line flux (erg / s / cm^2)" updatevars: attempt to change the type of "line" ("integer") to "real". Ignoring. Line #4568 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" real8 wavel ! line wavelength (micron)" updatevars: could not crack entity declaration "wavel!". Ignoring. Line #4568 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" real8 wavel ! line wavelength (micron)" updatevars: attempt to change the type of "line" ("integer") to "real". Ignoring. Reading file 'radex.inc' (format:fix) Line #4718 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" integer ilev,jlev ! to loop over energy levels" updatevars: could not crack entity declaration "jlev!". Ignoring. Line #4719 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" integer iline ! to loop over lines" updatevars: could not crack entity declaration "iline!". Ignoring. Line #4720 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" integer ipart,jpart ! to loop over collision partners" updatevars: no name pattern found for entity='!'. Skipping. Line #4721 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" integer itemp ! to loop over collision temperatures" updatevars: could not crack entity declaration "itemp!". Ignoring. Line #4722 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" integer icoll ! to loop over collisional transitions" updatevars: could not crack entity declaration "icoll!". Ignoring. Line #4724 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" integer dummy ! to skip part of the file" updatevars: could not crack entity declaration "dummy!". Ignoring. Line #4727 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" integer id(maxpart) ! to identify collision partners" updatevars: could not crack entity declaration "id(maxpart)!". Ignoring. Line #4733 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" real8 temp(maxtemp) ! collision temperatures" updatevars: could not crack entity declaration "temp(maxtemp)!". Ignoring. Line #4733 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" real8 temp(maxtemp) ! collision temperatures" updatevars: attempt to change the type of "collision" ("integer") to "real". Ignoring. Line #4733 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" real8 temp(maxtemp) ! collision temperatures" updatevars: attempt to change the type of "temperatures" ("integer") to "real". Ignoring. Line #4736 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" character120 collref ! text about source of collisional data" updatevars: no name pattern found for entity='!'. Skipping. Line #4736 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" character120 collref ! text about source of collisional data" updatevars: attempt to change the type of "of" ("integer") to "character". Ignoring. Line #4736 in /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:" character120 collref ! text about source of collisional data" updatevars: attempt to change the type of "collisional" ("integer") to "character". Ignoring. Post-processing... Block: radex Block: radex Block: backrad Block: galbr Block: splcoeff Block: splintrp Block: ludcmp Block: lubksb Block: sgeir {} In: :radex:/var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:r1mach vars2fortran: No typespec for argument "i". Block: r1mach Block: sasum {} In: :radex:/var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:scopy vars2fortran: No typespec for argument "n". {} In: :radex:/var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:scopy vars2fortran: No typespec for argument "incx". {} In: :radex:/var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:scopy vars2fortran: No typespec for argument "incy". Block: scopy {} In: :radex:/var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:sdsdot vars2fortran: No typespec for argument "n". {} In: :radex:/var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:sdsdot vars2fortran: No typespec for argument "incx". {} In: :radex:/var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:sdsdot vars2fortran: No typespec for argument "incy". Block: sdsdot Block: sgefa Block: isamax {} In: :radex:/var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:saxpy vars2fortran: No typespec for argument "n". {} In: :radex:/var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:saxpy vars2fortran: No typespec for argument "incx". {} In: :radex:/var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:saxpy vars2fortran: No typespec for argument "incy". Block: saxpy Block: sscal Block: sgesl {} In: :radex:/var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:sdot vars2fortran: No typespec for argument "n". {} In: :radex:/var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:sdot vars2fortran: No typespec for argument "incx". {} In: :radex:/var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:sdot vars2fortran: No typespec for argument "incy". Block: sdot {} In: :radex:/var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:xermsg vars2fortran: No typespec for argument "nerr". {} In: :radex:/var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:xermsg vars2fortran: No typespec for argument "level". Block: xermsg {} In: :radex:/var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:j4save vars2fortran: No typespec for argument "iwhich". {} In: :radex:/var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:j4save vars2fortran: No typespec for argument "ivalue". Block: j4save {} In: :radex:/var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:xercnt vars2fortran: No typespec for argument "nerr". {} In: :radex:/var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:xercnt vars2fortran: No typespec for argument "level". {} In: :radex:/var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:xercnt vars2fortran: No typespec for argument "kontrl". Block: xercnt Block: xerhlt Block: xerprn {} In: :radex:/var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:i1mach vars2fortran: No typespec for argument "i". Block: i1mach {'attrspec': ['dimension(5)']} In: :radex:/var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:xgetua vars2fortran: No typespec for argument "iunita". {} In: :radex:/var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:xgetua vars2fortran: No typespec for argument "n". Block: xgetua {} In: :radex:/var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:xersve vars2fortran: No typespec for argument "kflag". {} In: :radex:/var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:xersve vars2fortran: No typespec for argument "nerr". {} In: :radex:/var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:xersve vars2fortran: No typespec for argument "level". {} In: :radex:/var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f:xersve vars2fortran: No typespec for argument "icount". Block: xersve Block: fdump Block: matrix Block: escprob Block: getinputs Block: defaults Block: length Block: output Block: readdata Post-processing (stage 2)... Building modules... Building module "radex"... Constructing wrapper function "backrad"... backrad() Constructing wrapper function "galbr"... galbr() Constructing wrapper function "splcoeff"... splcoeff(x,f,n,fp1,fpn,fpp) Constructing wrapper function "splintrp"... splintrp(xin,fin,fppin,x,fout,[n]) Constructing wrapper function "ludcmp"... ludcmp(a,indx,d,[n,np]) Constructing wrapper function "lubksb"... lubksb(a,n,indx,b,[np]) Constructing wrapper function "sgeir"... getarrdims:warning: assumed shape array, using 0 instead of '' getarrdims:warning: assumed shape array, using 0 instead of '' getarrdims:warning: assumed shape array, using 0 instead of '' getarrdims:warning: assumed shape array, using 0 instead of '' sgeir(a,v,itask,ind,work,iwork,[lda,n]) Creating wrapper for Fortran function "r1mach"("r1mach")... Constructing wrapper function "r1mach"... r1mach = r1mach(i) Creating wrapper for Fortran function "sasum"("sasum")... Constructing wrapper function "sasum"... getarrdims:warning: assumed shape array, using 0 instead of '' sasum = sasum(n,sx,incx) Constructing wrapper function "scopy"... getarrdims:warning: assumed shape array, using 0 instead of '' getarrdims:warning: assumed shape array, using 0 instead of '' scopy(n,sx,incx,sy,incy) Creating wrapper for Fortran function "sdsdot"("sdsdot")... Constructing wrapper function "sdsdot"... getarrdims:warning: assumed shape array, using 0 instead of '' getarrdims:warning: assumed shape array, using 0 instead of '' sdsdot = sdsdot(n,sb,sx,incx,sy,incy) Constructing wrapper function "sgefa"... getarrdims:warning: assumed shape array, using 0 instead of '' getarrdims:warning: assumed shape array, using 0 instead of '' sgefa(a,n,ipvt,info,[lda]) Creating wrapper for Fortran function "isamax"("isamax")... Constructing wrapper function "isamax"... getarrdims:warning: assumed shape array, using 0 instead of '' isamax = isamax(n,sx,incx) Constructing wrapper function "saxpy"... getarrdims:warning: assumed shape array, using 0 instead of '' getarrdims:warning: assumed shape array, using 0 instead of '' saxpy(n,sa,sx,incx,sy,incy) Constructing wrapper function "sscal"... getarrdims:warning: assumed shape array, using 0 instead of '' sscal(n,sa,sx,incx) Constructing wrapper function "sgesl"... getarrdims:warning: assumed shape array, using 0 instead of '' getarrdims:warning: assumed shape array, using 0 instead of '' getarrdims:warning: assumed shape array, using 0 instead of '' sgesl(a,n,ipvt,b,job,[lda]) Creating wrapper for Fortran function "sdot"("sdot")... Constructing wrapper function "sdot"... getarrdims:warning: assumed shape array, using 0 instead of '' getarrdims:warning: assumed shape array, using 0 instead of '*' sdot = sdot(n,sx,incx,sy,incy) Constructing wrapper function "xermsg"... xermsg(librar,subrou,messg,nerr,level) Creating wrapper for Fortran function "j4save"("j4save")... Constructing wrapper function "j4save"... j4save = j4save(iwhich,ivalue,iset) Constructing wrapper function "xercnt"... xercnt(librar,subrou,messg,nerr,level,kontrl) Constructing wrapper function "xerhlt"... xerhlt(messg) Constructing wrapper function "xerprn"... xerprn(prefix,npref,messg,nwrap) Creating wrapper for Fortran function "i1mach"("i1mach")... Constructing wrapper function "i1mach"... i1mach = i1mach(i) Constructing wrapper function "xgetua"... xgetua(iunita,n) Constructing wrapper function "xersve"... xersve(librar,subrou,messg,kflag,nerr,level,icount) Constructing wrapper function "fdump"... fdump() Constructing wrapper function "matrix"... matrix(niter,conv) Creating wrapper for Fortran function "escprob"("escprob")... Constructing wrapper function "escprob"... escprob = escprob(tau) Constructing wrapper function "getinputs"... getinputs() Constructing wrapper function "defaults"... defaults() Creating wrapper for Fortran function "length"("length")... Constructing wrapper function "length"... length = length(str) Constructing wrapper function "output"... output(niter) Constructing wrapper function "readdata"... readdata() Constructing COMMON block support for "impex"... outfile,molfile,specref Constructing COMMON block support for "setup"... radat,method,version,logfile Constructing COMMON block support for "imolec"... nlev,nline,ncoll,npart,ntemp,iupp,ilow Constructing COMMON block support for "rmolec"... amass,eterm,gstat,aeinst,eup Constructing COMMON block support for "cphys"... density,tkin,tbg,cdmol,deltav,totdens Constructing COMMON block support for "freq"... fmin,fmax Constructing COMMON block support for "radi"... xnu,taul,tex,backi,totalb,spfreq,trj Constructing COMMON block support for "quant"... qnum Constructing COMMON block support for "collie"... crate,ctot,xpop Constructing COMMON block support for "dbg"... debug Wrote C/API module "radex" to file "/var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpo2h_5idr/src.macosx-10.9-x86_64-3.8/radexmodule.c" Fortran 77 wrappers are saved to "/var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpo2h_5idr/src.macosx-10.9-x86_64-3.8/radex-f2pywrappers.f" INFO: adding '/var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpo2h_5idr/src.macosx-10.9-x86_64-3.8/fortranobject.c' to sources. INFO: adding '/var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpo2h_5idr/src.macosx-10.9-x86_64-3.8' to include_dirs. copying /Users/zqq/opt/anaconda3/lib/python3.8/site-packages/numpy/f2py/src/fortranobject.c -> /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpo2h_5idr/src.macosx-10.9-x86_64-3.8 copying /Users/zqq/opt/anaconda3/lib/python3.8/site-packages/numpy/f2py/src/fortranobject.h -> /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpo2h_5idr/src.macosx-10.9-x86_64-3.8 INFO: adding '/var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpo2h_5idr/src.macosx-10.9-x86_64-3.8/radex-f2pywrappers.f' to sources. INFO: build_src: building npy-pkg config files running build_ext INFO: customize UnixCCompiler INFO: customize UnixCCompiler using build_ext INFO: customize Gnu95FCompiler INFO: Found executable /usr/local/bin/gfortran INFO: customize Gnu95FCompiler using build_ext INFO: building 'radex' extension INFO: compiling C sources INFO: C compiler: /usr/local/bin/gcc-11 -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/zqq/opt/anaconda3/include -fPIC -O2 -isystem /Users/zqq/opt/anaconda3/include

creating /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpo2h_5idr/var creating /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpo2h_5idr/var/folders creating /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpo2h_5idr/var/folders/d8 creating /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpo2h_5idr/var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn creating /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpo2h_5idr/var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T creating /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpo2h_5idr/var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpo2h_5idr creating /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpo2h_5idr/var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpo2h_5idr/src.macosx-10.9-x86_64-3.8 INFO: compile options: '-DNPY_DISABLE_OPTIMIZATION=1 -I/Users/zqq/astro/pyradex/Radex/src -I/var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpo2h_5idr/src.macosx-10.9-x86_64-3.8 -I/Users/zqq/opt/anaconda3/lib/python3.8/site-packages/numpy/core/include -I/Users/zqq/opt/anaconda3/include/python3.8 -c' INFO: gcc-11: /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpo2h_5idr/src.macosx-10.9-x86_64-3.8/radexmodule.c INFO: gcc-11: /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpo2h_5idr/src.macosx-10.9-x86_64-3.8/fortranobject.c INFO: compiling Fortran sources INFO: Fortran f77 compiler: /usr/local/bin/gfortran -fno-automatic -fPIC -O3 -funroll-loops Fortran f90 compiler: /usr/local/bin/gfortran -Wall -g -fno-second-underscore -fPIC -O3 -funroll-loops Fortran fix compiler: /usr/local/bin/gfortran -Wall -g -ffixed-form -fno-second-underscore -Wall -g -fno-second-underscore -fPIC -O3 -funroll-loops INFO: compile options: '-I/Users/zqq/astro/pyradex/Radex/src -I/var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpo2h_5idr/src.macosx-10.9-x86_64-3.8 -I/Users/zqq/opt/anaconda3/lib/python3.8/site-packages/numpy/core/include -I/Users/zqq/opt/anaconda3/include/python3.8 -c' INFO: gfortran:f77: /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpj3gk0rs9.f INFO: gfortran:f77: /var/folders/d8/kxg2pggj04j7ghnrz_hlp27r0000gn/T/tmpo2h_5idr/src.macosx-10.9-x86_64-3.8/radex-f2pywrappers.f

outfile = [] error: Did not find the correct .so file(s)! Compilation has failed.

What should I do? The python and gfortran versions are as follows:

$ python -c "import sys, astropy, numpy; print(sys.version); print(numpy.version,astropy.version)" 3.8.15 | packaged by conda-forge | (default, Nov 22 2022, 08:53:40) [Clang 14.0.6 ] 1.22.4 5.1.1

$ gfortran --version
GNU Fortran (Homebrew GCC 11.2.0_3) 11.2.0 Copyright (C) 2021 Free Software Foundation, Inc.

keflavich commented 1 year ago

This appears to be a duplicate of https://github.com/keflavich/pyradex/issues/39.

Thanks for posting the full traceback.

Try running the following command in the directory Radex/src/:

f2py -c -m radex --f77flags=-fno-automatic --fcompiler=gfortran -I/Users/adam/repos/pyradex/Radex/src -L/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib *.f

You will need to replace the path after -I with the path to your Radex/src/ directory. The other path should work as is.

If that works... then in theory the existing python setup.py install_radex should work. But otherwise it should give more helpful error messages

Antares1234 commented 1 year ago

Thanks for your reply. I followed your suggestion and got the message "Installation has completed" after running the python setup.py install_radex command. But when I tried to run the example in README, another error occurred:

IndexError Traceback (most recent call last) File ~/astro/pyradex/pyradex/core.py:713, in Radex.datapath(self, radat)

    712 try:
--> 713     self.radex.setup.radat[:len(radat)] = radat
    714 except IndexError:
    715     # in python3, this might just work, where the above doesn't?
    716     # (this works if RADAT is an S120)
    717     # the added space is because the right and left side must have *exactly* the same size

IndexError: too many indices for array: array is 0-dimensional, but 1 were indexed During handling of the above exception, another exception occurred: ValueError Traceback (most recent call last) Cell In[1], line 3

      1 import pyradex
      2 import numpy as np
----> 3 R = pyradex.Radex(collider_densities={'oH2':900,'pH2':100}, column=1e16, species='co', temperature=20)
      4 Tlvg = R(escapeProbGeom='lvg')
      5 Tslab = R(escapeProbGeom='slab')

File ~/astro/pyradex/pyradex/core.py:290, in Radex.init(self, collider_densities, density, total_density, temperature, species, column, column_per_bin, tbackground, deltav, abundance, datapath, escapeProbGeom, outfile, logfile, debug, mu, source_area)

    287     log.debug(f"Datapath={datapath}")
    289 if datapath is not None:
--> 290     self.datapath = datapath
    291     if self.datapath != os.path.expanduser(datapath):
    292         raise ValueError("Data path %s was not successfully stored;"
    293                          " instead %s was." % (datapath,self.datapath))

File ~/astro/pyradex/pyradex/core.py:718, in Radex.datapath(self, radat)

    713     self.radex.setup.radat[:len(radat)] = radat
    714 except IndexError:
    715     # in python3, this might just work, where the above doesn't?
    716     # (this works if RADAT is an S120)
    717     # the added space is because the right and left side must have *exactly* the same size
--> 718     self.radex.setup.radat = radat + " " * (self.radex.setup.radat.dtype.itemsize - len(radat))

ValueError: 0-th dimension must be fixed to 120 but got 370

I'm not sure what it means.

keflavich commented 1 year ago

I can't produce exactly your error, but I do have an error:

Traceback (most recent call last):
  Cell In[1], line 1
    import pyradex
  File ~/repos/pyradex/pyradex/__init__.py:7
    from . import radex
  File ~/repos/pyradex/pyradex/radex/__init__.py:1
    from . import radex
ImportError: dlopen(/Users/adam/repos/pyradex/pyradex/radex/radex.so, 0x0002): tried: '/Users/adam/repos/pyradex/pyradex/radex/radex.so' (mach-o file, but is an incompatible architecture (have (x86_64), need (arm64e)))

which is caused by this:

$ file radex.cpython-39-darwin.so
radex.cpython-39-darwin.so: Mach-O 64-bit bundle x86_64

that I don't fully understand; I've set all my compiler flags to arm64. I'm still investigating.

keflavich commented 1 year ago

I got it to compile as an arm64 file now:

$ file /Users/adam/repos/pyradex/pyradex/radex/radex.so
/Users/adam/repos/pyradex/pyradex/radex/radex.so: Mach-O 64-bit bundle arm64

but now I get an immediate failure:

In [1]: import pyradex
   ...: import numpy as np
   ...: R = pyradex.Radex(collider_densities={'oH2':900,'pH2':100}, column=1e16, species='co', temperature=20)
   ...: Tlvg = R(escapeProbGeom='lvg')
   ...: Tslab = R(escapeProbGeom='slab')
   ...: Tsphere = R(escapeProbGeom='sphere')
   ...: Tlvg[:3].pprint()
   ...: Tslab[:3].pprint()
   ...: Tsphere[:3].pprint()
Bus error: 10
/Users/adam/mambaforge/envs/py39forge/lib/python3.9/multiprocessing/resource_tracker.py:216: UserWarning: resource_tracker: There appear to be 1 leaked semaphore objects to clean up at shutdown
  warnings.warn('resource_tracker: There appear to be %d '
keflavich commented 1 year ago

I have to give up on this for now; I have no idea how to get fortran compiling on mac. This is really unfortunate.

cesharon commented 1 year ago

I'm having similar issues, but I think I got close to compiling correctly, but I am also getting the bus error now. So let me post my info here in case it helps...

I had this working on my computer until I did an OS update back in Jan, and I just started trying to use it again this past week. Also, I am specifically trying to get this to work with emcee_radex, hence some weird file paths etc.

System info: MacOS v12.6.2, not on an M1 or anything new $ python -c "import sys, astropy, numpy; print(sys.version); print(numpy.version,astropy.version)" 3.9.16 | packaged by conda-forge | (main, Feb 1 2023, 21:42:20) [Clang 14.0.6 ] 1.24.2 5.2.1 $ gfortran --version GNU Fortran (GCC) 8.2.0

Here's what I did:

For completion, let me show you the f2py output (cutting out some lines I don't think are relevant): Unknown vendor: "gfortran" running build running config_cc INFO: unifing config_cc, config, build_clib, build_ext, build commands --compiler options running config_fc INFO: unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options running build_src INFO: build_src INFO: building extension "radex" sources INFO: f2py options: [] INFO: f2py:> /var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmps7do_v7w/src.macosx-10.9-x86_64-3.9/radexmodule.c creating /var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmps7do_v7w/src.macosx-10.9-x86_64-3.9 Reading fortran codes... Reading file 'background.f' (format:fix,strict) Reading file 'radex.inc' (format:fix) Line #49 in radex.inc:" parameter(hplanck = 6.6260963d-27) " get_parameters: got "eval() arg 1 must be a string, bytes or code object" on 4 Line #50 in radex.inc:" parameter(kboltz = 1.3806505d-16) " get_parameters: got "eval() arg 1 must be a string, bytes or code object" on 4 A bunch of similar messages here, omitted for length, but let me know if needed get_parameters: got "eval() arg 1 must be a string, bytes or code object" on 4 In: :radex:readdata.f:readdata get_parameters: got "eval() arg 1 must be a string, bytes or code object" on 4 Block: ludcmp Block: lubksb Block: sgeir {} In: :radex:slatec.f:r1mach vars2fortran: No typespec for argument "i". Block: r1mach Block: sasum {} In: :radex:slatec.f:scopy vars2fortran: No typespec for argument "n". {} In: :radex:slatec.f:scopy vars2fortran: No typespec for argument "incx". {} In: :radex:slatec.f:scopy vars2fortran: No typespec for argument "incy". Block: scopy {} In: :radex:slatec.f:sdsdot vars2fortran: No typespec for argument "n". {} In: :radex:slatec.f:sdsdot vars2fortran: No typespec for argument "incx". {} In: :radex:slatec.f:sdsdot vars2fortran: No typespec for argument "incy". Block: sdsdot Block: sgefa Block: isamax {} In: :radex:slatec.f:saxpy vars2fortran: No typespec for argument "n". {} In: :radex:slatec.f:saxpy vars2fortran: No typespec for argument "incx". {} In: :radex:slatec.f:saxpy vars2fortran: No typespec for argument "incy". Block: saxpy Block: sscal Block: sgesl {} In: :radex:slatec.f:sdot vars2fortran: No typespec for argument "n". {} In: :radex:slatec.f:sdot vars2fortran: No typespec for argument "incx". {} In: :radex:slatec.f:sdot vars2fortran: No typespec for argument "incy". Block: sdot {} In: :radex:slatec.f:xermsg vars2fortran: No typespec for argument "nerr". {} In: :radex:slatec.f:xermsg vars2fortran: No typespec for argument "level". Block: xermsg {} In: :radex:slatec.f:j4save vars2fortran: No typespec for argument "iwhich". {} In: :radex:slatec.f:j4save vars2fortran: No typespec for argument "ivalue". Block: j4save {} In: :radex:slatec.f:xercnt vars2fortran: No typespec for argument "nerr". {} In: :radex:slatec.f:xercnt vars2fortran: No typespec for argument "level". {} In: :radex:slatec.f:xercnt vars2fortran: No typespec for argument "kontrl". Block: xercnt Block: xerhlt Block: xerprn {} In: :radex:slatec.f:i1mach vars2fortran: No typespec for argument "i". Block: i1mach {'attrspec': ['dimension(5)']} In: :radex:slatec.f:xgetua vars2fortran: No typespec for argument "iunita". {} In: :radex:slatec.f:xgetua vars2fortran: No typespec for argument "n". Block: xgetua {} In: :radex:slatec.f:xersve vars2fortran: No typespec for argument "kflag". {} In: :radex:slatec.f:xersve vars2fortran: No typespec for argument "nerr". {} In: :radex:slatec.f:xersve vars2fortran: No typespec for argument "level". {} In: :radex:slatec.f:xersve vars2fortran: No typespec for argument "icount". Block: xersve Block: fdump Applying post-processing hooks... character_backward_compatibility_hook Post-processing (stage 2)... Building modules... Building module "radex"... Generating possibly empty wrappers" Maybe empty "radex-f2pywrappers.f" Constructing wrapper function "backrad"... backrad() Generating possibly empty wrappers" Maybe empty "radex-f2pywrappers.f" Constructing wrapper function "galbr"... galbr() Generating possibly empty wrappers" Maybe empty "radex-f2pywrappers.f" Constructing wrapper function "splcoeff"... splcoeff(x,f,n,fp1,fpn,fpp) Generating possibly empty wrappers" Maybe empty "radex-f2pywrappers.f" Constructing wrapper function "splintrp"... splintrp(xin,fin,fppin,x,fout,[n]) Generating possibly empty wrappers" Maybe empty "radex-f2pywrappers.f" Constructing wrapper function "getinputs"... getinputs() Generating possibly empty wrappers" Maybe empty "radex-f2pywrappers.f" Constructing wrapper function "defaults"... defaults() Generating possibly empty wrappers" Maybe empty "radex-f2pywrappers.f" Creating wrapper for Fortran function "length"("length")... Constructing wrapper function "length"... length = length(str) Generating possibly empty wrappers" Maybe empty "radex-f2pywrappers.f" Constructing wrapper function "output"... output(niter) Generating possibly empty wrappers" Maybe empty "radex-f2pywrappers.f" Constructing wrapper function "matrix"... matrix(niter,conv) Generating possibly empty wrappers" Maybe empty "radex-f2pywrappers.f" Creating wrapper for Fortran function "escprob"("escprob")... Constructing wrapper function "escprob"... escprob = escprob(tau) Generating possibly empty wrappers" Maybe empty "radex-f2pywrappers.f" Constructing wrapper function "readdata"... readdata() Generating possibly empty wrappers" Maybe empty "radex-f2pywrappers.f" Constructing wrapper function "ludcmp"... ludcmp(a,indx,d,[n,np]) Generating possibly empty wrappers" Maybe empty "radex-f2pywrappers.f" Constructing wrapper function "lubksb"... lubksb(a,n,indx,b,[np]) Generating possibly empty wrappers" Maybe empty "radex-f2pywrappers.f" Constructing wrapper function "sgeir"... getarrdims:warning: assumed shape array, using 0 instead of '' getarrdims:warning: assumed shape array, using 0 instead of '' getarrdims:warning: assumed shape array, using 0 instead of '' getarrdims:warning: assumed shape array, using 0 instead of '' sgeir(a,v,itask,ind,work,iwork,[lda,n]) Generating possibly empty wrappers" Maybe empty "radex-f2pywrappers.f" Creating wrapper for Fortran function "r1mach"("r1mach")... Constructing wrapper function "r1mach"... r1mach = r1mach(i) Generating possibly empty wrappers" Maybe empty "radex-f2pywrappers.f" Creating wrapper for Fortran function "sasum"("sasum")... Constructing wrapper function "sasum"... getarrdims:warning: assumed shape array, using 0 instead of '' sasum = sasum(n,sx,incx) Generating possibly empty wrappers" Maybe empty "radex-f2pywrappers.f" Constructing wrapper function "scopy"... getarrdims:warning: assumed shape array, using 0 instead of '' getarrdims:warning: assumed shape array, using 0 instead of '' scopy(n,sx,incx,sy,incy) Generating possibly empty wrappers" Maybe empty "radex-f2pywrappers.f" Creating wrapper for Fortran function "sdsdot"("sdsdot")... Constructing wrapper function "sdsdot"... getarrdims:warning: assumed shape array, using 0 instead of '' getarrdims:warning: assumed shape array, using 0 instead of '' sdsdot = sdsdot(n,sb,sx,incx,sy,incy) Generating possibly empty wrappers" Maybe empty "radex-f2pywrappers.f" Constructing wrapper function "sgefa"... getarrdims:warning: assumed shape array, using 0 instead of '' getarrdims:warning: assumed shape array, using 0 instead of '' sgefa(a,n,ipvt,info,[lda]) Generating possibly empty wrappers" Maybe empty "radex-f2pywrappers.f" Creating wrapper for Fortran function "isamax"("isamax")... Constructing wrapper function "isamax"... getarrdims:warning: assumed shape array, using 0 instead of '' isamax = isamax(n,sx,incx) Generating possibly empty wrappers" Maybe empty "radex-f2pywrappers.f" Constructing wrapper function "saxpy"... getarrdims:warning: assumed shape array, using 0 instead of '' getarrdims:warning: assumed shape array, using 0 instead of '' saxpy(n,sa,sx,incx,sy,incy) Generating possibly empty wrappers" Maybe empty "radex-f2pywrappers.f" Constructing wrapper function "sscal"... getarrdims:warning: assumed shape array, using 0 instead of '' sscal(n,sa,sx,incx) Generating possibly empty wrappers" Maybe empty "radex-f2pywrappers.f" Constructing wrapper function "sgesl"... getarrdims:warning: assumed shape array, using 0 instead of '' getarrdims:warning: assumed shape array, using 0 instead of '' getarrdims:warning: assumed shape array, using 0 instead of '' sgesl(a,n,ipvt,b,job,[lda]) Generating possibly empty wrappers" Maybe empty "radex-f2pywrappers.f" Creating wrapper for Fortran function "sdot"("sdot")... Constructing wrapper function "sdot"... getarrdims:warning: assumed shape array, using 0 instead of '' getarrdims:warning: assumed shape array, using 0 instead of '' sdot = sdot(n,sx,incx,sy,incy) Generating possibly empty wrappers" Maybe empty "radex-f2pywrappers.f" Constructing wrapper function "xermsg"... xermsg(librar,subrou,messg,nerr,level) Generating possibly empty wrappers" Maybe empty "radex-f2pywrappers.f" Creating wrapper for Fortran function "j4save"("j4save")... Constructing wrapper function "j4save"... j4save = j4save(iwhich,ivalue,iset) Generating possibly empty wrappers" Maybe empty "radex-f2pywrappers.f" Constructing wrapper function "xercnt"... xercnt(librar,subrou,messg,nerr,level,kontrl) Generating possibly empty wrappers" Maybe empty "radex-f2pywrappers.f" Constructing wrapper function "xerhlt"... xerhlt(messg) Generating possibly empty wrappers" Maybe empty "radex-f2pywrappers.f" Constructing wrapper function "xerprn"... xerprn(prefix,npref,messg,nwrap) Generating possibly empty wrappers" Maybe empty "radex-f2pywrappers.f" Creating wrapper for Fortran function "i1mach"("i1mach")... Constructing wrapper function "i1mach"... i1mach = i1mach(i) Generating possibly empty wrappers" Maybe empty "radex-f2pywrappers.f" Constructing wrapper function "xgetua"... xgetua(iunita,n) Generating possibly empty wrappers" Maybe empty "radex-f2pywrappers.f" Constructing wrapper function "xersve"... xersve(librar,subrou,messg,kflag,nerr,level,icount) Generating possibly empty wrappers" Maybe empty "radex-f2pywrappers.f" Constructing wrapper function "fdump"... fdump() Constructing COMMON block support for "impex"... outfile,molfile,specref Constructing COMMON block support for "setup"... radat,method,version,logfile Constructing COMMON block support for "imolec"... nlev,nline,ncoll,npart,ntemp,iupp,ilow Constructing COMMON block support for "rmolec"... amass,eterm,gstat,aeinst,eup Constructing COMMON block support for "cphys"... density,tkin,tbg,cdmol,deltav,totdens Constructing COMMON block support for "freq"... fmin,fmax Constructing COMMON block support for "radi"... xnu,taul,tex,backi,totalb,spfreq,trj Constructing COMMON block support for "quant"... qnum getstrlength: expected a signature of a string but got: {'typespec': 'character', 'charselector': {'*': '6'}, 'attrspec': [], 'dimension': ['2999']} Constructing COMMON block support for "collie"... crate,ctot,xpop Constructing COMMON block support for "dbg"... debug Wrote C/API module "radex" to file "/var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmps7do_v7w/src.macosx-10.9-x86_64-3.9/radexmodule.c" Fortran 77 wrappers are saved to "/var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmps7do_v7w/src.macosx-10.9-x86_64-3.9/radex-f2pywrappers.f" INFO: adding '/var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmps7do_v7w/src.macosx-10.9-x86_64-3.9/fortranobject.c' to sources. INFO: adding '/var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmps7do_v7w/src.macosx-10.9-x86_64-3.9' to include_dirs. copying /Users/csharon/opt/anaconda3/envs/RADEX_emcee/lib/python3.9/site-packages/numpy/f2py/src/fortranobject.c -> /var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmps7do_v7w/src.macosx-10.9-x86_64-3.9 copying /Users/csharon/opt/anaconda3/envs/RADEX_emcee/lib/python3.9/site-packages/numpy/f2py/src/fortranobject.h -> /var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmps7do_v7w/src.macosx-10.9-x86_64-3.9 INFO: adding '/var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmps7do_v7w/src.macosx-10.9-x86_64-3.9/radex-f2pywrappers.f' to sources. INFO: build_src: building npy-pkg config files /Users/csharon/opt/anaconda3/envs/RADEX_emcee/lib/python3.9/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn( running build_ext INFO: customize UnixCCompiler INFO: customize UnixCCompiler using build_ext INFO: customize Gnu95FCompiler INFO: Found executable /Users/csharon/opt/anaconda3/envs/RADEX_emcee/bin/x86_64-apple-darwin13.4.0-gfortran INFO: Found executable /Users/csharon/opt/anaconda3/envs/RADEX_emcee/bin/x86_64-apple-darwin13.4.0-ld INFO: Found executable /Users/csharon/opt/anaconda3/envs/RADEX_emcee/bin/x86_64-apple-darwin13.4.0-ar INFO: Found executable /Users/csharon/opt/anaconda3/envs/RADEX_emcee/bin/x86_64-apple-darwin13.4.0-ranlib INFO: customize Gnu95FCompiler using build_ext INFO: building 'radex' extension INFO: compiling C sources INFO: C compiler: x86_64-apple-darwin13.4.0-clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/csharon/opt/anaconda3/envs/RADEX_emcee/include -fPIC -O2 -isystem /Users/csharon/opt/anaconda3/envs/RADEX_emcee/include -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -isystem /Users/csharon/opt/anaconda3/envs/RADEX_emcee/include -D_FORTIFY_SOURCE=2 -isystem /Users/csharon/opt/anaconda3/envs/RADEX_emcee/include -ftrapping-math

creating /var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmps7do_v7w/var creating /var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmps7do_v7w/var/folders creating /var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmps7do_v7w/var/folders/qr creating /var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmps7do_v7w/var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp creating /var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmps7do_v7w/var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T creating /var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmps7do_v7w/var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmps7do_v7w creating /var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmps7do_v7w/var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmps7do_v7w/src.macosx-10.9-x86_64-3.9 INFO: compile options: '-DNPY_DISABLE_OPTIMIZATION=1 -I/Users/csharon/Documents/Research_Tools/radex_emcee-master/pyradex/Radex/src -I/var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmps7do_v7w/src.macosx-10.9-x86_64-3.9 -I/Users/csharon/opt/anaconda3/envs/RADEX_emcee/lib/python3.9/site-packages/numpy/core/include -I/Users/csharon/opt/anaconda3/envs/RADEX_emcee/include/python3.9 -c' INFO: x86_64-apple-darwin13.4.0-clang: /var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmps7do_v7w/src.macosx-10.9-x86_64-3.9/radexmodule.c INFO: x86_64-apple-darwin13.4.0-clang: /var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmps7do_v7w/src.macosx-10.9-x86_64-3.9/fortranobject.c /var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmps7do_v7w/src.macosx-10.9-x86_64-3.9/radexmodule.c:610:9: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation] f2py_success = int_from_pyobj(&n,n_capi,"radex.splcoeff() 3rd argument (n) can't be converted to int"); ^ /var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmps7do_v7w/src.macosx-10.9-x86_64-3.9/radexmodule.c:604:5: note: previous statement is here if (!PyArg_ParseTupleAndKeywords(capi_args,capi_keywds,\ ^ /var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmps7do_v7w/src.macosx-10.9-x86_64-3.9/radexmodule.c:770:9: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation] f2py_success = double_from_pyobj(&x,x_capi,"radex.splintrp() 4th argument (x) can't be converted to double"); ^ /var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmps7do_v7w/src.macosx-10.9-x86_64-3.9/radexmodule.c:764:5: note: previous statement is here if (!PyArg_ParseTupleAndKeywords(capi_args,capi_keywds,\ ^ /var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmps7do_v7w/src.macosx-10.9-x86_64-3.9/radexmodule.c:1102:9: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation] f2py_success = int_from_pyobj(&niter,niter_capi,"radex.output() 1st argument (niter) can't be converted to int"); ^ /var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmps7do_v7w/src.macosx-10.9-x86_64-3.9/radexmodule.c:1096:5: note: previous statement is here if (!PyArg_ParseTupleAndKeywords(capi_args,capi_keywds,\ ^ /var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmps7do_v7w/src.macosx-10.9-x86_64-3.9/radexmodule.c:1173:9: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation] f2py_success = int_from_pyobj(&niter,niter_capi,"radex.matrix() 1st argument (niter) can't be converted to int"); ^ /var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmps7do_v7w/src.macosx-10.9-x86_64-3.9/radexmodule.c:1167:5: note: previous statement is here if (!PyArg_ParseTupleAndKeywords(capi_args,capi_keywds,\ ^ /var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmps7do_v7w/src.macosx-10.9-x86_64-3.9/radexmodule.c:1251:9: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation] f2py_success = double_from_pyobj(&tau,tau_capi,"radex.escprob() 1st argument (tau) can't be converted to double"); ^ /var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmps7do_v7w/src.macosx-10.9-x86_64-3.9/radexmodule.c:1244:5: note: previous statement is here if (!PyArg_ParseTupleAndKeywords(capi_args,capi_keywds,\ ^ /var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmps7do_v7w/src.macosx-10.9-x86_64-3.9/radexmodule.c:1546:9: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation] f2py_success = int_from_pyobj(&n,n_capi,"radex.lubksb() 2nd argument (n) can't be converted to int"); ^ /var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmps7do_v7w/src.macosx-10.9-x86_64-3.9/radexmodule.c:1540:5: note: previous statement is here if (!PyArg_ParseTupleAndKeywords(capi_args,capi_keywds,\ ^ /var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmps7do_v7w/src.macosx-10.9-x86_64-3.9/radexmodule.c:1714:9: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation] f2py_success = int_from_pyobj(&itask,itask_capi,"radex.sgeir() 3rd argument (itask) can't be converted to int"); ^ /var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmps7do_v7w/src.macosx-10.9-x86_64-3.9/radexmodule.c:1708:5: note: previous statement is here if (!PyArg_ParseTupleAndKeywords(capi_args,capi_keywds,\ ^ /var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmps7do_v7w/src.macosx-10.9-x86_64-3.9/radexmodule.c:1879:9: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation] f2py_success = int_from_pyobj(&i,i_capi,"radex.r1mach() 1st argument (i) can't be converted to int"); ^ /var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmps7do_v7w/src.macosx-10.9-x86_64-3.9/radexmodule.c:1872:5: note: previous statement is here if (!PyArg_ParseTupleAndKeywords(capi_args,capi_keywds,\ ^ /var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmps7do_v7w/src.macosx-10.9-x86_64-3.9/radexmodule.c:2356:9: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation] f2py_success = int_from_pyobj(&n,n_capi,"radex.sgefa() 2nd argument (n) can't be converted to int"); ^ /var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmps7do_v7w/src.macosx-10.9-x86_64-3.9/radexmodule.c:2350:5: note: previous statement is here if (!PyArg_ParseTupleAndKeywords(capi_args,capi_keywds,\ ^ /var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmps7do_v7w/src.macosx-10.9-x86_64-3.9/radexmodule.c:2734:9: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation] f2py_success = double_from_pyobj(&sa,sa_capi,"radex.sscal() 2nd argument (sa) can't be converted to double"); ^ /var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmps7do_v7w/src.macosx-10.9-x86_64-3.9/radexmodule.c:2728:5: note: previous statement is here if (!PyArg_ParseTupleAndKeywords(capi_args,capi_keywds,\ ^ /var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmps7do_v7w/src.macosx-10.9-x86_64-3.9/radexmodule.c:2858:9: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation] f2py_success = int_from_pyobj(&n,n_capi,"radex.sgesl() 2nd argument (n) can't be converted to int"); ^ /var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmps7do_v7w/src.macosx-10.9-x86_64-3.9/radexmodule.c:2852:5: note: previous statement is here if (!PyArg_ParseTupleAndKeywords(capi_args,capi_keywds,\ ^ /var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmps7do_v7w/src.macosx-10.9-x86_64-3.9/radexmodule.c:3253:9: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation] iset = (int)PyObject_IsTrue(iset_capi); ^ /var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmps7do_v7w/src.macosx-10.9-x86_64-3.9/radexmodule.c:3247:5: note: previous statement is here if (!PyArg_ParseTupleAndKeywords(capi_args,capi_keywds,\ ^ /var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmps7do_v7w/src.macosx-10.9-x86_64-3.9/radexmodule.c:3630:9: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation] f2py_success = int_from_pyobj(&i,i_capi,"radex.i1mach() 1st argument (i) can't be converted to int"); ^ /var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmps7do_v7w/src.macosx-10.9-x86_64-3.9/radexmodule.c:3623:5: note: previous statement is here if (!PyArg_ParseTupleAndKeywords(capi_args,capi_keywds,\ ^ 13 warnings generated. INFO: compiling Fortran sources INFO: Fortran f77 compiler: /Users/csharon/opt/anaconda3/envs/RADEX_emcee/bin/x86_64-apple-darwin13.4.0-gfortran -fno-automatic -fPIC -march=core2 -mtune=haswell -ftree-vectorize -fPIC -fstack-protector -O2 -pipe -isystem /Users/csharon/opt/anaconda3/envs/RADEX_emcee/include -O3 -funroll-loops Fortran f90 compiler: /Users/csharon/opt/anaconda3/envs/RADEX_emcee/bin/x86_64-apple-darwin13.4.0-gfortran -Wall -g -fno-second-underscore -fPIC -march=core2 -mtune=haswell -ftree-vectorize -fPIC -fstack-protector -O2 -pipe -isystem /Users/csharon/opt/anaconda3/envs/RADEX_emcee/include -O3 -funroll-loops Fortran fix compiler: /Users/csharon/opt/anaconda3/envs/RADEX_emcee/bin/x86_64-apple-darwin13.4.0-gfortran -Wall -g -ffixed-form -fno-second-underscore -Wall -g -fno-second-underscore -fPIC -march=core2 -mtune=haswell -ftree-vectorize -fPIC -fstack-protector -O2 -pipe -isystem /Users/csharon/opt/anaconda3/envs/RADEX_emcee/include -O3 -funroll-loops INFO: compile options: '-I/Users/csharon/Documents/Research_Tools/radex_emcee-master/pyradex/Radex/src -I/var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmps7do_v7w/src.macosx-10.9-x86_64-3.9 -I/Users/csharon/opt/anaconda3/envs/RADEX_emcee/lib/python3.9/site-packages/numpy/core/include -I/Users/csharon/opt/anaconda3/envs/RADEX_emcee/include/python3.9 -c' INFO: x86_64-apple-darwin13.4.0-gfortran:f77: readdata.f INFO: x86_64-apple-darwin13.4.0-gfortran:f77: matrix.f INFO: x86_64-apple-darwin13.4.0-gfortran:f77: background.f INFO: x86_64-apple-darwin13.4.0-gfortran:f77: main.f INFO: x86_64-apple-darwin13.4.0-gfortran:f77: io.f INFO: x86_64-apple-darwin13.4.0-gfortran:f77: slatec.f slatec.f:824:72:

824 | IF (INCX .EQ. INCY) IF (INCX-1) 5,20,60 | 1 Warning: Fortran 2018 deleted feature: Arithmetic IF statement at (1) background.f:406:72:

406 | if (h.eq.0.d0) pause 'Warning: bad xin input in splintrp ' | 1 Warning: Deleted feature: PAUSE statement at (1) slatec.f:1204:72:

1204 | IF (INCX .EQ. INCY) IF (INCX-1) 5,20,60 | 1 Warning: Fortran 2018 deleted feature: Arithmetic IF statement at (1) slatec.f:1512:72:

1512 | IF (INCX .EQ. INCY) IF (INCX-1) 5,20,60 | 1 Warning: Fortran 2018 deleted feature: Arithmetic IF statement at (1) io.f:47:36:

47 | $ molfile = radat(1:length(radat))//molfile(1:length(molfile)) | 1 Warning: Character length of actual argument shorter than of dummy argument ‘str’ (120/200) at (1) io.f:47:62:

47 | $ molfile = radat(1:length(radat))//molfile(1:length(molfile)) | 1 Warning: Character length of actual argument shorter than of dummy argument ‘str’ (120/200) at (1) io.f:48:36:

48 | write(13,20) molfile(1:length(molfile)) | 1 Warning: Character length of actual argument shorter than of dummy argument ‘str’ (120/200) at (1) io.f:52:36:

52 | write(13,20) outfile(1:length(outfile)) | 1 Warning: Character length of actual argument shorter than of dummy argument ‘str’ (120/200) at (1) io.f:234:31:

234 | $ //version(1:length(version)) | 1 Warning: Character length of actual argument shorter than of dummy argument ‘str’ (20/200) at (1) INFO: x86_64-apple-darwin13.4.0-gfortran:f77: /var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmps7do_v7w/src.macosx-10.9-x86_64-3.9/radex-f2pywrappers.f INFO: /Users/csharon/opt/anaconda3/envs/RADEX_emcee/bin/x86_64-apple-darwin13.4.0-gfortran -Wall -g -Wall -g -undefined dynamic_lookup -bundle -Wl,-pie -Wl,-headerpad_max_install_names -Wl,-dead_strip_dylibs -Wl,-rpath,/Users/csharon/opt/anaconda3/envs/RADEX_emcee/lib -L/Users/csharon/opt/anaconda3/envs/RADEX_emcee/lib /var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmps7do_v7w/var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmps7do_v7w/src.macosx-10.9-x86_64-3.9/radexmodule.o /var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmps7do_v7w/var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmps7do_v7w/src.macosx-10.9-x86_64-3.9/fortranobject.o /var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmps7do_v7w/background.o /var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmps7do_v7w/io.o /var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmps7do_v7w/main.o /var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmps7do_v7w/matrix.o /var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmps7do_v7w/readdata.o /var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmps7do_v7w/slatec.o /var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmps7do_v7w/var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmps7do_v7w/src.macosx-10.9-x86_64-3.9/radex-f2pywrappers.o -L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -L/Users/csharon/opt/anaconda3/envs/RADEX_emcee/lib/gcc/x86_64-apple-darwin13.4.0/11.3.0 -L/Users/csharon/opt/anaconda3/envs/RADEX_emcee/lib/gcc/x86_64-apple-darwin13.4.0/11.3.0/../../.. -L/Users/csharon/opt/anaconda3/envs/RADEX_emcee/lib/gcc/x86_64-apple-darwin13.4.0/11.3.0/../../.. -lgfortran -o ./radex.cpython-39-darwin.so ld: warning: -pie being ignored. It is only used when linking a main executable Removing build directory /var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmps7do_v7w

And here is the similar terminal output for when I run the setup.py command as above (with similar omissions): /Users/csharon/opt/anaconda3/envs/RADEX_emcee/lib/python3.9/site-packages/setuptools/dist.py:547: UserWarning: Normalizing '0.4.2dev' to '0.4.2.dev0' warnings.warn(tmpl.format(locals())) Downloading RADEX Download succeeded, or at least didn't obviously fail. Extracting RADEX source from file /Users/csharon/.astropy/cache/download/url/df9a6b344f9b6851d8c799789754b74e/contents Reading fortran codes... Reading file 'main.f' (format:fix,strict) Reading file 'radex.inc' (format:fix) Line #49 in radex.inc:" parameter(hplanck = 6.6260963d-27) " get_parameters: got "eval() arg 1 must be a string, bytes or code object" on 4 Line #50 in radex.inc:" parameter(kboltz = 1.3806505d-16) " get_parameters: got "eval() arg 1 must be a string, bytes or code object" on 4 A bunch of similar things I omitted for length (but let me know if you need them)* In: :radex:/var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmp90fcf38d.f:readdata get_parameters: got "eval() arg 1 must be a string, bytes or code object" on 4 In: :radex:/var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmp90fcf38d.f:readdata get_parameters: got "eval() arg 1 must be a string, bytes or code object" on 4 Applying post-processing hooks... character_backward_compatibility_hook Post-processing (stage 2)... Building modules... Building module "radex"... Generating possibly empty wrappers" Maybe empty "radex-f2pywrappers.f" Constructing wrapper function "backrad"... backrad() Generating possibly empty wrappers" Maybe empty "radex-f2pywrappers.f" Constructing wrapper function "galbr"... galbr() Generating possibly empty wrappers" Maybe empty "radex-f2pywrappers.f" Constructing wrapper function "splcoeff"... splcoeff(x,f,n,fp1,fpn,fpp) Generating possibly empty wrappers" Maybe empty "radex-f2pywrappers.f" Constructing wrapper function "splintrp"... splintrp(xin,fin,fppin,x,fout,[n]) Generating possibly empty wrappers" Maybe empty "radex-f2pywrappers.f" Constructing wrapper function "ludcmp"... ludcmp(a,indx,d,[n,np]) Generating possibly empty wrappers" Maybe empty "radex-f2pywrappers.f" Constructing wrapper function "lubksb"... lubksb(a,n,indx,b,[np]) Generating possibly empty wrappers" Maybe empty "radex-f2pywrappers.f" Constructing wrapper function "sgeir"... getarrdims:warning: assumed shape array, using 0 instead of '' getarrdims:warning: assumed shape array, using 0 instead of '' getarrdims:warning: assumed shape array, using 0 instead of '' getarrdims:warning: assumed shape array, using 0 instead of '' sgeir(a,v,itask,ind,work,iwork,[lda,n]) Generating possibly empty wrappers" Maybe empty "radex-f2pywrappers.f" Creating wrapper for Fortran function "r1mach"("r1mach")... Constructing wrapper function "r1mach"... r1mach = r1mach(i) Generating possibly empty wrappers" Maybe empty "radex-f2pywrappers.f" Creating wrapper for Fortran function "sasum"("sasum")... Constructing wrapper function "sasum"... getarrdims:warning: assumed shape array, using 0 instead of '' sasum = sasum(n,sx,incx) Generating possibly empty wrappers" Maybe empty "radex-f2pywrappers.f" Constructing wrapper function "scopy"... getarrdims:warning: assumed shape array, using 0 instead of '' getarrdims:warning: assumed shape array, using 0 instead of '' scopy(n,sx,incx,sy,incy) Generating possibly empty wrappers" Maybe empty "radex-f2pywrappers.f" Creating wrapper for Fortran function "sdsdot"("sdsdot")... Constructing wrapper function "sdsdot"... getarrdims:warning: assumed shape array, using 0 instead of '' getarrdims:warning: assumed shape array, using 0 instead of '' sdsdot = sdsdot(n,sb,sx,incx,sy,incy) Generating possibly empty wrappers" Maybe empty "radex-f2pywrappers.f" Constructing wrapper function "sgefa"... getarrdims:warning: assumed shape array, using 0 instead of '' getarrdims:warning: assumed shape array, using 0 instead of '' sgefa(a,n,ipvt,info,[lda]) Generating possibly empty wrappers" Maybe empty "radex-f2pywrappers.f" Creating wrapper for Fortran function "isamax"("isamax")... Constructing wrapper function "isamax"... getarrdims:warning: assumed shape array, using 0 instead of '' isamax = isamax(n,sx,incx) Generating possibly empty wrappers" Maybe empty "radex-f2pywrappers.f" Constructing wrapper function "saxpy"... getarrdims:warning: assumed shape array, using 0 instead of '' getarrdims:warning: assumed shape array, using 0 instead of '' saxpy(n,sa,sx,incx,sy,incy) Generating possibly empty wrappers" Maybe empty "radex-f2pywrappers.f" Constructing wrapper function "sscal"... getarrdims:warning: assumed shape array, using 0 instead of '' sscal(n,sa,sx,incx) Generating possibly empty wrappers" Maybe empty "radex-f2pywrappers.f" Constructing wrapper function "sgesl"... getarrdims:warning: assumed shape array, using 0 instead of '' getarrdims:warning: assumed shape array, using 0 instead of '' getarrdims:warning: assumed shape array, using 0 instead of '' sgesl(a,n,ipvt,b,job,[lda]) Generating possibly empty wrappers" Maybe empty "radex-f2pywrappers.f" Creating wrapper for Fortran function "sdot"("sdot")... Constructing wrapper function "sdot"... getarrdims:warning: assumed shape array, using 0 instead of '' getarrdims:warning: assumed shape array, using 0 instead of '*' sdot = sdot(n,sx,incx,sy,incy) Generating possibly empty wrappers" Maybe empty "radex-f2pywrappers.f" Constructing wrapper function "xermsg"... xermsg(librar,subrou,messg,nerr,level) Generating possibly empty wrappers" Maybe empty "radex-f2pywrappers.f" Creating wrapper for Fortran function "j4save"("j4save")... Constructing wrapper function "j4save"... j4save = j4save(iwhich,ivalue,iset) Generating possibly empty wrappers" Maybe empty "radex-f2pywrappers.f" Constructing wrapper function "xercnt"... xercnt(librar,subrou,messg,nerr,level,kontrl) Generating possibly empty wrappers" Maybe empty "radex-f2pywrappers.f" Constructing wrapper function "xerhlt"... xerhlt(messg) Generating possibly empty wrappers" Maybe empty "radex-f2pywrappers.f" Constructing wrapper function "xerprn"... xerprn(prefix,npref,messg,nwrap) Generating possibly empty wrappers" Maybe empty "radex-f2pywrappers.f" Creating wrapper for Fortran function "i1mach"("i1mach")... Constructing wrapper function "i1mach"... i1mach = i1mach(i) Generating possibly empty wrappers" Maybe empty "radex-f2pywrappers.f" Constructing wrapper function "xgetua"... xgetua(iunita,n) Generating possibly empty wrappers" Maybe empty "radex-f2pywrappers.f" Constructing wrapper function "xersve"... xersve(librar,subrou,messg,kflag,nerr,level,icount) Generating possibly empty wrappers" Maybe empty "radex-f2pywrappers.f" Constructing wrapper function "fdump"... fdump() Generating possibly empty wrappers" Maybe empty "radex-f2pywrappers.f" Constructing wrapper function "matrix"... matrix(niter,conv) Generating possibly empty wrappers" Maybe empty "radex-f2pywrappers.f" Creating wrapper for Fortran function "escprob"("escprob")... Constructing wrapper function "escprob"... escprob = escprob(tau) Generating possibly empty wrappers" Maybe empty "radex-f2pywrappers.f" Constructing wrapper function "getinputs"... getinputs() Generating possibly empty wrappers" Maybe empty "radex-f2pywrappers.f" Constructing wrapper function "defaults"... defaults() Generating possibly empty wrappers" Maybe empty "radex-f2pywrappers.f" Creating wrapper for Fortran function "length"("length")... Constructing wrapper function "length"... length = length(str) Generating possibly empty wrappers" Maybe empty "radex-f2pywrappers.f" Constructing wrapper function "output"... output(niter) Generating possibly empty wrappers" Maybe empty "radex-f2pywrappers.f" Constructing wrapper function "readdata"... readdata() Constructing COMMON block support for "impex"... outfile,molfile,specref Constructing COMMON block support for "setup"... radat,method,version,logfile Constructing COMMON block support for "imolec"... nlev,nline,ncoll,npart,ntemp,iupp,ilow Constructing COMMON block support for "rmolec"... amass,eterm,gstat,aeinst,eup Constructing COMMON block support for "cphys"... density,tkin,tbg,cdmol,deltav,totdens Constructing COMMON block support for "freq"... fmin,fmax Constructing COMMON block support for "radi"... xnu,taul,tex,backi,totalb,spfreq,trj Constructing COMMON block support for "quant"... qnum Constructing COMMON block support for "collie"... crate,ctot,xpop Constructing COMMON block support for "dbg"... debug Wrote C/API module "radex" to file "/var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmpr8zu3c1i/src.macosx-10.9-x86_64-3.9/radexmodule.c" Fortran 77 wrappers are saved to "/var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmpr8zu3c1i/src.macosx-10.9-x86_64-3.9/radex-f2pywrappers.f" INFO: adding '/var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmpr8zu3c1i/src.macosx-10.9-x86_64-3.9/fortranobject.c' to sources. INFO: adding '/var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmpr8zu3c1i/src.macosx-10.9-x86_64-3.9' to include_dirs. copying /Users/csharon/opt/anaconda3/envs/RADEX_emcee/lib/python3.9/site-packages/numpy/f2py/src/fortranobject.c -> /var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmpr8zu3c1i/src.macosx-10.9-x86_64-3.9 copying /Users/csharon/opt/anaconda3/envs/RADEX_emcee/lib/python3.9/site-packages/numpy/f2py/src/fortranobject.h -> /var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmpr8zu3c1i/src.macosx-10.9-x86_64-3.9 INFO: adding '/var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmpr8zu3c1i/src.macosx-10.9-x86_64-3.9/radex-f2pywrappers.f' to sources. INFO: build_src: building npy-pkg config files running build_ext INFO: customize UnixCCompiler INFO: customize UnixCCompiler using build_ext INFO: customize Gnu95FCompiler INFO: Found executable /Users/csharon/opt/anaconda3/envs/RADEX_emcee/bin/x86_64-apple-darwin13.4.0-gfortran INFO: Found executable /Users/csharon/opt/anaconda3/envs/RADEX_emcee/bin/x86_64-apple-darwin13.4.0-ld INFO: Found executable /Users/csharon/opt/anaconda3/envs/RADEX_emcee/bin/x86_64-apple-darwin13.4.0-ar INFO: Found executable /Users/csharon/opt/anaconda3/envs/RADEX_emcee/bin/x86_64-apple-darwin13.4.0-ranlib INFO: customize Gnu95FCompiler using build_ext INFO: building 'radex' extension INFO: compiling C sources INFO: C compiler: x86_64-apple-darwin13.4.0-clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/csharon/opt/anaconda3/envs/RADEX_emcee/include -fPIC -O2 -isystem /Users/csharon/opt/anaconda3/envs/RADEX_emcee/include -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -O2 -D_FORTIFY_SOURCE=2 -isystem /Users/csharon/opt/anaconda3/envs/RADEX_emcee/include -ftrapping-math

creating /var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmpr8zu3c1i/var creating /var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmpr8zu3c1i/var/folders creating /var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmpr8zu3c1i/var/folders/qr creating /var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmpr8zu3c1i/var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp creating /var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmpr8zu3c1i/var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T creating /var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmpr8zu3c1i/var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmpr8zu3c1i creating /var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmpr8zu3c1i/var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmpr8zu3c1i/src.macosx-10.9-x86_64-3.9 INFO: compile options: '-DNPY_DISABLE_OPTIMIZATION=1 -I/Users/csharon/Documents/Research_Tools/radex_emcee-master/pyradex/Radex/src -I/var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmpr8zu3c1i/src.macosx-10.9-x86_64-3.9 -I/Users/csharon/opt/anaconda3/envs/RADEX_emcee/lib/python3.9/site-packages/numpy/core/include -I/Users/csharon/opt/anaconda3/envs/RADEX_emcee/include/python3.9 -c' INFO: x86_64-apple-darwin13.4.0-clang: /var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmpr8zu3c1i/src.macosx-10.9-x86_64-3.9/fortranobject.c INFO: x86_64-apple-darwin13.4.0-clang: /var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmpr8zu3c1i/src.macosx-10.9-x86_64-3.9/radexmodule.c INFO: compiling Fortran sources INFO: Fortran f77 compiler: /Users/csharon/opt/anaconda3/envs/RADEX_emcee/bin/x86_64-apple-darwin13.4.0-gfortran -fno-automatic -fPIC -arch i686 -arch x86_64 -fPIC -O3 -funroll-loops Fortran f90 compiler: /Users/csharon/opt/anaconda3/envs/RADEX_emcee/bin/x86_64-apple-darwin13.4.0-gfortran -Wall -g -fno-second-underscore -fPIC -arch i686 -arch x86_64 -fPIC -O3 -funroll-loops Fortran fix compiler: /Users/csharon/opt/anaconda3/envs/RADEX_emcee/bin/x86_64-apple-darwin13.4.0-gfortran -Wall -g -ffixed-form -fno-second-underscore -Wall -g -fno-second-underscore -fPIC -arch i686 -arch x86_64 -fPIC -O3 -funroll-loops INFO: compile options: '-I/Users/csharon/Documents/Research_Tools/radex_emcee-master/pyradex/Radex/src -I/var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmpr8zu3c1i/src.macosx-10.9-x86_64-3.9 -I/Users/csharon/opt/anaconda3/envs/RADEX_emcee/lib/python3.9/site-packages/numpy/core/include -I/Users/csharon/opt/anaconda3/envs/RADEX_emcee/include/python3.9 -c' INFO: x86_64-apple-darwin13.4.0-gfortran:f77: /var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmp90fcf38d.f INFO: x86_64-apple-darwin13.4.0-gfortran:f77: /var/folders/qr/vzl6pfxd06s3t9ytvt0nmbrw0000gp/T/tmpr8zu3c1i/src.macosx-10.9-x86_64-3.9/radex-f2pywrappers.f Installation has completed. RADEX_DATAPATH=/Users/csharon/Documents/Research_Tools/radex_emcee-master/data/moldata

keflavich commented 1 year ago

Thanks @cesharon, it's very helpful to know that this is not necessarily architecture specific. I had thought it was; I'm seeing the problem on an M1.

I wonder now if there's a problem with conda's compilers and/or our recent versions of XCode. I can't spend any more time digging now, but please continue sharing your progress & issues and I'll chime in from my end when I can figure something out.

keflavich commented 1 year ago

I think the error may be related to https://github.com/aburrell/apexpy/issues/84 and https://github.com/orgs/Homebrew/discussions/415, at least on my M1. However, since you're experiencing the same issue on different hardware, I'm not sure.

keflavich commented 1 year ago

welp, I made it worse. Now I get an instant kill -9 for no reason:

$ python -c "import pyradex"
Killed: 9

which is a few steps back from the clearer Bus Error 10 earlier

keflavich commented 1 year ago

Given the timing of this issue and #39, I bet this f2py issue is biting us: https://github.com/numpy/numpy/issues/23356 since the bus error is happening when setting strings, on this line:

self.radex.setup.radat[:] = np.bytes_([""] * len(self.radex.setup.radat))
keflavich commented 1 year ago

OK I've confirmed, the problem is with numpy=1.24. Downgrade to 1.23 and try again, it should work (probably maybe).

keflavich commented 1 year ago

Unfortunately, it looks like we still have to f2py build the files by hand. I can't get install_radex.py to build the .so file right now, even though I'm using the same command to the letter (afaict).

Antares1234 commented 1 year ago

I just found that the problem lay with RADEX_DATAPATH. It seems that the error "0-th dimension must be fixed to 120 but got ***" occurs when the path is too long. I reset RADEX_DATAPATH and it works fine now.

keflavich commented 1 year ago

OK, that makes perfect sense; that is where the error is occurring. I'll add in a better error message to handle that.

Does it work for you with numpy 1.24?

Antares1234 commented 1 year ago

I got 69914 bus error python with numpy 1.24.

cesharon commented 1 year ago

Yup, just got back to this and downgraded to numpy 1.23.5 and everything seems to be working! (Even on my non-M1 machine.)

Though just a minor heads up for the future, I got the following astropy (version 5.2.1) deprecation warning while running pyradex.Radex: WARNING: AstropyDeprecationWarning: The inputs to brightness_temperature have changed. Frequency is now the first input, and angular area is the second, optional input. [astropy.units.equivalencies]

Thanks all (especially @keflavich) for the help and support!

keflavich commented 1 year ago

Thanks. I fixed the deprecation warning in af434aa