question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

About import torch_geometric

See original GitHub issue

When I run import torch_geometric, I get the following error. I compiled and installed torch_geometric with source code.

>>> import torch_geometric
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/gzm/anaconda3/envs/py3/lib/python3.7/site-packages/torch_geometric-1.7.0-py3.7.egg/torch_geometric/__init__.py", line 5, in <module>
    import torch_geometric.data
  File "/home/gzm/anaconda3/envs/py3/lib/python3.7/site-packages/torch_geometric-1.7.0-py3.7.egg/torch_geometric/data/__init__.py", line 6, in <module>
    from .dataloader import DataLoader, DataListLoader, DenseDataLoader
  File "/home/gzm/anaconda3/envs/py3/lib/python3.7/site-packages/torch_geometric-1.7.0-py3.7.egg/torch_geometric/data/dataloader.py", line 5, in <module>
    from torch._six import container_abcs, string_classes, int_classes
ImportError: cannot import name 'container_abcs' from 'torch._six' (/home/gzm/anaconda3/envs/py3/lib/python3.7/site-packages/torch/_six.py)

Thanks.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

4reactions
rusty1scommented, Jun 17, 2021

Just released torch-geometric==1.7.1 with PyTorch 1.9.0 support 😃

3reactions
rusty1scommented, Jun 15, 2021

I will provide a new release in the following days supporting PyTorch 1.9.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Installation — pytorch_geometric documentation
Installation via Pip Wheels · Ensure that at least PyTorch 1.12.0 is installed: python -c "import torch; print(torch.__version__)" >>> 1.13.0 ·...
Read more >
torch-geometric - PyPI
PyG (PyTorch Geometric) is a library built upon PyTorch to easily write and train Graph Neural Networks (GNNs) for a wide range of...
Read more >
About import torch_geometric · Issue #2482 - GitHub
Just released torch-geometric==1.7.1 with PyTorch 1.9.0 support :) ❤️ 4
Read more >
Colab Session Crashes on importing torch_geometric.data
My colab session always crashes while trying to import torch_geometric.data module. For reference, the code I am writing is as follows:
Read more >
Colab Session Crashes on importing torch_geometric.data
My colab session always crashes while tring to import torch_geometric.data module. For reference, the code I am writing is as follows: ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found