Import paths wrong? No module named 'handlers'
See original GitHub issueI am no Python expert, so perhaps this is a pretty simple config misstake, but I can not start mopidy.
Describe the bug Files can not be found:
pi@phoniebox:~ $ mopidy
INFO 2020-01-01 14:39:32,031 [3337:MainThread] mopidy.__main__
Starting Mopidy 3.0.1
ERROR 2020-01-01 14:39:32,259 [3337:MainThread] mopidy.ext
Failed to load extension iris: No module named 'handlers'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/mopidy/ext.py", line 209, in load_extensions
extension_class = entry_point.resolve()
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2417, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/usr/local/lib/python3.7/dist-packages/mopidy_iris/__init__.py", line 7, in <module>
import handlers
ModuleNotFoundError: No module named 'handlers'
Environment details:
- OS: Raspbian Buster
- Iris version Mopidy_Iris-3.43.0 installed via pip
- Mopidy installed from apt-repo.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:20 (8 by maintainers)
Top Results From Across the Web
ModuleNotFoundError: No module named 'handler'
I have the following declaration on my main.py import model import handler import ...
Read more >ModuleNotFoundError: no module named Python Error [Fixed]
How to fix the ModuleNotFoundError in Python · 1. Make sure imported modules are installed · 2. Make sure modules are spelled correctly...
Read more >How to Fix ModuleNotFoundError and ImportError
I believe most Python programmes are quite familiar with ModuleNotFoundError import aModuleNotFoundError: No module named 'a'.
Read more >2021 How to Fix "No Module Named..." Error in Python
2021 How to Fix ImportError " No Module Named pkg_name" in Python! First, download the package using a terminal outside of python.
Read more >Resolve "Unable to import module" errors from Python ... - AWS
To resolve this error, create a deployment package or Lambda layer that includes the libraries that you want to use in your Python...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@s-martin this is because Mopidy doesn’t provide backwards compatibility, but mostly I simply don’t have the time resource to single-handedly manage Python 2.7/3.7 dual support.
To answer your question, you’ll need to use Iris < 34.0 until Python 3.7 is supported.
@m4rc77 and @Squelsh Iris
3.44
is out in the wild now.