Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
torna4o opened this issue Jul 21, 2023 · 0 comments
Open

Comments

@torna4o
Copy link

torna4o commented Jul 21, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant