Skip to content

ImportError: cannot import name 'ExceptionWrapper' from 'torch._utils' #1

@rookiecm

Description

@rookiecm

Thank you for your contributions.
When i run python setup.py install and python main_async.py, I got the following error:

Traceback (most recent call last): File "main_async.py", line 5, in <module> from dataloaderAsync import DataLoader File "/data1/mengcao/Dataloader.async-master/dataloaderAsync/__init__.py", line 2, in <module> from .dataloader import DataLoader File "/data1/mengcao/Dataloader.async-master/dataloaderAsync/dataloader.py", line 14, in <module> from torch._utils import ExceptionWrapper ImportError: cannot import name 'ExceptionWrapper' from 'torch._utils' (/data1/mengcao/anaconda3/envs/face/lib/python3.7/site-packages/torch/_utils.py)

Could you please figure it out ? Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions