question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ModuleNotFoundError: No module named 'astropy.extern'

See original GitHub issue

My code has suddenly stopped working. The above error is produced in response to import astropy. Could this be due to an update or something?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
chris-revellcommented, Sep 5, 2019

For what it’s worth, I seem to have fixed this now by uninstalling and reinstalling astropy through pip. Somehow the extern directory within that installation had disappeared. However, this was not the installation I thought I was calling, which suggests I need to be more careful with my environment.

1reaction
MSeifert04commented, Sep 4, 2019

Hm, usr/local/lib doesn’t look like a conda-installation, are you sure you installed astropy via conda?

But the astropy version and/or channel (pip or conda) could be helpful.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No module named 'astropy.extern.six' · Issue #348 - GitHub
ModuleNotFoundError : No module named 'astropy.extern.six'. I checked astropy version with : python3 -c "import astropy; print(astropy.
Read more >
No module named astropy found when trying to import
I suspect it happens because you have installed updates for macOS Catalina, which changes the location of some files from the root.
Read more >
importerror no module named astropy visualization
A deep dive into the ImportError and ModuleNotFoundError in Python, with code samples showing how to deal with failed imports in Python 2.7...
Read more >
Installation — Astropy v5.2
PermissionError this means that you do not have the required administrative access to install new packages to your Python installation. In this case...
Read more >
ModuleNotFoundError: No module named 'astropy'
Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'astropy' How to remove the ModuleNotF.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found