Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Invalid value for '-A' / '--app': #4

Open
ndz2011 opened this issue Mar 21, 2024 · 2 comments
Open

Error: Invalid value for '-A' / '--app': #4

ndz2011 opened this issue Mar 21, 2024 · 2 comments

Comments

@ndz2011
Copy link

ndz2011 commented Mar 21, 2024

/usr/bin/celery:22: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
from pkg_resources import load_entry_point

Could not download 'pyannote/segmentation' model.
It might be because the model is private or gated so make
sure to authenticate. Visit https://hf.co/settings/tokens to
create your access token and retry with:

Model.from_pretrained('pyannote/segmentation',
... use_auth_token=YOUR_AUTH_TOKEN)

If this still does not work, it might be because the model is gated:
visit https://hf.co/pyannote/segmentation to accept the user conditions.
Usage: celery [OPTIONS] COMMAND [ARGS]...
Try 'celery --help' for help.

Error: Invalid value for '-A' / '--app':

@ahmetgunduz
Copy link
Member

have you set env variables here: https://github.com/aixplain/tts-qa/blob/main/secrets.env.example

You need to convert this file and rename it as secrets.env and put the necessary api tokens. For pyannote huggingface'token is needed

@ndz2011
Copy link
Author

ndz2011 commented Mar 22, 2024

Hi, thanks for your reply. I added huggingface token and now get an new error. My celery version is 5.3.6:

Error: Invalid value for '-A' / '--app':
Unable to load celery application.
While trying to load the module src.service.tasks the following error occurred:
Traceback (most recent call last):
File "/home/ndz2011/anaconda3/envs/aixplain/lib/python3.10/site-packages/celery/app/utils.py", line 383, in find_app
sym = symbol_by_name(app, imp=imp)
File "/home/ndz2011/anaconda3/envs/aixplain/lib/python3.10/site-packages/kombu/utils/imports.py", line 64, in symbol_by_name
return getattr(module, cls_name) if cls_name else module
AttributeError: module 'src.service' has no attribute 'tasks'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants