EmAstro / ESOAsg

A collection of useful packages used to validate data for the ESO archive.
10 stars 2 forks source link

Error Importing astro #17

Open cosmicfaiz opened 2 years ago

cosmicfaiz commented 2 years ago

ImportError Traceback (most recent call last)

in ----> 1 from ESOAsg.ancillary import astro 2 from ESOAsg import archive_catalogues 3 from astropy.coordinates import SkyCoord 4 import astropy.units as u 5 import matplotlib.pyplot as plt ~/ESOAsg/ESOAsg/ancillary/astro.py in 32 33 STARTING_MATPLOTLIB_BACKEND = matplotlib.rcParams["backend"] ---> 34 from ligo.skymap.tool.ligo_skymap_contour import main as ligo_skymap_contour 35 36 matplotlib.rcParams["backend"] = STARTING_MATPLOTLIB_BACKEND ~/anaconda3/lib/python3.7/site-packages/ligo/skymap/tool/__init__.py in 29 import numpy as np 30 ---> 31 from ..util import sqlite 32 from .. import version 33 ~/anaconda3/lib/python3.7/site-packages/ligo/skymap/util/__init__.py in 9 exec('from . import {0};' 10 '__all__ += getattr({0}, "__all__", ());' ---> 11 'from .{0} import *'.format(module)) 12 del module 13 ~/anaconda3/lib/python3.7/site-packages/ligo/skymap/util/__init__.py in ~/anaconda3/lib/python3.7/site-packages/ligo/skymap/util/ilwd.py in 19 from ligo.lw.lsctables import TableByName 20 from ligo.lw.table import Column, TableStream ---> 21 from ligo.lw.types import FormatFunc, FromPyType, IDTypes, ToPyType 22 23 __all__ = ('use_in',) ImportError: cannot import name 'IDTypes' from 'ligo.lw.types' (/to/my/home/directory/anaconda3/lib/python3.7/site-packages/ligo/lw/types.py)
EmAstro commented 2 years ago

Hi, which version of ligo.skymap are you using?

cosmicfaiz commented 2 years ago

Hey, Thanks for the quick response, I'm using ligo.skymap --version==0.5.3

packages in environment at ~/anaconda3:

#

Name Version Build Channel

ligo-skymap 0.5.3 pypi_0 pypi