Skip to content

ALeRCE _SN_Starter.ipynb notebook problem with importing astro-delight #9

@torna4o

Description

@torna4o

Greetings,

I installed everything without a problem but both in my Windows 10 Python 3.10 environment in desktop, and Python 3.10 distribution in Google Colab, importing delight.delight gives something like this:


ModuleNotFoundError Traceback (most recent call last)
in <cell line: 1>()
----> 1 from delight.delight import *

1 frames
/usr/local/lib/python3.10/dist-packages/delight/delight/init.py in
----> 1 from .delight import *

/usr/local/lib/python3.10/dist-packages/delight/delight/delight.py in
22 from astropy.io import fits
23
---> 24 from mpl_toolkits.axes_grid.inset_locator import inset_axes
25 from matplotlib import cm
26

ModuleNotFoundError: No module named 'mpl_toolkits.axes_grid'


I moved on mpl_toolkits library folder getting help from the following 2 lines:

import importlib importlib.import_module('mpl_toolkits').__path__

Then I changed the folder name axes_grid1 in that folder to axes_grid.
Everything looks like perfect now. However, I wanted to inform you about this, as my workaround might actually disrupt something unseen right now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions