libc++abi: terminating with uncaught exception of type std::length_error: vector
See original GitHub issue😵 Describe the installation problem
Hi guys! I’ve installed “torch_geometric” on my MAC OS, but when I import it in python code, a c++ error occurs as following:
libc++abi: terminating with uncaught exception of type std::length_error: vector fish: Job 1, ‘python3’ terminated by signal SIGABRT (Abort)
I’ve installed all related package by pip install. And the error seems to be caused by the dynamic C++ library torch_geometric linked to but I cannot figure out why.
Environment
- PyG version:pyg-nightly-2.0.5.dev20220405.tar.gz
- PyTorch version:1.11.0
- OS:MAC
- Python version:3.9.7
- CUDA/cuDNN version: No cuda
- How you installed PyTorch and PyG (
conda
,pip
, source): pip - Any other relevant information (e.g., version of
torch-scatter
): 2.0.9
Issue Analytics
- State:
- Created a year ago
- Comments:13 (4 by maintainers)
Top Results From Across the Web
Getting "terminating with uncaught exception of type std ...
It runs fine and gives me good output, but every time I'm getting an error "libc++abi. dylib: terminating with uncaught exception of type...
Read more >libc++abi.dylib: terminating with uncaught exception of type ...
It means exactly what it says — you're trying to index into a string using an index that is not valid. The first...
Read more >std::length_error - cppreference.com
Defines a type of object to be thrown as exception. It reports errors that result from attempts to exceed implementation defined length ...
Read more >Debug libc++abi.dylib: terminating… | Apple Developer Forums
This message indicates that some C++ code threw a language exception that was never caught and thus terminated the program. If you use...
Read more >Libc++abi.Dylib: Terminating With Uncaught Exception of ...
Why Do You Get Libc++abi.Dylib: Terminating With Uncaught Exception of Type NSException ... You get the said exception because you've renamed an action...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I have exactly the same problem! I solved it by uninstall all the depencies: torch-sparse\scatter\cluster\spline-conv. And re-install with
pip install torch-scatter torch-sparse torch-cluster torch-spline-conv torch-geometric -f https://data.pyg.org/whl/torch-1.11.0+cpu.html
.It does work! very helpful!