[Bug 265041] www/flexget won't run correctly due to missing safe_str_cmp function
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 05 Jul 2022 05:22:25 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=265041 Bug ID: 265041 Summary: www/flexget won't run correctly due to missing safe_str_cmp function Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: jbeich@FreeBSD.org Reporter: edgeman@gmail.com Assignee: jbeich@FreeBSD.org Flags: maintainer-feedback?(jbeich@FreeBSD.org) Since I followed the instructions in UPDATING re: python 3.9, I've been getting this error: ImportError: cannot import name 'safe_str_cmp' from 'werkzeug.security' (/usr/local/lib/python3.9/site-packages/werkzeug/security.py) in my output of flexget. I did some Googling, it looks like werkzeug removed the "safe_str_cmp" function in 2.1.0: https://stackoverflow.com/questions/71652965/importerror-cannot-import-name-safe-str-cmp-from-werkzeug-security https://werkzeug.palletsprojects.com/en/2.1.x/changes/#version-2-1-0 "Remove the pbkdf2_hex, pbkdf2_bin, and safe_str_cmp functions. Use equivalents in hashlib and hmac modules instead." I have done a full remove and install of flexget to check... ===>>> The following actions were performed: Installation of www/py-werkzeug@py39 (py39-werkzeug-2.1.2) Installation of www/py-flask@py39 (py39-Flask-2.1.2) Installation of www/py-flask-compress@py39 (py39-Flask-Compress-1.10.1) Installation of www/py-flask-cors@py39 (py39-Flask-Cors-3.0.8) Installation of www/py-flask-login@py39 (py39-Flask-Login-0.5.0) Installation of www/py-flask-restful@py39 (py39-Flask-RESTful-0.3.9) Installation of www/py-flask-restx@py39 (py39-flask-restx-0.5.1) Installation of www/flexget (flexget-3.3.19) Looking at the full traceback, this might be an issue with flask_login, in which case feel free to move the bug report to that package...: 2022-07-05 01:20:59 CRITICAL plugin Plugin `flexget.components.tvmaze.api` failed to import dependencies Traceback (most recent call last): File "/usr/local/bin/flexget", line 33, in <module> sys.exit(load_entry_point('FlexGet==3.3.19', 'console_scripts', 'flexget')()) │ │ └ <function importlib_load_entry_point at 0x800b880d0> │ └ <built-in function exit> └ <module 'sys' (built-in)> File "/usr/local/lib/python3.9/site-packages/flexget/__init__.py", line 44, in main manager.start() │ └ <function Manager.start at 0x8047254c0> └ <flexget.manager.Manager object at 0x8047067f0> File "/usr/local/lib/python3.9/site-packages/flexget/manager.py", line 382, in start self.initialize() │ └ <function Manager.initialize at 0x804725280> └ <flexget.manager.Manager object at 0x8047067f0> File "/usr/local/lib/python3.9/site-packages/flexget/manager.py", line 224, in initialize plugin.load_plugins( │ └ <function load_plugins at 0x803fa59d0> └ <module 'flexget.plugin' from '/usr/local/lib/python3.9/site-packages/flexget/plugin.py'> File "/usr/local/lib/python3.9/site-packages/flexget/plugin.py", line 551, in load_plugins _load_components_from_dirs(extra_components) │ └ ['/home/edgeman/.flexget/components', '/usr/local/lib/python3.9/site-packages/flexget/components'] └ <function _load_components_from_dirs at 0x803fa5790> File "/usr/local/lib/python3.9/site-packages/flexget/plugin.py", line 490, in _load_components_from_dirs _import_plugin(package_name, component_path) │ │ └ PosixPath('/usr/local/lib/python3.9/site-packages/flexget/components/tvmaze/api.py') │ └ 'flexget.components.tvmaze.api' └ <function _import_plugin at 0x8040dd700> > File "/usr/local/lib/python3.9/site-packages/flexget/plugin.py", line 419, in _import_plugin import_module(module_name) │ └ 'flexget.components.tvmaze.api' └ <function import_module at 0x80146aa60> File "/usr/local/lib/python3.9/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) │ │ │ │ │ └ 0 │ │ │ │ └ None │ │ │ └ 0 │ │ └ 'flexget.components.tvmaze.api' │ └ <function _gcd_import at 0x800b46310> └ <module 'importlib._bootstrap' (frozen)> File "<frozen importlib._bootstrap>", line 1030, in _gcd_import File "<frozen importlib._bootstrap>", line 1007, in _find_and_load File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 680, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 850, in exec_module File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed File "/usr/local/lib/python3.9/site-packages/flexget/components/tvmaze/api.py", line 4, in <module> from flexget.api import APIResource, api File "/usr/local/lib/python3.9/site-packages/flexget/api/__init__.py", line 1, in <module> from .app import APIClient, APIResource, api, api_app # noqa File "/usr/local/lib/python3.9/site-packages/flexget/api/app.py", line 24, in <module> from flexget.webserver import User File "/usr/local/lib/python3.9/site-packages/flexget/webserver.py", line 10, in <module> from flask_login import UserMixin File "/usr/local/lib/python3.9/site-packages/flask_login/__init__.py", line 16, in <module> from .login_manager import LoginManager File "/usr/local/lib/python3.9/site-packages/flask_login/login_manager.py", line 24, in <module> from .utils import (login_url as make_login_url, _create_identifier, File "/usr/local/lib/python3.9/site-packages/flask_login/utils.py", line 13, in <module> from werkzeug.security import safe_str_cmp ImportError: cannot import name 'safe_str_cmp' from 'werkzeug.security' (/usr/local/lib/python3.9/site-packages/werkzeug/security.py) -- You are receiving this mail because: You are the assignee for the bug.