Skip to content

Problem in DataLoader (Solution in #4643 not solve it) #5761

@fanglue

Description

@fanglue
  • OS: Ubuntu 16.04
  • PyTorch version: torch-0.3.1-cp36-cp36-linux_x86_64.whl
  • How you installed PyTorch (conda, pip, source): pip3 from the binary
  • Python version: 3.6
  • CUDA/cuDNN version: 9.1
  • GPU models and configuration: GTX 1070 Ti

After install using the wheel file, I have changed the torch/utils/data/Dataloader.py according to the changes shown at #4643

But the same error still happen when I try the tutorial example to load image database:

Exception ignored in: <bound method DataLoaderIter.del of <torch.utils.data.dataloader.DataLoaderIter object at 0x56090c8c7348>>
Traceback (most recent call last):
File "/home/fanglue/.local/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 375, in del
File "/home/fanglue/.local/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 361, in _shutdown_workers
File "/home/fanglue/.local/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 39, in _get_from_queue
File "/usr/pkg/lib/python3.6/multiprocessing/queues.py", line 337, in get
ImportError: sys.meta_path is None, Python is likely shutting down

So could anyone help me on that? Or is there any other file I should modify to get it run?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions