1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
nohup: ignoring input
CUDA is available. However, you may want to ensure you are using the CPU.
-------------- celery@g4090-5 v5.4.0 (opalescent)
--- ***** -----
-- ******* ---- Linux-6.8.0-51-generic-x86_64-with-glibc2.39 2025-01-16 05:46:40
- *** --- * ---
- ** ---------- [config]
- ** ---------- .> app: tasks:0x7f67c30f0910
- ** ---------- .> transport: redis://localhost:6379/0
- ** ---------- .> results: disabled://
- *** --- * --- .> concurrency: 32 (prefork)
-- ******* ---- .> task events: OFF (enable -E to monitor tasks in this worker)
--- ***** -----
-------------- [queues]
.> celery exchange=celery(direct) key=celery
[tasks]
. tasks.generate_audio_and_send_email
[2025-01-16 05:46:44,591: WARNING/MainProcess] /home/edward/OpenVoice/env/lib/python3.10/site-packages/celery/worker/consumer/consumer.py:508: CPendingDeprecationWarning: The broker_connection_retry configuration setting will no longer determine
whether broker connection retries are made during startup in Celery 6.0 and above.
If you wish to retain the existing behavior for retrying connections on startup,
you should set broker_connection_retry_on_startup to True.
warnings.warn(
[2025-01-16 05:46:44,594: INFO/MainProcess] Connected to redis://localhost:6379/0
[2025-01-16 05:46:44,594: WARNING/MainProcess] /home/edward/OpenVoice/env/lib/python3.10/site-packages/celery/worker/consumer/consumer.py:508: CPendingDeprecationWarning: The broker_connection_retry configuration setting will no longer determine
whether broker connection retries are made during startup in Celery 6.0 and above.
If you wish to retain the existing behavior for retrying connections on startup,
you should set broker_connection_retry_on_startup to True.
warnings.warn(
[2025-01-16 05:46:44,594: INFO/MainProcess] mingle: searching for neighbors
[2025-01-16 05:46:45,598: INFO/MainProcess] mingle: all alone
[2025-01-16 05:46:45,602: INFO/MainProcess] celery@g4090-5 ready.
[2025-01-16 05:46:49,235: INFO/MainProcess] Task tasks.generate_audio_and_send_email[ce38139c-d8a3-43fd-8efd-adb0d35a8957] received
[2025-01-16 05:46:49,248: WARNING/ForkPoolWorker-28] /home/edward/OpenVoice/env/lib/python3.10/site-packages/torch/nn/utils/weight_norm.py:143: FutureWarning: `torch.nn.utils.weight_norm` is deprecated in favor of `torch.nn.utils.parametrizations.weight_norm`.
WeightNorm.apply(module, name, dim)
[2025-01-16 05:46:49,473: ERROR/ForkPoolWorker-28] Task tasks.generate_audio_and_send_email[ce38139c-d8a3-43fd-8efd-adb0d35a8957] raised unexpected: RuntimeError("Cannot re-initialize CUDA in forked subprocess. To use CUDA with multiprocessing, you must use the 'spawn' start method")
Traceback (most recent call last):
File "/home/edward/OpenVoice/env/lib/python3.10/site-packages/celery/app/trace.py", line 453, in trace_task
R = retval = fun(*args, **kwargs)
File "/home/edward/OpenVoice/env/lib/python3.10/site-packages/celery/app/trace.py", line 736, in __protected_call__
return self.run(*args, **kwargs)
File "/home/edward/OpenVoice/tasks.py", line 60, in generate_audio_and_send_email
open_voice_gen = OpenVoiceGen()
File "/home/edward/OpenVoice/openVoiceGen.py", line 26, in __init__
self.base_speaker_tts = BaseSpeakerTTS(f'{self.ckpt_base}/config.json', device="cuda")
File "/home/edward/OpenVoice/openvoice/api.py", line 28, in __init__
).to(device)
File "/home/edward/OpenVoice/env/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1340, in to
return self._apply(convert)
File "/home/edward/OpenVoice/env/lib/python3.10/site-packages/torch/nn/modules/module.py", line 900, in _apply
module._apply(fn)
File "/home/edward/OpenVoice/env/lib/python3.10/site-packages/torch/nn/modules/module.py", line 900, in _apply
module._apply(fn)
File "/home/edward/OpenVoice/env/lib/python3.10/site-packages/torch/nn/modules/module.py", line 927, in _apply
param_applied = fn(param)
File "/home/edward/OpenVoice/env/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1326, in convert
return t.to(
File "/home/edward/OpenVoice/env/lib/python3.10/site-packages/torch/cuda/__init__.py", line 305, in _lazy_init
raise RuntimeError(
RuntimeError: Cannot re-initialize CUDA in forked subprocess. To use CUDA with multiprocessing, you must use the 'spawn' start method
Restarting celery worker (/home/edward/OpenVoice/env/bin/celery -A tasks worker --loglevel=info)
CUDA is available. However, you may want to ensure you are using the CPU.
-------------- celery@g4090-5 v5.4.0 (opalescent)
--- ***** -----
-- ******* ---- Linux-6.8.0-51-generic-x86_64-with-glibc2.39 2025-01-16 05:53:43
- *** --- * ---
- ** ---------- [config]
- ** ---------- .> app: tasks:0x7411c10ccb80
- ** ---------- .> transport: redis://localhost:6379/0
- ** ---------- .> results: disabled://
- *** --- * --- .> concurrency: 32 (prefork)
-- ******* ---- .> task events: OFF (enable -E to monitor tasks in this worker)
--- ***** -----
-------------- [queues]
.> celery exchange=celery(direct) key=celery
[tasks]
. tasks.generate_audio_and_send_email
[2025-01-16 05:53:47,569: WARNING/MainProcess] /home/edward/OpenVoice/env/lib/python3.10/site-packages/celery/worker/consumer/consumer.py:508: CPendingDeprecationWarning: The broker_connection_retry configuration setting will no longer determine
whether broker connection retries are made during startup in Celery 6.0 and above.
If you wish to retain the existing behavior for retrying connections on startup,
you should set broker_connection_retry_on_startup to True.
warnings.warn(
[2025-01-16 05:53:47,572: INFO/MainProcess] Connected to redis://localhost:6379/0
[2025-01-16 05:53:47,573: WARNING/MainProcess] /home/edward/OpenVoice/env/lib/python3.10/site-packages/celery/worker/consumer/consumer.py:508: CPendingDeprecationWarning: The broker_connection_retry configuration setting will no longer determine
whether broker connection retries are made during startup in Celery 6.0 and above.
If you wish to retain the existing behavior for retrying connections on startup,
you should set broker_connection_retry_on_startup to True.
warnings.warn(
[2025-01-16 05:53:47,574: INFO/MainProcess] mingle: searching for neighbors
[2025-01-16 05:53:48,577: INFO/MainProcess] mingle: all alone
[2025-01-16 05:53:48,581: INFO/MainProcess] celery@g4090-5 ready.
Restarting celery worker (/home/edward/OpenVoice/env/bin/celery -A tasks worker --loglevel=info)
worker: Warm shutdown (MainProcess)
Usage: celery [OPTIONS] COMMAND [ARGS]...
Try 'celery --help' for help.
Error: Invalid value for '-A' / '--app':
Unable to load celery application.
Module 'tasks' has no attribute 'celery'