flask-restful-example
flask-restful-example copied to clipboard
Bug on Step 6 of Setup
Thanks for making this! On Step 6 of setup (attempting to run celery) I ran into the following error. I am on a Mac.
(env) [REDACTED] flask-restful-example % celery worker -A celery_worker.celery --loglevel=info
Traceback (most recent call last):
File "[REDACTED]/flask-restful-example/env/lib/python3.11/site-packages/vine/five.py", line 361, in <module>
from inspect import formatargspec, getfullargspec
ImportError: cannot import name 'formatargspec' from 'inspect' (/opt/homebrew/Cellar/[email protected]/3.11.1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/inspect.py)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "[REDACTED]/flask-restful-example/env/bin/celery", line 5, in <module>
from celery.__main__ import main
File "[REDACTED]/flask-restful-example/env/lib/python3.11/site-packages/celery/__init__.py", line 153, in <module>
from . import local # noqa
^^^^^^^^^^^^^^^^^^^
File "[REDACTED]/flask-restful-example/env/lib/python3.11/site-packages/celery/local.py", line 17, in <module>
from .five import PY3, bytes_if_py2, items, string, string_t
File "[REDACTED]/flask-restful-example/env/lib/python3.11/site-packages/celery/five.py", line 7, in <module>
import vine.five
File "[REDACTED]/flask-restful-example/env/lib/python3.11/site-packages/vine/__init__.py", line 8, in <module>
from .abstract import Thenable
File "[REDACTED]/flask-restful-example/env/lib/python3.11/site-packages/vine/abstract.py", line 6, in <module>
from .five import with_metaclass, Callable
File "[REDACTED]/flask-restful-example/env/lib/python3.11/site-packages/vine/five.py", line 364, in <module>
from inspect import formatargspec, getargspec as _getargspec # noqa
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ImportError: cannot import name 'formatargspec' from 'inspect' (/opt/homebrew/Cellar/[email protected]/3.11.1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/inspect.py)