Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Has anyone else had this problem? #47

Open
Supzekun opened this issue Oct 30, 2023 · 3 comments
Open

Has anyone else had this problem? #47

Supzekun opened this issue Oct 30, 2023 · 3 comments

Comments

@Supzekun
Copy link

Supzekun commented Oct 30, 2023

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

@mushen12138
Copy link

我也遇到了,有什么解决方法吗?

@lszyy001
Copy link

change the
RemoteOrLocalPath = Union[str, BlobPathLike, os.PathLike[str]]
to
RemoteOrLocalPath = Union[str, BlobPathLike, "os.PathLike[str]"]
then it works.

@jbnjvc10000
Copy link

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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants