chychkan / DeepFaceLab_MacOS

Run DeepFaceLab on MacOS
GNU General Public License v3.0
246 stars 53 forks source link

Can't run successfully on M1 macbook air #105

Open void-512 opened 1 year ago

void-512 commented 1 year ago

user@WTYs-MBA ~ % /Users/user/Downloads/DeepFaceLab_MacOS-0.1.1/scripts/0_setup.sh Cloning DeepFaceLab Cloning into '.dfl/DeepFaceLab'... fatal: unable to access 'https://hub.fastgit.org/iperov/DeepFaceLab.git/': error:02FFF036:system library:func(4095):Connection reset by peer Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Collecting numpy==1.17.0 Using cached https://pypi.tuna.tsinghua.edu.cn/packages/da/32/1b8f2bb5fb50e4db68543eb85ce37b9fa6660cd05b58bddfafafa7ed62da/numpy-1.17.0.zip (6.5 MB) Preparing metadata (setup.py) ... done Collecting opencv-python==4.3.0.38 Using cached https://pypi.tuna.tsinghua.edu.cn/packages/a1/d6/8422797e35f8814b1d9842530566a949d9b5850a466321a6c1d5a99055ee/opencv-python-4.3.0.38.tar.gz (88.0 MB) Installing build dependencies ... error error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> [585 lines of output] Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Ignoring numpy: markers 'python_version == "3.5"' don't match your environment Ignoring numpy: markers 'python_version == "3.6"' don't match your environment Ignoring numpy: markers 'python_version == "3.7"' don't match your environment Collecting setuptools Using cached https://pypi.tuna.tsinghua.edu.cn/packages/d9/5f/2daccd14278b6b780ae6799f85998377c06019354982391245f4b58a927d/setuptools-65.3.0-py3-none-any.whl (1.2 MB) Collecting wheel Using cached https://pypi.tuna.tsinghua.edu.cn/packages/27/d6/003e593296a85fd6ed616ed962795b2f87709c3eee2bca4f6d0fe55c6d00/wheel-0.37.1-py2.py3-none-any.whl (35 kB) Collecting scikit-build Using cached https://pypi.tuna.tsinghua.edu.cn/packages/e3/36/34551e5035757ba17582eb530402a16612ec0446f67f3c7d509f6e9d8e63/scikit_build-0.15.0-py2.py3-none-any.whl (77 kB) Collecting cmake Using cached https://pypi.tuna.tsinghua.edu.cn/packages/a0/c6/10c60a31c072c5f6b2de7795ad86f894844804ac2fce355a898d29f5aee0/cmake-3.24.1-py2.py3-none-macosx_10_10_universal2.macosx_10_10_x86_64.macosx_11_0_arm64.macosx_11_0_universal2.whl (77.9 MB) Collecting pip Using cached https://pypi.tuna.tsinghua.edu.cn/packages/1f/2c/d9626f045e7b49a6225c6b09257861f24da78f4e5f23af2ddbdf852c99b8/pip-22.2.2-py3-none-any.whl (2.0 MB) Collecting numpy==1.17.3 Using cached https://pypi.tuna.tsinghua.edu.cn/packages/b6/d6/be8f975f5322336f62371c9abeb936d592c98c047ad63035f1b38ae08efe/numpy-1.17.3.zip (6.4 MB) Preparing metadata (setup.py): started Preparing metadata (setup.py): finished with status 'done' Collecting distro Using cached https://pypi.tuna.tsinghua.edu.cn/packages/e1/54/d08d1ad53788515392bec14d2d6e8c410bffdc127780a9a4aa8e6854d502/distro-1.7.0-py3-none-any.whl (20 kB) Collecting packaging Using cached https://pypi.tuna.tsinghua.edu.cn/packages/05/8e/8de486cbd03baba4deef4142bd643a3e7bbe954a784dc1bb17142572d127/packaging-21.3-py3-none-any.whl (40 kB) Collecting pyparsing!=3.0.5,>=2.0.2 Using cached https://pypi.tuna.tsinghua.edu.cn/packages/6c/10/a7d0fa5baea8fe7b50f448ab742f26f52b80bfca85ac2be9d35cdd9a3246/pyparsing-3.0.9-py3-none-any.whl (98 kB) Building wheels for collected packages: numpy Building wheel for numpy (setup.py): started Building wheel for numpy (setup.py): finished with status 'error' error: subprocess-exited-with-error

    × python setup.py bdist_wheel did not run successfully.
    │ exit code: 1
    ╰─> [248 lines of output]
        Running from numpy source directory.
        blas_opt_info:
        blas_mkl_info:
        customize UnixCCompiler
          libraries mkl_rt not found in ['/Users/user/Downloads/DeepFaceLab_MacOS-0.1.1/.dfl/env/lib', '/usr/local/lib', '/usr/lib']
          NOT AVAILABLE

        blis_info:
        customize UnixCCompiler
          libraries blis not found in ['/Users/user/Downloads/DeepFaceLab_MacOS-0.1.1/.dfl/env/lib', '/usr/local/lib', '/usr/lib']
          NOT AVAILABLE

        openblas_info:
        customize UnixCCompiler
        customize UnixCCompiler
          libraries openblas not found in ['/Users/user/Downloads/DeepFaceLab_MacOS-0.1.1/.dfl/env/lib', '/usr/local/lib', '/usr/lib']
          NOT AVAILABLE

        atlas_3_10_blas_threads_info:
        Setting PTATLAS=ATLAS
        customize UnixCCompiler
          libraries tatlas not found in ['/Users/user/Downloads/DeepFaceLab_MacOS-0.1.1/.dfl/env/lib', '/usr/local/lib', '/usr/lib']
          NOT AVAILABLE

        atlas_3_10_blas_info:
        customize UnixCCompiler
          libraries satlas not found in ['/Users/user/Downloads/DeepFaceLab_MacOS-0.1.1/.dfl/env/lib', '/usr/local/lib', '/usr/lib']
          NOT AVAILABLE

        atlas_blas_threads_info:
        Setting PTATLAS=ATLAS
        customize UnixCCompiler
          libraries ptf77blas,ptcblas,atlas not found in ['/Users/user/Downloads/DeepFaceLab_MacOS-0.1.1/.dfl/env/lib', '/usr/local/lib', '/usr/lib']
          NOT AVAILABLE

        atlas_blas_info:
        customize UnixCCompiler
          libraries f77blas,cblas,atlas not found in ['/Users/user/Downloads/DeepFaceLab_MacOS-0.1.1/.dfl/env/lib', '/usr/local/lib', '/usr/lib']
          NOT AVAILABLE

        accelerate_info:
        customize UnixCCompiler
          libraries accelerate not found in ['/Users/user/Downloads/DeepFaceLab_MacOS-0.1.1/.dfl/env/lib', '/usr/local/lib', '/usr/lib']
        Library accelerate was not found. Ignoring
        customize UnixCCompiler
          libraries veclib not found in ['/Users/user/Downloads/DeepFaceLab_MacOS-0.1.1/.dfl/env/lib', '/usr/local/lib', '/usr/lib']
        Library veclib was not found. Ignoring
          FOUND:
            extra_compile_args = ['-faltivec', '-I/System/Library/Frameworks/vecLib.framework/Headers']
            extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
            define_macros = [('NO_ATLAS_INFO', 3), ('HAVE_CBLAS', None)]

          FOUND:
            extra_compile_args = ['-faltivec', '-I/System/Library/Frameworks/vecLib.framework/Headers']
            extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
            define_macros = [('NO_ATLAS_INFO', 3), ('HAVE_CBLAS', None)]

        /bin/sh: svnversion: command not found
        non-existing path in 'numpy/distutils': 'site.cfg'
        lapack_opt_info:
        lapack_mkl_info:
        customize UnixCCompiler
          libraries mkl_rt not found in ['/Users/user/Downloads/DeepFaceLab_MacOS-0.1.1/.dfl/env/lib', '/usr/local/lib', '/usr/lib']
          NOT AVAILABLE

        openblas_lapack_info:
        customize UnixCCompiler
        customize UnixCCompiler
          libraries openblas not found in ['/Users/user/Downloads/DeepFaceLab_MacOS-0.1.1/.dfl/env/lib', '/usr/local/lib', '/usr/lib']
          NOT AVAILABLE

        openblas_clapack_info:
        customize UnixCCompiler
        customize UnixCCompiler
          libraries openblas,lapack not found in ['/Users/user/Downloads/DeepFaceLab_MacOS-0.1.1/.dfl/env/lib', '/usr/local/lib', '/usr/lib']
          NOT AVAILABLE

        flame_info:
        customize UnixCCompiler
          libraries flame not found in ['/Users/user/Downloads/DeepFaceLab_MacOS-0.1.1/.dfl/env/lib', '/usr/local/lib', '/usr/lib']
          NOT AVAILABLE

        atlas_3_10_threads_info:
        Setting PTATLAS=ATLAS
        customize UnixCCompiler
          libraries lapack_atlas not found in /Users/user/Downloads/DeepFaceLab_MacOS-0.1.1/.dfl/env/lib
        customize UnixCCompiler
          libraries tatlas,tatlas not found in /Users/user/Downloads/DeepFaceLab_MacOS-0.1.1/.dfl/env/lib
        customize UnixCCompiler
          libraries lapack_atlas not found in /usr/local/lib
        customize UnixCCompiler
          libraries tatlas,tatlas not found in /usr/local/lib
        customize UnixCCompiler
          libraries lapack_atlas not found in /usr/lib
        customize UnixCCompiler
          libraries tatlas,tatlas not found in /usr/lib
        <class 'numpy.distutils.system_info.atlas_3_10_threads_info'>
          NOT AVAILABLE

        atlas_3_10_info:
        customize UnixCCompiler
          libraries lapack_atlas not found in /Users/user/Downloads/DeepFaceLab_MacOS-0.1.1/.dfl/env/lib
        customize UnixCCompiler
          libraries satlas,satlas not found in /Users/user/Downloads/DeepFaceLab_MacOS-0.1.1/.dfl/env/lib
        customize UnixCCompiler
          libraries lapack_atlas not found in /usr/local/lib
        customize UnixCCompiler
          libraries satlas,satlas not found in /usr/local/lib
        customize UnixCCompiler
          libraries lapack_atlas not found in /usr/lib
        customize UnixCCompiler
          libraries satlas,satlas not found in /usr/lib
        <class 'numpy.distutils.system_info.atlas_3_10_info'>
          NOT AVAILABLE

        atlas_threads_info:
        Setting PTATLAS=ATLAS
        customize UnixCCompiler
          libraries lapack_atlas not found in /Users/user/Downloads/DeepFaceLab_MacOS-0.1.1/.dfl/env/lib
        customize UnixCCompiler
          libraries ptf77blas,ptcblas,atlas not found in /Users/user/Downloads/DeepFaceLab_MacOS-0.1.1/.dfl/env/lib
        customize UnixCCompiler
          libraries lapack_atlas not found in /usr/local/lib
        customize UnixCCompiler
          libraries ptf77blas,ptcblas,atlas not found in /usr/local/lib
        customize UnixCCompiler
          libraries lapack_atlas not found in /usr/lib
        customize UnixCCompiler
          libraries ptf77blas,ptcblas,atlas not found in /usr/lib
        <class 'numpy.distutils.system_info.atlas_threads_info'>
          NOT AVAILABLE

        atlas_info:
        customize UnixCCompiler
          libraries lapack_atlas not found in /Users/user/Downloads/DeepFaceLab_MacOS-0.1.1/.dfl/env/lib
        customize UnixCCompiler
          libraries f77blas,cblas,atlas not found in /Users/user/Downloads/DeepFaceLab_MacOS-0.1.1/.dfl/env/lib
        customize UnixCCompiler
          libraries lapack_atlas not found in /usr/local/lib
        customize UnixCCompiler
          libraries f77blas,cblas,atlas not found in /usr/local/lib
        customize UnixCCompiler
          libraries lapack_atlas not found in /usr/lib
        customize UnixCCompiler
          libraries f77blas,cblas,atlas not found in /usr/lib
        <class 'numpy.distutils.system_info.atlas_info'>
          NOT AVAILABLE

          FOUND:
            extra_compile_args = ['-faltivec', '-I/System/Library/Frameworks/vecLib.framework/Headers']
            extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
            define_macros = [('NO_ATLAS_INFO', 3), ('HAVE_CBLAS', None)]

        /Users/user/Downloads/DeepFaceLab_MacOS-0.1.1/.dfl/env/lib/python3.10/site-packages/setuptools/_distutils/dist.py:257: UserWarning: Unknown distribution option: 'define_macros'
          warnings.warn(msg)
        running bdist_wheel
        running build
        running config_cc
        unifing config_cc, config, build_clib, build_ext, build commands --compiler options
        running config_fc
        unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
        running build_src
        build_src
        building py_modules sources
        creating build
        creating build/src.macosx-12-arm64-3.1
        creating build/src.macosx-12-arm64-3.1/numpy
        creating build/src.macosx-12-arm64-3.1/numpy/distutils
        building library "npymath" sources
        get_default_fcompiler: matching types: '['gnu95', 'nag', 'absoft', 'ibm', 'intel', 'gnu', 'g95', 'pg']'
        customize Gnu95FCompiler
        Found executable /opt/homebrew/bin/gfortran
        Traceback (most recent call last):
          File "<string>", line 2, in <module>
          File "<pip-setuptools-caller>", line 34, in <module>
          File "/private/var/folders/bn/49s5b9f13q59tlcgn_81kg1r0000gn/T/pip-install-8etwdbqh/numpy_2a428b76e0ad42308e65ccbe0fc763cc/setup.py", line 443, in <module>
            setup_package()
          File "/private/var/folders/bn/49s5b9f13q59tlcgn_81kg1r0000gn/T/pip-install-8etwdbqh/numpy_2a428b76e0ad42308e65ccbe0fc763cc/setup.py", line 435, in setup_package
            setup(**metadata)
          File "/private/var/folders/bn/49s5b9f13q59tlcgn_81kg1r0000gn/T/pip-install-8etwdbqh/numpy_2a428b76e0ad42308e65ccbe0fc763cc/numpy/distutils/core.py", line 171, in setup
            return old_setup(**new_attr)
          File "/Users/user/Downloads/DeepFaceLab_MacOS-0.1.1/.dfl/env/lib/python3.10/site-packages/setuptools/__init__.py", line 87, in setup
            return distutils.core.setup(**attrs)
          File "/Users/user/Downloads/DeepFaceLab_MacOS-0.1.1/.dfl/env/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 177, in setup
            return run_commands(dist)
          File "/Users/user/Downloads/DeepFaceLab_MacOS-0.1.1/.dfl/env/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 193, in run_commands
            dist.run_commands()
          File "/Users/user/Downloads/DeepFaceLab_MacOS-0.1.1/.dfl/env/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 968, in run_commands
            self.run_command(cmd)
          File "/Users/user/Downloads/DeepFaceLab_MacOS-0.1.1/.dfl/env/lib/python3.10/site-packages/setuptools/dist.py", line 1217, in run_command
            super().run_command(command)
          File "/Users/user/Downloads/DeepFaceLab_MacOS-0.1.1/.dfl/env/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
            cmd_obj.run()
          File "/Users/user/Downloads/DeepFaceLab_MacOS-0.1.1/.dfl/env/lib/python3.10/site-packages/wheel/bdist_wheel.py", line 299, in run
            self.run_command('build')
          File "/Users/user/Downloads/DeepFaceLab_MacOS-0.1.1/.dfl/env/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 317, in run_command
            self.distribution.run_command(command)
          File "/Users/user/Downloads/DeepFaceLab_MacOS-0.1.1/.dfl/env/lib/python3.10/site-packages/setuptools/dist.py", line 1217, in run_command
            super().run_command(command)
          File "/Users/user/Downloads/DeepFaceLab_MacOS-0.1.1/.dfl/env/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
            cmd_obj.run()
          File "/private/var/folders/bn/49s5b9f13q59tlcgn_81kg1r0000gn/T/pip-install-8etwdbqh/numpy_2a428b76e0ad42308e65ccbe0fc763cc/numpy/distutils/command/build.py", line 47, in run
            old_build.run(self)
          File "/Users/user/Downloads/DeepFaceLab_MacOS-0.1.1/.dfl/env/lib/python3.10/site-packages/setuptools/_distutils/command/build.py", line 131, in run
            self.run_command(cmd_name)
          File "/Users/user/Downloads/DeepFaceLab_MacOS-0.1.1/.dfl/env/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 317, in run_command
            self.distribution.run_command(command)
          File "/Users/user/Downloads/DeepFaceLab_MacOS-0.1.1/.dfl/env/lib/python3.10/site-packages/setuptools/dist.py", line 1217, in run_command
            super().run_command(command)
          File "/Users/user/Downloads/DeepFaceLab_MacOS-0.1.1/.dfl/env/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
            cmd_obj.run()
          File "/private/var/folders/bn/49s5b9f13q59tlcgn_81kg1r0000gn/T/pip-install-8etwdbqh/numpy_2a428b76e0ad42308e65ccbe0fc763cc/numpy/distutils/command/build_src.py", line 142, in run
            self.build_sources()
          File "/private/var/folders/bn/49s5b9f13q59tlcgn_81kg1r0000gn/T/pip-install-8etwdbqh/numpy_2a428b76e0ad42308e65ccbe0fc763cc/numpy/distutils/command/build_src.py", line 153, in build_sources
            self.build_library_sources(*libname_info)
          File "/private/var/folders/bn/49s5b9f13q59tlcgn_81kg1r0000gn/T/pip-install-8etwdbqh/numpy_2a428b76e0ad42308e65ccbe0fc763cc/numpy/distutils/command/build_src.py", line 286, in build_library_sources
            sources = self.generate_sources(sources, (lib_name, build_info))
          File "/private/var/folders/bn/49s5b9f13q59tlcgn_81kg1r0000gn/T/pip-install-8etwdbqh/numpy_2a428b76e0ad42308e65ccbe0fc763cc/numpy/distutils/command/build_src.py", line 369, in generate_sources
            source = func(extension, build_dir)
          File "numpy/core/setup.py", line 667, in get_mathlib_info
            st = config_cmd.try_link('int main(void) { return 0;}')
          File "/Users/user/Downloads/DeepFaceLab_MacOS-0.1.1/.dfl/env/lib/python3.10/site-packages/setuptools/_distutils/command/config.py", line 247, in try_link
            self._check_compiler()
          File "/private/var/folders/bn/49s5b9f13q59tlcgn_81kg1r0000gn/T/pip-install-8etwdbqh/numpy_2a428b76e0ad42308e65ccbe0fc763cc/numpy/distutils/command/config.py", line 82, in _check_compiler
            self.fcompiler = new_fcompiler(compiler=self.fcompiler,
          File "/private/var/folders/bn/49s5b9f13q59tlcgn_81kg1r0000gn/T/pip-install-8etwdbqh/numpy_2a428b76e0ad42308e65ccbe0fc763cc/numpy/distutils/fcompiler/__init__.py", line 884, in new_fcompiler
            compiler = get_default_fcompiler(plat, requiref90=requiref90,
          File "/private/var/folders/bn/49s5b9f13q59tlcgn_81kg1r0000gn/T/pip-install-8etwdbqh/numpy_2a428b76e0ad42308e65ccbe0fc763cc/numpy/distutils/fcompiler/__init__.py", line 855, in get_default_fcompiler
            compiler_type =  _find_existing_fcompiler(matching_compiler_types,
          File "/private/var/folders/bn/49s5b9f13q59tlcgn_81kg1r0000gn/T/pip-install-8etwdbqh/numpy_2a428b76e0ad42308e65ccbe0fc763cc/numpy/distutils/fcompiler/__init__.py", line 806, in _find_existing_fcompiler
            c.customize(dist)
          File "/private/var/folders/bn/49s5b9f13q59tlcgn_81kg1r0000gn/T/pip-install-8etwdbqh/numpy_2a428b76e0ad42308e65ccbe0fc763cc/numpy/distutils/fcompiler/__init__.py", line 530, in customize
            linker_so_flags = self.flag_vars.linker_so
          File "/private/var/folders/bn/49s5b9f13q59tlcgn_81kg1r0000gn/T/pip-install-8etwdbqh/numpy_2a428b76e0ad42308e65ccbe0fc763cc/numpy/distutils/fcompiler/environment.py", line 40, in __getattr__
            return self._get_var(name, conf_desc)
          File "/private/var/folders/bn/49s5b9f13q59tlcgn_81kg1r0000gn/T/pip-install-8etwdbqh/numpy_2a428b76e0ad42308e65ccbe0fc763cc/numpy/distutils/fcompiler/environment.py", line 56, in _get_var
            var = self._hook_handler(name, hook)
          File "/private/var/folders/bn/49s5b9f13q59tlcgn_81kg1r0000gn/T/pip-install-8etwdbqh/numpy_2a428b76e0ad42308e65ccbe0fc763cc/numpy/distutils/fcompiler/__init__.py", line 709, in _environment_hook
            return hook()
          File "/private/var/folders/bn/49s5b9f13q59tlcgn_81kg1r0000gn/T/pip-install-8etwdbqh/numpy_2a428b76e0ad42308e65ccbe0fc763cc/numpy/distutils/fcompiler/gnu.py", line 353, in get_flags_linker_so
            flags = GnuFCompiler.get_flags_linker_so(self)
          File "/private/var/folders/bn/49s5b9f13q59tlcgn_81kg1r0000gn/T/pip-install-8etwdbqh/numpy_2a428b76e0ad42308e65ccbe0fc763cc/numpy/distutils/fcompiler/gnu.py", line 144, in get_flags_linker_so
            os.environ['MACOSX_DEPLOYMENT_TARGET'] = target
          File "/opt/homebrew/Cellar/python@3.10/3.10.6_1/Frameworks/Python.framework/Versions/3.10/lib/python3.10/os.py", line 684, in __setitem__
            value = self.encodevalue(value)
          File "/opt/homebrew/Cellar/python@3.10/3.10.6_1/Frameworks/Python.framework/Versions/3.10/lib/python3.10/os.py", line 756, in encode
            raise TypeError("str expected, not %s" % type(value).__name__)
        TypeError: str expected, not int
        [end of output]

    note: This error originates from a subprocess, and is likely not a problem with pip.
    ERROR: Failed building wheel for numpy
    Running setup.py clean for numpy
    error: subprocess-exited-with-error

    × python setup.py clean did not run successfully.
    │ exit code: 1
    ╰─> [10 lines of output]
        Running from numpy source directory.

        `setup.py clean` is not supported, use one of the following instead:

          - `git clean -xdf` (cleans all files)
          - `git clean -Xdf` (cleans all versioned files, doesn't touch
                              files that aren't checked into the git repo)

        Add `--force` to your command to use it anyway if you must (unsupported).

        [end of output]

    note: This error originates from a subprocess, and is likely not a problem with pip.
    ERROR: Failed cleaning build dir for numpy
  Failed to build numpy
  Installing collected packages: cmake, wheel, setuptools, pyparsing, pip, numpy, distro, packaging, scikit-build
    Running setup.py install for numpy: started
    Running setup.py install for numpy: finished with status 'error'
    error: subprocess-exited-with-error

    × Running setup.py install for numpy did not run successfully.
    │ exit code: 1
    ╰─> [259 lines of output]
        Running from numpy source directory.

        Note: if you need reliable uninstall behavior, then install
        with pip instead of using `setup.py install`:

          - `pip install .`       (from a git repo or downloaded source
                                   release)
          - `pip install numpy`   (last NumPy release on PyPi)

        blas_opt_info:
        blas_mkl_info:
        customize UnixCCompiler
          libraries mkl_rt not found in ['/Users/user/Downloads/DeepFaceLab_MacOS-0.1.1/.dfl/env/lib', '/usr/local/lib', '/usr/lib']
          NOT AVAILABLE

        blis_info:
        customize UnixCCompiler
          libraries blis not found in ['/Users/user/Downloads/DeepFaceLab_MacOS-0.1.1/.dfl/env/lib', '/usr/local/lib', '/usr/lib']
          NOT AVAILABLE

        openblas_info:
        customize UnixCCompiler
        customize UnixCCompiler
          libraries openblas not found in ['/Users/user/Downloads/DeepFaceLab_MacOS-0.1.1/.dfl/env/lib', '/usr/local/lib', '/usr/lib']
          NOT AVAILABLE

        atlas_3_10_blas_threads_info:
        Setting PTATLAS=ATLAS
        customize UnixCCompiler
          libraries tatlas not found in ['/Users/user/Downloads/DeepFaceLab_MacOS-0.1.1/.dfl/env/lib', '/usr/local/lib', '/usr/lib']
          NOT AVAILABLE

        atlas_3_10_blas_info:
        customize UnixCCompiler
          libraries satlas not found in ['/Users/user/Downloads/DeepFaceLab_MacOS-0.1.1/.dfl/env/lib', '/usr/local/lib', '/usr/lib']
          NOT AVAILABLE

        atlas_blas_threads_info:
        Setting PTATLAS=ATLAS
        customize UnixCCompiler
          libraries ptf77blas,ptcblas,atlas not found in ['/Users/user/Downloads/DeepFaceLab_MacOS-0.1.1/.dfl/env/lib', '/usr/local/lib', '/usr/lib']
          NOT AVAILABLE

        atlas_blas_info:
        customize UnixCCompiler
          libraries f77blas,cblas,atlas not found in ['/Users/user/Downloads/DeepFaceLab_MacOS-0.1.1/.dfl/env/lib', '/usr/local/lib', '/usr/lib']
          NOT AVAILABLE

        accelerate_info:
        customize UnixCCompiler
          libraries accelerate not found in ['/Users/user/Downloads/DeepFaceLab_MacOS-0.1.1/.dfl/env/lib', '/usr/local/lib', '/usr/lib']
        Library accelerate was not found. Ignoring
        customize UnixCCompiler
          libraries veclib not found in ['/Users/user/Downloads/DeepFaceLab_MacOS-0.1.1/.dfl/env/lib', '/usr/local/lib', '/usr/lib']
        Library veclib was not found. Ignoring
          FOUND:
            extra_compile_args = ['-faltivec', '-I/System/Library/Frameworks/vecLib.framework/Headers']
            extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
            define_macros = [('NO_ATLAS_INFO', 3), ('HAVE_CBLAS', None)]

          FOUND:
            extra_compile_args = ['-faltivec', '-I/System/Library/Frameworks/vecLib.framework/Headers']
            extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
            define_macros = [('NO_ATLAS_INFO', 3), ('HAVE_CBLAS', None)]

        /bin/sh: svnversion: command not found
        non-existing path in 'numpy/distutils': 'site.cfg'
        lapack_opt_info:
        lapack_mkl_info:
        customize UnixCCompiler
          libraries mkl_rt not found in ['/Users/user/Downloads/DeepFaceLab_MacOS-0.1.1/.dfl/env/lib', '/usr/local/lib', '/usr/lib']
          NOT AVAILABLE

        openblas_lapack_info:
        customize UnixCCompiler
        customize UnixCCompiler
          libraries openblas not found in ['/Users/user/Downloads/DeepFaceLab_MacOS-0.1.1/.dfl/env/lib', '/usr/local/lib', '/usr/lib']
          NOT AVAILABLE

        openblas_clapack_info:
        customize UnixCCompiler
        customize UnixCCompiler
          libraries openblas,lapack not found in ['/Users/user/Downloads/DeepFaceLab_MacOS-0.1.1/.dfl/env/lib', '/usr/local/lib', '/usr/lib']
          NOT AVAILABLE

        flame_info:
        customize UnixCCompiler
          libraries flame not found in ['/Users/user/Downloads/DeepFaceLab_MacOS-0.1.1/.dfl/env/lib', '/usr/local/lib', '/usr/lib']
          NOT AVAILABLE

        atlas_3_10_threads_info:
        Setting PTATLAS=ATLAS
        customize UnixCCompiler
          libraries lapack_atlas not found in /Users/user/Downloads/DeepFaceLab_MacOS-0.1.1/.dfl/env/lib
        customize UnixCCompiler
          libraries tatlas,tatlas not found in /Users/user/Downloads/DeepFaceLab_MacOS-0.1.1/.dfl/env/lib
        customize UnixCCompiler
          libraries lapack_atlas not found in /usr/local/lib
        customize UnixCCompiler
          libraries tatlas,tatlas not found in /usr/local/lib
        customize UnixCCompiler
          libraries lapack_atlas not found in /usr/lib
        customize UnixCCompiler
          libraries tatlas,tatlas not found in /usr/lib
        <class 'numpy.distutils.system_info.atlas_3_10_threads_info'>
          NOT AVAILABLE

        atlas_3_10_info:
        customize UnixCCompiler
          libraries lapack_atlas not found in /Users/user/Downloads/DeepFaceLab_MacOS-0.1.1/.dfl/env/lib
        customize UnixCCompiler
          libraries satlas,satlas not found in /Users/user/Downloads/DeepFaceLab_MacOS-0.1.1/.dfl/env/lib
        customize UnixCCompiler
          libraries lapack_atlas not found in /usr/local/lib
        customize UnixCCompiler
          libraries satlas,satlas not found in /usr/local/lib
        customize UnixCCompiler
          libraries lapack_atlas not found in /usr/lib
        customize UnixCCompiler
          libraries satlas,satlas not found in /usr/lib
        <class 'numpy.distutils.system_info.atlas_3_10_info'>
          NOT AVAILABLE

        atlas_threads_info:
        Setting PTATLAS=ATLAS
        customize UnixCCompiler
          libraries lapack_atlas not found in /Users/user/Downloads/DeepFaceLab_MacOS-0.1.1/.dfl/env/lib
        customize UnixCCompiler
          libraries ptf77blas,ptcblas,atlas not found in /Users/user/Downloads/DeepFaceLab_MacOS-0.1.1/.dfl/env/lib
        customize UnixCCompiler
          libraries lapack_atlas not found in /usr/local/lib
        customize UnixCCompiler
          libraries ptf77blas,ptcblas,atlas not found in /usr/local/lib
        customize UnixCCompiler
          libraries lapack_atlas not found in /usr/lib
        customize UnixCCompiler
          libraries ptf77blas,ptcblas,atlas not found in /usr/lib
        <class 'numpy.distutils.system_info.atlas_threads_info'>
          NOT AVAILABLE

        atlas_info:
        customize UnixCCompiler
          libraries lapack_atlas not found in /Users/user/Downloads/DeepFaceLab_MacOS-0.1.1/.dfl/env/lib
        customize UnixCCompiler
          libraries f77blas,cblas,atlas not found in /Users/user/Downloads/DeepFaceLab_MacOS-0.1.1/.dfl/env/lib
        customize UnixCCompiler
          libraries lapack_atlas not found in /usr/local/lib
        customize UnixCCompiler
          libraries f77blas,cblas,atlas not found in /usr/local/lib
        customize UnixCCompiler
          libraries lapack_atlas not found in /usr/lib
        customize UnixCCompiler
          libraries f77blas,cblas,atlas not found in /usr/lib
        <class 'numpy.distutils.system_info.atlas_info'>
          NOT AVAILABLE

          FOUND:
            extra_compile_args = ['-faltivec', '-I/System/Library/Frameworks/vecLib.framework/Headers']
            extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
            define_macros = [('NO_ATLAS_INFO', 3), ('HAVE_CBLAS', None)]

        /Users/user/Downloads/DeepFaceLab_MacOS-0.1.1/.dfl/env/lib/python3.10/site-packages/setuptools/_distutils/dist.py:257: UserWarning: Unknown distribution option: 'define_macros'
          warnings.warn(msg)
        running install
        /Users/user/Downloads/DeepFaceLab_MacOS-0.1.1/.dfl/env/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
          warnings.warn(
        running build
        running config_cc
        unifing config_cc, config, build_clib, build_ext, build commands --compiler options
        running config_fc
        unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
        running build_src
        build_src
        building py_modules sources
        building library "npymath" sources
        get_default_fcompiler: matching types: '['gnu95', 'nag', 'absoft', 'ibm', 'intel', 'gnu', 'g95', 'pg']'
        customize Gnu95FCompiler
        Found executable /opt/homebrew/bin/gfortran
        Traceback (most recent call last):
          File "<string>", line 2, in <module>
          File "<pip-setuptools-caller>", line 34, in <module>
          File "/private/var/folders/bn/49s5b9f13q59tlcgn_81kg1r0000gn/T/pip-install-8etwdbqh/numpy_2a428b76e0ad42308e65ccbe0fc763cc/setup.py", line 443, in <module>
            setup_package()
          File "/private/var/folders/bn/49s5b9f13q59tlcgn_81kg1r0000gn/T/pip-install-8etwdbqh/numpy_2a428b76e0ad42308e65ccbe0fc763cc/setup.py", line 435, in setup_package
            setup(**metadata)
          File "/private/var/folders/bn/49s5b9f13q59tlcgn_81kg1r0000gn/T/pip-install-8etwdbqh/numpy_2a428b76e0ad42308e65ccbe0fc763cc/numpy/distutils/core.py", line 171, in setup
            return old_setup(**new_attr)
          File "/Users/user/Downloads/DeepFaceLab_MacOS-0.1.1/.dfl/env/lib/python3.10/site-packages/setuptools/__init__.py", line 87, in setup
            return distutils.core.setup(**attrs)
          File "/Users/user/Downloads/DeepFaceLab_MacOS-0.1.1/.dfl/env/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 177, in setup
            return run_commands(dist)
          File "/Users/user/Downloads/DeepFaceLab_MacOS-0.1.1/.dfl/env/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 193, in run_commands
            dist.run_commands()
          File "/Users/user/Downloads/DeepFaceLab_MacOS-0.1.1/.dfl/env/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 968, in run_commands
            self.run_command(cmd)
          File "/Users/user/Downloads/DeepFaceLab_MacOS-0.1.1/.dfl/env/lib/python3.10/site-packages/setuptools/dist.py", line 1217, in run_command
            super().run_command(command)
          File "/Users/user/Downloads/DeepFaceLab_MacOS-0.1.1/.dfl/env/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
            cmd_obj.run()
          File "/private/var/folders/bn/49s5b9f13q59tlcgn_81kg1r0000gn/T/pip-install-8etwdbqh/numpy_2a428b76e0ad42308e65ccbe0fc763cc/numpy/distutils/command/install.py", line 62, in run
            r = self.setuptools_run()
          File "/private/var/folders/bn/49s5b9f13q59tlcgn_81kg1r0000gn/T/pip-install-8etwdbqh/numpy_2a428b76e0ad42308e65ccbe0fc763cc/numpy/distutils/command/install.py", line 36, in setuptools_run
            return distutils_install.run(self)
          File "/Users/user/Downloads/DeepFaceLab_MacOS-0.1.1/.dfl/env/lib/python3.10/site-packages/setuptools/_distutils/command/install.py", line 695, in run
            self.run_command('build')
          File "/Users/user/Downloads/DeepFaceLab_MacOS-0.1.1/.dfl/env/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 317, in run_command
            self.distribution.run_command(command)
          File "/Users/user/Downloads/DeepFaceLab_MacOS-0.1.1/.dfl/env/lib/python3.10/site-packages/setuptools/dist.py", line 1217, in run_command
            super().run_command(command)
          File "/Users/user/Downloads/DeepFaceLab_MacOS-0.1.1/.dfl/env/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
            cmd_obj.run()
          File "/private/var/folders/bn/49s5b9f13q59tlcgn_81kg1r0000gn/T/pip-install-8etwdbqh/numpy_2a428b76e0ad42308e65ccbe0fc763cc/numpy/distutils/command/build.py", line 47, in run
            old_build.run(self)
          File "/Users/user/Downloads/DeepFaceLab_MacOS-0.1.1/.dfl/env/lib/python3.10/site-packages/setuptools/_distutils/command/build.py", line 131, in run
            self.run_command(cmd_name)
          File "/Users/user/Downloads/DeepFaceLab_MacOS-0.1.1/.dfl/env/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 317, in run_command
            self.distribution.run_command(command)
          File "/Users/user/Downloads/DeepFaceLab_MacOS-0.1.1/.dfl/env/lib/python3.10/site-packages/setuptools/dist.py", line 1217, in run_command
            super().run_command(command)
          File "/Users/user/Downloads/DeepFaceLab_MacOS-0.1.1/.dfl/env/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
            cmd_obj.run()
          File "/private/var/folders/bn/49s5b9f13q59tlcgn_81kg1r0000gn/T/pip-install-8etwdbqh/numpy_2a428b76e0ad42308e65ccbe0fc763cc/numpy/distutils/command/build_src.py", line 142, in run
            self.build_sources()
          File "/private/var/folders/bn/49s5b9f13q59tlcgn_81kg1r0000gn/T/pip-install-8etwdbqh/numpy_2a428b76e0ad42308e65ccbe0fc763cc/numpy/distutils/command/build_src.py", line 153, in build_sources
            self.build_library_sources(*libname_info)
          File "/private/var/folders/bn/49s5b9f13q59tlcgn_81kg1r0000gn/T/pip-install-8etwdbqh/numpy_2a428b76e0ad42308e65ccbe0fc763cc/numpy/distutils/command/build_src.py", line 286, in build_library_sources
            sources = self.generate_sources(sources, (lib_name, build_info))
          File "/private/var/folders/bn/49s5b9f13q59tlcgn_81kg1r0000gn/T/pip-install-8etwdbqh/numpy_2a428b76e0ad42308e65ccbe0fc763cc/numpy/distutils/command/build_src.py", line 369, in generate_sources
            source = func(extension, build_dir)
          File "numpy/core/setup.py", line 667, in get_mathlib_info
            st = config_cmd.try_link('int main(void) { return 0;}')
          File "/Users/user/Downloads/DeepFaceLab_MacOS-0.1.1/.dfl/env/lib/python3.10/site-packages/setuptools/_distutils/command/config.py", line 247, in try_link
            self._check_compiler()
          File "/private/var/folders/bn/49s5b9f13q59tlcgn_81kg1r0000gn/T/pip-install-8etwdbqh/numpy_2a428b76e0ad42308e65ccbe0fc763cc/numpy/distutils/command/config.py", line 82, in _check_compiler
            self.fcompiler = new_fcompiler(compiler=self.fcompiler,
          File "/private/var/folders/bn/49s5b9f13q59tlcgn_81kg1r0000gn/T/pip-install-8etwdbqh/numpy_2a428b76e0ad42308e65ccbe0fc763cc/numpy/distutils/fcompiler/__init__.py", line 884, in new_fcompiler
            compiler = get_default_fcompiler(plat, requiref90=requiref90,
          File "/private/var/folders/bn/49s5b9f13q59tlcgn_81kg1r0000gn/T/pip-install-8etwdbqh/numpy_2a428b76e0ad42308e65ccbe0fc763cc/numpy/distutils/fcompiler/__init__.py", line 855, in get_default_fcompiler
            compiler_type =  _find_existing_fcompiler(matching_compiler_types,
          File "/private/var/folders/bn/49s5b9f13q59tlcgn_81kg1r0000gn/T/pip-install-8etwdbqh/numpy_2a428b76e0ad42308e65ccbe0fc763cc/numpy/distutils/fcompiler/__init__.py", line 806, in _find_existing_fcompiler
            c.customize(dist)
          File "/private/var/folders/bn/49s5b9f13q59tlcgn_81kg1r0000gn/T/pip-install-8etwdbqh/numpy_2a428b76e0ad42308e65ccbe0fc763cc/numpy/distutils/fcompiler/__init__.py", line 530, in customize
            linker_so_flags = self.flag_vars.linker_so
          File "/private/var/folders/bn/49s5b9f13q59tlcgn_81kg1r0000gn/T/pip-install-8etwdbqh/numpy_2a428b76e0ad42308e65ccbe0fc763cc/numpy/distutils/fcompiler/environment.py", line 40, in __getattr__
            return self._get_var(name, conf_desc)
          File "/private/var/folders/bn/49s5b9f13q59tlcgn_81kg1r0000gn/T/pip-install-8etwdbqh/numpy_2a428b76e0ad42308e65ccbe0fc763cc/numpy/distutils/fcompiler/environment.py", line 56, in _get_var
            var = self._hook_handler(name, hook)
          File "/private/var/folders/bn/49s5b9f13q59tlcgn_81kg1r0000gn/T/pip-install-8etwdbqh/numpy_2a428b76e0ad42308e65ccbe0fc763cc/numpy/distutils/fcompiler/__init__.py", line 709, in _environment_hook
            return hook()
          File "/private/var/folders/bn/49s5b9f13q59tlcgn_81kg1r0000gn/T/pip-install-8etwdbqh/numpy_2a428b76e0ad42308e65ccbe0fc763cc/numpy/distutils/fcompiler/gnu.py", line 353, in get_flags_linker_so
            flags = GnuFCompiler.get_flags_linker_so(self)
          File "/private/var/folders/bn/49s5b9f13q59tlcgn_81kg1r0000gn/T/pip-install-8etwdbqh/numpy_2a428b76e0ad42308e65ccbe0fc763cc/numpy/distutils/fcompiler/gnu.py", line 144, in get_flags_linker_so
            os.environ['MACOSX_DEPLOYMENT_TARGET'] = target
          File "/opt/homebrew/Cellar/python@3.10/3.10.6_1/Frameworks/Python.framework/Versions/3.10/lib/python3.10/os.py", line 684, in __setitem__
            value = self.encodevalue(value)
          File "/opt/homebrew/Cellar/python@3.10/3.10.6_1/Frameworks/Python.framework/Versions/3.10/lib/python3.10/os.py", line 756, in encode
            raise TypeError("str expected, not %s" % type(value).__name__)
        TypeError: str expected, not int
        [end of output]

    note: This error originates from a subprocess, and is likely not a problem with pip.
  error: legacy-install-failure

  × Encountered error while trying to install package.
  ╰─> numpy

  note: This is an issue with the package mentioned above, not pip.
  hint: See above for output from the failure.

  [notice] A new release of pip available: 22.2 -> 22.2.2
  [notice] To update, run: pip install --upgrade pip
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

Smiril commented 1 year ago

hello , ;) did you try this ?

hope that solve your problem ...

void-512 commented 1 year ago

I might installed it successfully, but when I tried to extract images, it shows this error

user@WTYs-MBA ~ % /Users/user/DeepFaceLab_MacOS/scripts/2_extract_images_from_video_data_src.sh Traceback (most recent call last): File "/Users/user/DeepFaceLab_MacOS/.dfl/DeepFaceLab/main.py", line 6, in from core.leras import nn File "/Users/user/DeepFaceLab_MacOS/.dfl/DeepFaceLab/core/leras/init.py", line 1, in from .nn import nn File "/Users/user/DeepFaceLab_MacOS/.dfl/DeepFaceLab/core/leras/nn.py", line 25, in import numpy as np ModuleNotFoundError: No module named 'numpy'

void-512 commented 1 year ago

I might installed it successfully, but when I tried to extract images, it shows this error

user@WTYs-MBA ~ % /Users/user/DeepFaceLab_MacOS/scripts/2_extract_images_from_video_data_src.sh Traceback (most recent call last): File "/Users/user/DeepFaceLab_MacOS/.dfl/DeepFaceLab/main.py", line 6, in from core.leras import nn File "/Users/user/DeepFaceLab_MacOS/.dfl/DeepFaceLab/core/leras/init.py", line 1, in from .nn import nn File "/Users/user/DeepFaceLab_MacOS/.dfl/DeepFaceLab/core/leras/nn.py", line 25, in import numpy as np ModuleNotFoundError: No module named 'numpy'

I tried t solve this through pip install one by one, however, it shows that it can't find tensorflow. The python version is 3.10

Smiril commented 1 year ago

try to pip this

void-512 commented 1 year ago

try to pip this

yes I used that, and the comment above is the problem I met. pip couldn't find tensorflow.

ERROR: Could not find a version that satisfies the requirement tensorflow (from versions: none) ERROR: No matching distribution found for tensorflow

Smiril commented 1 year ago

tensorflow-macos

void-512 commented 1 year ago

tensorflow-macos

Thank you, now I installed successfully, but when I tried to run the train script, it shows this error

Traceback (most recent call last): File "/Users/user/DeepFaceLab_MacOS/.dfl/DeepFaceLab/main.py", line 348, in arguments.func(arguments) File "/Users/user/DeepFaceLab_MacOS/.dfl/DeepFaceLab/main.py", line 136, in process_train from mainscripts import Trainer File "/Users/user/DeepFaceLab_MacOS/.dfl/DeepFaceLab/mainscripts/Trainer.py", line 13, in import models File "/Users/user/DeepFaceLab_MacOS/.dfl/DeepFaceLab/models/init.py", line 1, in from .ModelBase import ModelBase File "/Users/user/DeepFaceLab_MacOS/.dfl/DeepFaceLab/models/ModelBase.py", line 296

9354e6b6112e5ae0b6042c18aa62145d00177e65 ^ SyntaxError: invalid decimal literal

Smiril commented 1 year ago

line 296 is your problem in models/ModelBase.py