You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running beet web in python 3.6.6 virtual environment leads to ModuleNotFoundError when CORS is enabled due to import on line 386 of beetsplug/web/init.py:
fromflask.ext.corsimportCORS
It works if I change this line to:
fromflask_corsimportCORS
Led to this problem:
(venv) user@host~/beets> beet -vv web
user configuration: /home/user/.config/beets/config.yaml
data directory: /home/user/.config/beets
plugin paths:
Sending event: pluginload
library database: /home/user/.config/beets/musiclibrary.db
library directory: /video/music_library/beets
Sending event: library_opened
web: Enabling CORS with origin: <hostname>
Traceback (most recent call last):
File "/home/user/beets/venv/bin/beet", line 11, in<module>
load_entry_point('beets==1.4.7', 'console_scripts', 'beet')()
File "/home/user/beets/venv/lib/python3.6/site-packages/beets/ui/__init__.py", line 1256, in main
_raw_main(args)
File "/home/user/beets/venv/lib/python3.6/site-packages/beets/ui/__init__.py", line 1243, in _raw_main
subcommand.func(lib, suboptions, subargs)
File "/home/user/beets/venv/lib/python3.6/site-packages/beetsplug/web/__init__.py", line 386, in func
from flask.ext.cors import CORS
ModuleNotFoundError: No module named 'flask.ext'
Setup
OS: Ubuntu 16.04
Python version: 3.6.6 virtual environment
beets version: 1.4.7
Turning off plugins made problem go away (yes/no): no
Problem
Running beet web in python 3.6.6 virtual environment leads to ModuleNotFoundError when CORS is enabled due to import on line 386 of beetsplug/web/init.py:
It works if I change this line to:
Led to this problem:
Setup
My configuration (output of
beet config
) is:The text was updated successfully, but these errors were encountered: