Deep-Live-Cam icon indicating copy to clipboard operation
Deep-Live-Cam copied to clipboard

Always get trackback error. whenever i try to run.py

Open Mrviktur opened this issue 1 year ago • 7 comments

  • File "C:\Deep-Live-Cam-Improved-main\run.py", line 3, in from modules import core File "C:\Deep-Live-Cam-Improved-main\modules\core.py", line 20, in import modules.ui as ui File "C:\Deep-Live-Cam-Improved-main\modules\ui.py", line 6, in from PIL import Image, ImageOps File "C:\Deep-Live-Cam-Improved-main\venv\lib\site-packages\PIL\Image.py", line 100, in from . import _imaging as core ImportError: cannot import name 'imaging' from 'PIL' (C:\Deep-Live-Cam-Improved-main\venv\lib\site-packages\PIL_init.py)

Mrviktur avatar Oct 06 '24 01:10 Mrviktur

pip install Pillow

hacksider avatar Oct 06 '24 04:10 hacksider

pip install Pillow

(venv) C:\Deep-Live-Cam-Improved-main>pip install pillow Requirement already satisfied: pillow in c:\users\dell\downloads\deep-live-cam-improved-main\deep-live-cam-improved-main\venv\lib\site-packages (9.5.0)

(venv) C:\Deep-Live-Cam-Improved-main>python run.py Traceback (most recent call last): File "C:\Deep-Live-Cam-Improved-main\run.py", line 3, in from modules import core File "C:\Deep-Live-Cam-Improved-main\modules\core.py", line 20, in import modules.ui as ui File "C:\Deep-Live-Cam-Improved-main\modules\ui.py", line 6, in from PIL import Image, ImageOps File "C:\Deep-Live-Cam-Improved-main\venv\lib\site-packages\PIL\Image.py", line 100, in from . import _imaging as core ImportError: cannot import name 'imaging' from 'PIL' (C:\Deep-Live-Cam-Improved-main\venv\lib\site-packages\PIL_init.py)

Mrviktur avatar Oct 06 '24 11:10 Mrviktur

in venv - python -m pip install pillow

or in venv - python -m pip install --force-reinstall pillow

KRSHH avatar Oct 06 '24 12:10 KRSHH

in venv - python -m pip install pillow

or in venv - python -m pip install --force-reinstall pillow

(venv) C:\Deep-Live-Cam-Improved-main>python run.py

A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.2 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.

If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2.

Traceback (most recent call last): File "C:\Deep-Live-Cam-Improved-main\run.py", line 3, in from modules import core File "C:\Deep-Live-Cam-Improved-main\modules\core.py", line 16, in import tensorflow File "C:\Deep-Live-Cam-Improved-main\venv\lib\site-packages\tensorflow_init_.py", line 47, in from tensorflow.api.v2 import internal File "C:\Deep-Live-Cam-Improved-main\venv\lib\site-packages\tensorflow_api\v2_internal_init_.py", line 8, in from tensorflow.api.v2.internal import autograph File "C:\Deep-Live-Cam-Improved-main\venv\lib\site-packages\tensorflow_api\v2_internal\autograph_init_.py", line 8, in from tensorflow.python.autograph.core.ag_ctx import control_status_ctx # line: 34 File "C:\Deep-Live-Cam-Improved-main\venv\lib\site-packages\tensorflow\python\autograph\core\ag_ctx.py", line 21, in from tensorflow.python.autograph.utils import ag_logging File "C:\Deep-Live-Cam-Improved-main\venv\lib\site-packages\tensorflow\python\autograph\utils_init_.py", line 17, in from tensorflow.python.autograph.utils.context_managers import control_dependency_on_returns File "C:\Deep-Live-Cam-Improved-main\venv\lib\site-packages\tensorflow\python\autograph\utils\context_managers.py", line 19, in from tensorflow.python.framework import ops File "C:\Deep-Live-Cam-Improved-main\venv\lib\site-packages\tensorflow\python\framework\ops.py", line 46, in from tensorflow.python import pywrap_tfe File "C:\Deep-Live-Cam-Improved-main\venv\lib\site-packages\tensorflow\python\pywrap_tfe.py", line 25, in from tensorflow.python._pywrap_tfe import * AttributeError: _ARRAY_API not found

A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.2 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.

If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2.

Traceback (most recent call last): File "C:\Deep-Live-Cam-Improved-main\run.py", line 3, in from modules import core File "C:\Deep-Live-Cam-Improved-main\modules\core.py", line 16, in import tensorflow File "C:\Deep-Live-Cam-Improved-main\venv\lib\site-packages\tensorflow_init_.py", line 47, in from tensorflow.api.v2 import internal File "C:\Deep-Live-Cam-Improved-main\venv\lib\site-packages\tensorflow_api\v2_internal_init_.py", line 8, in from tensorflow.api.v2.internal import autograph File "C:\Deep-Live-Cam-Improved-main\venv\lib\site-packages\tensorflow_api\v2_internal\autograph_init_.py", line 8, in from tensorflow.python.autograph.core.ag_ctx import control_status_ctx # line: 34 File "C:\Deep-Live-Cam-Improved-main\venv\lib\site-packages\tensorflow\python\autograph\core\ag_ctx.py", line 21, in from tensorflow.python.autograph.utils import ag_logging File "C:\Deep-Live-Cam-Improved-main\venv\lib\site-packages\tensorflow\python\autograph\utils_init_.py", line 17, in from tensorflow.python.autograph.utils.context_managers import control_dependency_on_returns File "C:\Deep-Live-Cam-Improved-main\venv\lib\site-packages\tensorflow\python\autograph\utils\context_managers.py", line 19, in from tensorflow.python.framework import ops File "C:\Deep-Live-Cam-Improved-main\venv\lib\site-packages\tensorflow\python\framework\ops.py", line 49, in from tensorflow.python.client import pywrap_tf_session File "C:\Deep-Live-Cam-Improved-main\venv\lib\site-packages\tensorflow\python\client\pywrap_tf_session.py", line 19, in from tensorflow.python.client._pywrap_tf_session import * AttributeError: _ARRAY_API not found

A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.2 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.

If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2.

