tin2tin / Pallaidium

Generative AI for the Blender VSE: Text, video or image to video, image and audio in Blender Video Sequence Editor.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mac Contributor Support Thread

tin2tin opened this issue · comments

As I do not personally use Mac, I can't offer support for it, but if anyone has problems with it, report the Mac-related bugs here, and let's hope some other Mac users can help out submitting fixes for those problems.

In a previous version of blender/os/addon i managed to make it work once on macos. But it did not last long. After i always get this error when trying to install the dependencies , it aborts
: cannot instantiate 'WindowsPath' on your system

it works on windows, but can't get the dependencies to complete on macos.

Is the error referring to a specific line/lib?

As i am not a programmer and don't grasp everything i gather here i paste were it stops working on both an INtel and Arm Mac for me:

Successfully built transformers
Installing collected packages: safetensors, tokenizers, transformers
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
suno-bark 0.0.1a0 requires encodec, which is not installed.
suno-bark 0.0.1a0 requires scipy, which is not installed.
suno-bark 0.0.1a0 requires torch, which is not installed.
Successfully installed safetensors-0.4.3 tokenizers-0.15.2 transformers-4.40.0.dev0
Traceback (most recent call last):
File "/Users/XXXXXX/Library/Application Support/Blender/4.1/scripts/addons/Pallaidium-main/init.py", line 658, in import_module
subprocess.call([python_exe, "import ", packageName])
^^^^^^^^^^^
NameError: name 'packageName' is not defined

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Users/XXXXXX/Library/Application Support/Blender/4.1/scripts/addons/Pallaidium-main/init.py", line 865, in execute
install_modules(self)
File "/Users/XXXXXX/Library/Application Support/Blender/4.1/scripts/addons/Pallaidium-main/init.py", line 691, in install_modules
import_module(self, "transformers", "git+https://github.com/huggingface/transformers.git")
File "/Users/XXXXXX/Library/Application Support/Blender/4.1/scripts/addons/Pallaidium-main/init.py", line 665, in import_module
exec("import " + module)
File "", line 1, in
File "/Applications/Blender.app/Contents/Resources/4.1/python/lib/python3.11/site-packages/transformers/init.py", line 26, in
from . import dependency_versions_check
File "/Applications/Blender.app/Contents/Resources/4.1/python/lib/python3.11/site-packages/transformers/dependency_versions_check.py", line 16, in
from .utils.versions import require_version, require_version_core
File "/Applications/Blender.app/Contents/Resources/4.1/python/lib/python3.11/site-packages/transformers/utils/init.py", line 18, in
from huggingface_hub import get_full_repo_name # for backward compatibility
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1229, in _handle_fromlist
File "/Applications/Blender.app/Contents/Resources/4.1/python/lib/python3.11/site-packages/huggingface_hub/init.py", line 487, in getattr
submod = importlib.import_module(submod_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Applications/Blender.app/Contents/Resources/4.1/python/lib/python3.11/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Applications/Blender.app/Contents/Resources/4.1/python/lib/python3.11/site-packages/huggingface_hub/hf_api.py", line 45, in
import requests
File "/Applications/Blender.app/Contents/Resources/4.1/python/lib/python3.11/site-packages/requests/init.py", line 147, in
from . import packages, utils
File "/Applications/Blender.app/Contents/Resources/4.1/python/lib/python3.11/site-packages/requests/utils.py", line 63, in
DEFAULT_CA_BUNDLE_PATH = certs.where()
^^^^^^^^^^^^^
File "/Applications/Blender.app/Contents/Resources/4.1/python/lib/python3.11/site-packages/certifi/core.py", line 36, in where
_CACERT_CTX = get_path("certifi", "cacert.pem")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Applications/Blender.app/Contents/Resources/4.1/python/lib/python3.11/importlib/resources/_legacy.py", line 25, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/Applications/Blender.app/Contents/Resources/4.1/python/lib/python3.11/importlib/resources/_legacy.py", line 121, in path
return _common.as_file(_common.files(package) / normalize_path(resource))
^^^^^^^^^^^^^^^^^^^^^^
File "/Applications/Blender.app/Contents/Resources/4.1/python/lib/python3.11/importlib/resources/_common.py", line 22, in files
return from_package(get_package(package))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Applications/Blender.app/Contents/Resources/4.1/python/lib/python3.11/importlib/resources/_common.py", line 65, in from_package
reader = spec.loader.get_resource_reader(spec.name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Applications/Blender.app/Contents/Resources/4.1/python/lib/python3.11/importlib/resources/_adapters.py", line 29, in get_resource_reader
return CompatibilityFiles(self.spec)._native()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Applications/Blender.app/Contents/Resources/4.1/python/lib/python3.11/importlib/resources/_adapters.py", line 155, in _native
reader = self._reader
^^^^^^^^^^^^
File "/Applications/Blender.app/Contents/Resources/4.1/python/lib/python3.11/importlib/resources/_adapters.py", line 149, in _reader
return self.spec.loader.get_resource_reader(self.spec.name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 605, in _check_name_wrapper
File "", line 1139, in get_resource_reader
File "/Applications/Blender.app/Contents/Resources/4.1/python/lib/python3.11/importlib/resources/readers.py", line 17, in init
self.path = pathlib.Path(loader.path).parent
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Applications/Blender.app/Contents/Resources/4.1/python/lib/python3.11/pathlib.py", line 873, in new
raise NotImplementedError("cannot instantiate %r on your system"
NotImplementedError: cannot instantiate 'WindowsPath' on your system
Info: Installing: huggingface_hub module.
Info: Installing: transformers module.
Error: Python: Traceback (most recent call last):
File "/Users/XXXXXX/Library/Application Support/Blender/4.1/scripts/addons/Pallaidium-main/init.py", line 658, in import_module
subprocess.call([python_exe, "import ", packageName])
^^^^^^^^^^^
NameError: name 'packageName' is not defined

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Users/XXXXXX/Library/Application Support/Blender/4.1/scripts/addons/Pallaidium-main/init.py", line 665, in import_module
exec("import " + module)
File "", line 1, in
File "/Applications/Blender.app/Contents/Resources/4.1/python/lib/python3.11/site-packages/transformers/init.py", line 26, in
from . import dependency_versions_check
File "/Applications/Blender.app/Contents/Resources/4.1/python/lib/python3.11/site-packages/transformers/dependency_versions_check.py", line 16, in
from .utils.versions import require_version, require_version_core
File "/Applications/Blender.app/Contents/Resources/4.1/python/lib/python3.11/site-packages/transformers/utils/init.py", line 18, in
from huggingface_hub import get_full_repo_name # for backward compatibility
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1229, in _handle_fromlist
File "/Applications/Blender.app/Contents/Resources/4.1/python/lib/python3.11/site-packages/huggingface_hub/init.py", line 487, in getattr
submod = importlib.import_module(submod_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Applications/Blender.app/Contents/Resources/4.1/python/lib/python3.11/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Applications/Blender.app/Contents/Resources/4.1/python/lib/python3.11/site-packages/huggingface_hub/hf_api.py", line 45, in
import requests
File "/Applications/Blender.app/Contents/Resources/4.1/python/lib/python3.11/site-packages/requests/init.py", line 147, in
from . import packages, utils
File "/Applications/Blender.app/Contents/Resources/4.1/python/lib/python3.11/site-packages/requests/utils.py", line 63, in
DEFAULT_CA_BUNDLE_PATH = certs.where()
^^^^^^^^^^^^^
File "/Applications/Blender.app/Contents/Resources/4.1/python/lib/python3.11/site-packages/certifi/core.py", line 36, in where
_CACERT_CTX = get_path("certifi", "cacert.pem")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Applications/Blender.app/Contents/Resources/4.1/python/lib/python3.11/importlib/resources/_legacy.py", line 25, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/Applications/Blender.app/Contents/Resources/4.1/python/lib/python3.11/importlib/resources/_legacy.py", line 121, in path
return _common.as_file(_common.files(package) / normalize_path(resource))
^^^^^^^^^^^^^^^^^^^^^^
File "/Applications/Blender.app/Contents/Resources/4.1/python/lib/python3.11/importlib/resources/_common.py", line 22, in files
return from_package(get_package(package))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Applications/Blender.app/Contents/Resources/4.1/python/lib/python3.11/importlib/resources/_common.py", line 65, in from_package
reader = spec.loader.get_resource_reader(spec.name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Applications/Blender.app/Contents/Resources/4.1/python/lib/python3.11/importlib/resources/_adapters.py", line 29, in get_resource_reader
return CompatibilityFiles(self.spec)._native()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Applications/Blender.app/Contents/Resources/4.1/python/lib/python3.11/importlib/resources/_adapters.py", line 155, in _native
reader = self._reader
^^^^^^^^^^^^
File "/Applications/Blender.app/Contents/Resources/4.1/python/lib/python3.11/importlib/resources/_adapters.py", line 149, in _reader
return self.spec.loader.get_resource_reader(self.spec.name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 605, in _check_name_wrapper
File "", line 1139, in get_resource_reader
File "/Applications/Blender.app/Contents/Resources/4.1/python/lib/python3.11/importlib/resources/readers.py", line 17, in init
self.path = pathlib.Path(loader.path).parent
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Applications/Blender.app/Contents/Resources/4.1/python/lib/python3.11/pathlib.py", line 873, in new
raise NotImplementedError("cannot instantiate %r on your system"
NotImplementedError: cannot instantiate 'WindowsPath' on your system

Try to install Git as described in the installation instructions.

I also have to point out i have both platforms at hand (windows and mac); i use windows mostly at home. BUT when at Work , i use mainly mac along with a bunch of creators that would really benefit from this working on mac

Try to install Git as described in the installation instructions.

it is installed already, i'll try updating it, but i doubt it is the problem since on the intel MBP it's a fresh install

NotImplementedError: cannot instantiate 'WindowsPath' on your system
last line kept my attention, tried different things and researches , but it is beyond me...

Git(must be on PATH(or Bark will fail)
git 2.44.0 is already installed and up-to-date.
To reinstall 2.44.0, run:
brew reinstall git
(base) xxx@xxx ~ % which git
/opt/homebrew/bin/git
SO is this OK to have this path or should i consider what is mentionned in this (https://stackoverflow.com/questions/8957862/how-to-upgrade-git-to-latest-version-on-macos)
in the 61 article concerning export path commands and such?

I managed to get past the first error NotImplementedError: cannot instantiate 'WindowsPath' on your system
by removing lines in the init.py
line 55
temp = pathlib.PosixPath
pathlib.PosixPath = pathlib.WindowsPath
and line 79
if os_platform == "Windows":
pathlib.PosixPath = pathlib.WindowsPath

i still had to manually install the rest of the depedencies manually with blender pip plugin, wich was tedious but worked...

managed to make the generate button download the models for sdxl,

but then i get something concerning the accelerate module not working when i try to use it...
to be continued...