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.

ImportError in Python 3.6 importlib

See original GitHub issue

I see this in Python 3.6 test suites. Is this safe to ignore or should be fixed somehow? Should we move this to astropy-helpers? I am not sure where this is coming from.

home/travis/miniconda/envs/test/lib/python3.6/importlib/_bootstrap.py:205:
ImportWarning: can't resolve package from __spec__ or __package__,
falling back on __name__ and __path__

  return f(*args, **kwds)

p.s. Instead of decreasing the number of issues, I am increasing it. Sorry, @bsipocz !

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:27 (25 by maintainers)

github_iconTop GitHub Comments

3reactions
pllimcommented, Nov 30, 2017

I think this is still an issue until it is fixed upstream, so keeping this open for now.

2reactions
saimncommented, Jul 8, 2021

Sorry I thought it was pllim above 😁 Yes I guess this could happen, but the cython releases is old enough now that we should be safe.

Read more comments on GitHub >

github_iconTop Results From Across the Web

importlib — The implementation of import — Python 3.11.1 ...
An optional method to return a true value if the module is a package, a false value otherwise. ImportError is raised if the...
Read more >
[Fixed] ModuleNotFoundError: No module named 'importlib ...
Quick Fix: Python raises the ImportError: No module named 'importlib-resources' when it cannot find the library importlib-resources .
Read more >
What is importlib.util in python3? - Stack Overflow
I am trying to pip install importlib with python 3.6, but I get an Import Error saying: 'NO Module named "importlib.util"'.
Read more >
Traps for the Unwary in Python's Import System
If we explicitly add the second project to PYTHONPATH , we find that Python 3.3+ can't ... line 1, in <module> ImportError: No...
Read more >
ImportError: No module named importlib metadata - YouTube
Python Virtual Environment Error - ImportError : No module named importlib_metadata AssertionError: importlib -metadata=0.12; python_version ...
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