Traceback (most recent call last): File "C:\Deep-Live-Cam-Improved-main\run.py", line 3, in from modules import core File "C:\Deep-Live-Cam-Improved-main\modules\core.py", line 16, in import tensorflow File "C:\Deep-Live-Cam-Improved-main\venv\lib\site-packages\tensorflow_init_.py", line 47, in from tensorflow.api.v2 import internal File "C:\Deep-Live-Cam-Improved-main\venv\lib\site-packages\tensorflow_api\v2_internal_init_.py", line 11, in from tensorflow.api.v2.internal import distribute File "C:\Deep-Live-Cam-Improved-main\venv\lib\site-packages\tensorflow_api\v2_internal\distribute_init_.py", line 8, in from tensorflow.api.v2.internal.distribute import combinations File "C:\Deep-Live-Cam-Improved-main\venv\lib\site-packages\tensorflow_api\v2_internal\distribute\combinations_init_.py", line 8, in from tensorflow.python.distribute.combinations import env # line: 456 File "C:\Deep-Live-Cam-Improved-main\venv\lib\site-packages\tensorflow\python\distribute\combinations.py", line 33, in from tensorflow.python.distribute import collective_all_reduce_strategy File "C:\Deep-Live-Cam-Improved-main\venv\lib\site-packages\tensorflow\python\distribute\collective_all_reduce_strategy.py", line 25, in from tensorflow.python.distribute import cross_device_ops as cross_device_ops_lib File "C:\Deep-Live-Cam-Improved-main\venv\lib\site-packages\tensorflow\python\distribute\cross_device_ops.py", line 28, in from tensorflow.python.distribute import cross_device_utils File "C:\Deep-Live-Cam-Improved-main\venv\lib\site-packages\tensorflow\python\distribute\cross_device_utils.py", line 22, in from tensorflow.python.distribute import values as value_lib File "C:\Deep-Live-Cam-Improved-main\venv\lib\site-packages\tensorflow\python\distribute\values.py", line 23, in from tensorflow.python.distribute import distribute_lib File "C:\Deep-Live-Cam-Improved-main\venv\lib\site-packages\tensorflow\python\distribute\distribute_lib.py", line 205, in from tensorflow.python.data.ops import dataset_ops File "C:\Deep-Live-Cam-Improved-main\venv\lib\site-packages\tensorflow\python\data_init_.py", line 21, in from tensorflow.python.data import experimental File "C:\Deep-Live-Cam-Improved-main\venv\lib\site-packages\tensorflow\python\data\experimental_init_.py", line 98, in from tensorflow.python.data.experimental import service File "C:\Deep-Live-Cam-Improved-main\venv\lib\site-packages\tensorflow\python\data\experimental\service_init_.py", line 419, in from tensorflow.python.data.experimental.ops.data_service_ops import distribute File "C:\Deep-Live-Cam-Improved-main\venv\lib\site-packages\tensorflow\python\data\experimental\ops\data_service_ops.py", line 26, in from tensorflow.python.data.ops import dataset_ops File "C:\Deep-Live-Cam-Improved-main\venv\lib\site-packages\tensorflow\python\data\ops\dataset_ops.py", line 34, in from tensorflow.python.data.ops import iterator_ops File "C:\Deep-Live-Cam-Improved-main\venv\lib\site-packages\tensorflow\python\data\ops\iterator_ops.py", line 45, in from tensorflow.python.training.saver import BaseSaverBuilder File "C:\Deep-Live-Cam-Improved-main\venv\lib\site-packages\tensorflow\python\training\saver.py", line 50, in from tensorflow.python.training import py_checkpoint_reader File "C:\Deep-Live-Cam-Improved-main\venv\lib\site-packages\tensorflow\python\training\py_checkpoint_reader.py", line 19, in from tensorflow.python.util.pywrap_checkpoint_reader import CheckpointReader AttributeError: ARRAY_API not found Traceback (most recent call last): File "C:\Deep-Live-Cam-Improved-main\run.py", line 3, in from modules import core File "C:\Deep-Live-Cam-Improved-main\modules\core.py", line 16, in import tensorflow File "C:\Deep-Live-Cam-Improved-main\venv\lib\site-packages\tensorflow_init.py", line 47, in from tensorflow.api.v2 import internal File "C:\Deep-Live-Cam-Improved-main\venv\lib\site-packages\tensorflow_api\v2_internal_init.py", line 11, in from tensorflow.api.v2.internal import distribute File "C:\Deep-Live-Cam-Improved-main\venv\lib\site-packages\tensorflow_api\v2_internal\distribute_init_.py", line 8, in from tensorflow.api.v2.internal.distribute import combinations File "C:\Deep-Live-Cam-Improved-main\venv\lib\site-packages\tensorflow_api\v2_internal\distribute\combinations_init_.py", line 8, in from tensorflow.python.distribute.combinations import env # line: 456 File "C:\Deep-Live-Cam-Improved-main\venv\lib\site-packages\tensorflow\python\distribute\combinations.py", line 33, in from tensorflow.python.distribute import collective_all_reduce_strategy File "C:\Deep-Live-Cam-Improved-main\venv\lib\site-packages\tensorflow\python\distribute\collective_all_reduce_strategy.py", line 25, in from tensorflow.python.distribute import cross_device_ops as cross_device_ops_lib File "C:\Deep-Live-Cam-Improved-main\venv\lib\site-packages\tensorflow\python\distribute\cross_device_ops.py", line 28, in from tensorflow.python.distribute import cross_device_utils File "C:\Deep-Live-Cam-Improved-main\venv\lib\site-packages\tensorflow\python\distribute\cross_device_utils.py", line 22, in from tensorflow.python.distribute import values as value_lib File "C:\Deep-Live-Cam-Improved-main\venv\lib\site-packages\tensorflow\python\distribute\values.py", line 23, in from tensorflow.python.distribute import distribute_lib File "C:\Deep-Live-Cam-Improved-main\venv\lib\site-packages\tensorflow\python\distribute\distribute_lib.py", line 205, in from tensorflow.python.data.ops import dataset_ops File "C:\Deep-Live-Cam-Improved-main\venv\lib\site-packages\tensorflow\python\data_init_.py", line 21, in from tensorflow.python.data import experimental File "C:\Deep-Live-Cam-Improved-main\venv\lib\site-packages\tensorflow\python\data\experimental_init_.py", line 98, in from tensorflow.python.data.experimental import service File "C:\Deep-Live-Cam-Improved-main\venv\lib\site-packages\tensorflow\python\data\experimental\service_init_.py", line 419, in from tensorflow.python.data.experimental.ops.data_service_ops import distribute File "C:\Deep-Live-Cam-Improved-main\venv\lib\site-packages\tensorflow\python\data\experimental\ops\data_service_ops.py", line 26, in from tensorflow.python.data.ops import dataset_ops File "C:\Deep-Live-Cam-Improved-main\venv\lib\site-packages\tensorflow\python\data\ops\dataset_ops.py", line 34, in from tensorflow.python.data.ops import iterator_ops File "C:\Deep-Live-Cam-Improved-main\venv\lib\site-packages\tensorflow\python\data\ops\iterator_ops.py", line 45, in from tensorflow.python.training.saver import BaseSaverBuilder File "C:\Deep-Live-Cam-Improved-main\venv\lib\site-packages\tensorflow\python\training\saver.py", line 50, in from tensorflow.python.training import py_checkpoint_reader File "C:\Deep-Live-Cam-Improved-main\venv\lib\site-packages\tensorflow\python\training\py_checkpoint_reader.py", line 19, in from tensorflow.python.util._pywrap_checkpoint_reader import CheckpointReader SystemError: initialization of _pywrap_checkpoint_reader raised unreported exception

Mrviktur avatar Oct 07 '24 09:10 Mrviktur

A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.2 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.

You need to install the correct numpy version. I suggest going through the install process again to make sure everything is installed correctly.

AVGRadmin avatar Oct 09 '24 07:10 AVGRadmin

I recommend you 1stly uninstall the python, restar the computer , then go over the process again. It's important you create a V environment. .

I also recommend minicond 3.10

If you need further assistance, here's my whatsapp https://wa.me/message/GXQYWX4XRTXGB1 +2347081306010

Updatedme avatar Oct 10 '24 22:10 Updatedme

I recommend you 1stly uninstall the python, restar the computer , then go over the process again. It's important you create a V environment. .

I also recommend minicond 3.10

If you need further assistance, here's my whatsapp https://wa.me/message/GXQYWX4XRTXGB1 +2347081306010

Updatedme avatar Oct 10 '24 22:10 Updatedme