You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when python test.py --conf_path confs/face_example.yml
got error
Traceback (most recent call last):
File "test.py", line 29, in
from guided_diffusion import dist_util
File "/data/123/szk/RePaint-main/RePaint-main/guided_diffusion/dist_util.py", line 23, in
import blobfile as bf
File "/home/123/.local/lib/python3.8/site-packages/blobfile/init.py", line 6, in
from blobfile._ops import (
File "/home/123/.local/lib/python3.8/site-packages/blobfile/_ops.py", line 19, in
from blobfile._common import DirEntry, Stat, RemoteOrLocalPath
File "/home/123/.local/lib/python3.8/site-packages/blobfile/_common.py", line 1025, in
RemoteOrLocalPath = Union[str, BlobPathLike, os.PathLike[str]]
TypeError: 'ABCMeta' object is not subscriptable
The text was updated successfully, but these errors were encountered:
change the
RemoteOrLocalPath = Union[str, BlobPathLike, os.PathLike[str]]
to
RemoteOrLocalPath = Union[str, BlobPathLike, "os.PathLike[str]"]
then it works.
It looks like the error is related to "blobfile"
This may be because linux has a different file structure(or file path?) https://pypi.org/project/blobfile/
when python test.py --conf_path confs/face_example.yml
got error
Traceback (most recent call last):
File "test.py", line 29, in
from guided_diffusion import dist_util
File "/data/123/szk/RePaint-main/RePaint-main/guided_diffusion/dist_util.py", line 23, in
import blobfile as bf
File "/home/123/.local/lib/python3.8/site-packages/blobfile/init.py", line 6, in
from blobfile._ops import (
File "/home/123/.local/lib/python3.8/site-packages/blobfile/_ops.py", line 19, in
from blobfile._common import DirEntry, Stat, RemoteOrLocalPath
File "/home/123/.local/lib/python3.8/site-packages/blobfile/_common.py", line 1025, in
RemoteOrLocalPath = Union[str, BlobPathLike, os.PathLike[str]]
TypeError: 'ABCMeta' object is not subscriptable
The text was updated successfully, but these errors were encountered: