Comments (7)
Hi @ferrigno! For the installation from git, did you simply clone the repository, or did you also install it (pip install .
or python setup.py install
)? The ligo.skymap.core
module is a Python C extension that only gets generated when you install. Did you follow the instructions in the manual for installing from source?
As for the segmentation fault on import, that's new to me, so I need a bit more information about your system to diagnose the issue. Would you please provide the following information:
- Your CPU architecture (if not amd64/x86_64)
- Your operating system and version
- The kind of Python distribution you are using (OS distribution, anaconda, or other)
- The version of pip (output of
pip --version
) - The version of numpy (output of
python -c 'import numpy; print(numpy.__version__)'
)
from ligo.skymap.
Hi
I did not see the page you link before trying the installation and I used a simple
python setup.py install
Now I see that I would need to install the intel base-kit and I have not 14Gb on my laptop to do it.
For the binary, these are the infos. Note that on Ubuntu 20.04, the package works smoothly.
uname -a
Linux 4.15.0-128-generic #131-Ubuntu SMP Wed Dec 9 06:57:35 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
It is Ubuntu 18.04
I am using a virtualenv in which packages are installed with pip. I can send you my list of packages, if needed.
pip --version
pip 20.3.3 from /home/ferrigno/Soft/myVE-py37/lib/python3.7/site-packages/pip (python 3.7)
python -c 'import numpy; print(numpy.version)'
1.19.4
from ligo.skymap.
Now I see that I would need to install the intel base-kit and I have not 14Gb on my laptop to do it.
No, you don't need the Intel oneAPI base kit. It will build just fine with the gcc compiler that comes with your Ubuntu distribution. The GW localization code runs a bit faster if it is built with Intel's compiler, but unless you are actually generating GW localizations, that won't matter.
from ligo.skymap.
Same error following your compilation instructions (without INTEL) on ubuntu 18.04
I used ligo.skymap for what I needed, with Ubuntu 20.04, see
https://github.com/ferrigno/Theseus-FoV-Projection
I adapted your make_rect_poly from https://github.com/lpsinger/ligo.skymap/blob/master/ligo/skymap/plot/poly.py
because for some large angles, it output NaN.
from ligo.skymap.
Same error following your compilation instructions (without INTEL) on ubuntu 18.04
Which error is that? The "double free or corruption" error, or the ModuleNotFound exception? Would you please attach the text of your full terminal session, including retrieving the source, installing, and importing?
I adapted your make_rect_poly from https://github.com/lpsinger/ligo.skymap/blob/master/ligo/skymap/plot/poly.py
because for some large angles, it output NaN.
If you have an example to reproduce the NaN, please share as an issue report. If you have a patch to fix it, even better!
from ligo.skymap.
Compiling from source, the error is ModuleNotFoundError: No module named 'ligo.skymap.core'
The error in making the rectangular plot can be reproduced as:
ligo.skymap.plot.make_rect_poly(117./2, 68.0/2, 0, 0, subdivisions=1)
array([[nan, nan],
[nan, nan],
[nan, nan],
[nan, nan]])
but I have not found a patch, I realize that I have used a smaller angle at the end. There must be something tricky with spherical angles, but I have not managed to find it.
from ligo.skymap.
Compiling from source, the error is ModuleNotFoundError: No module named 'ligo.skymap.core'
I'm not able to reproduce this over here, so I need a bit more detail. Please try to do a fresh installation, and send:
- The output of
env
. - The full text of your shell session, including the commands that you used to retrieve the source code, the build and install commands, and the command to start your Python interpreter and attempt to import the module.
The error in making the rectangular plot can be reproduced as:
ligo.skymap.plot.make_rect_poly(117./2, 68.0/2, 0, 0, subdivisions=1)
array([[nan, nan],
[nan, nan],
[nan, nan],
[nan, nan]])but I have not found a patch, I realize that I have used a smaller angle at the end. There must be something tricky with spherical angles, but I have not managed to find it.
I see the problem now, and it should be easy to fix. I described it in GitLab, here: https://git.ligo.org/lscsoft/ligo.skymap/-/issues/23
from ligo.skymap.
Related Issues (20)
- Check if position within countour? HOT 3
- Unable to import HOT 30
- sky map kde as stand alone utility HOT 10
- Example? HOT 3
- Example in allsky.py give error "TypeError: unhashable type: 'SkyCoord'" HOT 3
- Spelling Mistake in Documentation HOT 1
- Error while importing io from ligo.skymap HOT 2
- Vulnerable shared libraries might make ligo.skymap vulnerable. Can you help upgrade to patch versions? HOT 1
- ERROR: Failed building wheel for numpy HOT 3
- center argument for all projects HOT 1
- Wheel error during ligo.skymap installation HOT 1
- Issue importing ligo.skymap HOT 10
- Inconsistent tuple lengths in find_ellipse HOT 2
- Issue with running the Script for ligo_skymap_plot_volume.py HOT 5
- Issue with running the Script for ligo_skymap_contour_moc.py HOT 7
- `ligo.skymap.moc.rasterize` fails with `S230529ay_rev4_Bilby.multiorder` HOT 1
- Issue with Coordinate Transform in Inset HOT 3
- Different wheel error when installing ligo.skymap. HOT 5
- pip subprocess to install build dependencies did not run successfully HOT 2
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 ligo.skymap.