Comments (14)
I'm afraid not.
Thanks! I'll look deeper into it.
from namaster.
@DanielLenz I think this is a Mac specific issue. For some reason it is not finding one of the libraries. Does it work if you do export PATH=$PATH:/Users/dlenz/software/NaMaster/.libs
?
Please, let us know of the outcome so we can add instructions to the README
.
from namaster.
Does it work if you do export PATH=$PATH:/Users/dlenz/software/NaMaster/.libs?
I'm afraid not.
from namaster.
@DanielLenz What compiler (and version) did you use to compile this? And was it the same that you used to install libsharp and any other libraries?
from namaster.
Also, could you check if the problem gets fixed if you do:
export LD_LIBRARY_PATH=/path/to/where/the/libsharp/libraries/are:$LD_LIBRARY_PATH
?
from namaster.
Thank for helping me to debug this!
What compiler (and version) did you use to compile this?
NaMaster [master●] which gcc
gcc: aliased to /usr/local/bin/gcc-7
NaMaster [master●] gcc --version
gcc-7 (Homebrew GCC 7.2.0) 7.2.0
And was it the same that you used to install libsharp and any other libraries?
Good point, I might have used clang or gcc-6 to do that. I can fetch the latest libshard and fftw3 and fix that.
Is there a possibility to include these dependencies in NaMaster, as it is done e.g. in healpy (which includes e.g. healpix, cfitsio, and libsharp)?
Ironically, there are similar issues with the latest version, related to using different compilers: healpy/healpy#455
Also, could you check if the problem gets fixed if you do:
export LD_LIBRARY_PATH=/path/to/where/the/libsharp/libraries/are:$LD_LIBRARY_PATH
I'm afraid that didn't work.
from namaster.
@DanielLenz I did a little bit of digging and it turns out that the c_utils
library from libsharp
wasn't being linked to libnmt.dylib
(when linking libnmt.dylib
for some reason the flags -lfftpack -lc_utils
are missing). One solution consists on doing export LDFLAGS="-lfftpack -lc_utils"
before running ./configure
. Please, let me know if this works for you :)
from namaster.
@damonge has just prepared a fix with which you don't even need to export these flags. Please, check it out at the dylib_fix
branch.
from namaster.
Please let us know if it works, and we'll merge it
from namaster.
Awesome, thanks for fixing this so rapidly!
One little issue popped up, everything else passed:
TEST 43/53 nmt:bins_flat_binning [FAIL]
ERR: test/nmt_test_bins_flat.c:72 expected 0.000e+00, got 2.557e-04 (diff -2.557e-04, tol 1.000e-10)
Now looking into the python wrapper...
from namaster.
Installing python didn't raise any issues, all the unittests I ran with python -m unittest -v
passed as well. Thanks again!
from namaster.
Yeah, @fjaviersanchez mentioned that one. It's weird, because travis doesn't pick it up, and all tests have passed for me in the past. I think it may be a compiler-specific floating point thing related to the issue that caused the first problem to begin with. It's even wierder because python is supposed to be running the same test.
I'll have a quick look, but I wouldn't worry.
Many kudos to @fjaviersanchez for figuring this one out!
from namaster.
Tagging @anicola and @NicolettaK , since they had this problem too
from namaster.
Thank you very much @fjaviersanchez and @damonge! Now everything works for me as well. As Daniel, I also run into a one little issue:
TEST 41/53 nmt:bins_flat_binning [FAIL]
ERR: test/nmt_test_bins_flat.c:72 expected 0.000e+00, got 2.652e+00 (diff -2.652e+00, tol 1.000e-10)
Apart from that, everything works like a charm! Thanks again!
from namaster.
Related Issues (20)
- nan's with map read from fits file HOT 2
- random seed in synfast_flat
- I am not seeing a real improvement in performance, but it might be my own compiler being a bit outdated. Still worth merging, since libsharp2 is the one being maintained, but will open an issue to investigate further.
- configure fails to find cfitsio HOT 7
- Missing version number in pymaster
- Help installing NaMaster on M2 macOS HOT 17
- cannot find _nmtbin module HOT 4
- Error when setting lmax < 3 * nside - 1 in compute_full_master HOT 2
- Missing different lmax for mask and coupling coefficients for covariances HOT 1
- f_ell does not seem to do anything in NmtBin HOT 1
- Conda installation fails if conda installs gsl=2.7.1 instead of gsl=2.7
- Inconsistency in results between MacOS and Ubuntu HOT 13
- Make exception message more informative
- Weird power in compute_coupled_cell HOT 3
- pymaster installation problem HOT 3
- Pseudo-cl's in the covariance computation - pixel window function HOT 3
- Floating point errors with full sky CAR pixellization HOT 1
- NaMaster installation CFITSIO issue
- Apodisation window functions HOT 3
- Noise bias for flat sky HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from namaster.