-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
libc++abi: terminating with uncaught exception of type std::length_error: vector #4419
Comments
I've never encountered this issue. Does it only apply to the nightly release of PyG or to |
Is it the arm64 mac? sometimes it returns weird errors. |
I use the command Then, I uninstall the package by I run the command according to the following page , where I choose Pytorch 1.11.*, Mac, Pip, Cpu
However, the error still remains. |
Can you show me the output of |
I have the very same problem with importing torch vision. |
@yezhuoyang I think it is good practice to work in personal environments. Glad that it is resolved! @mysakbm What's the problem with the installation of |
I have an M1 mac running only miniconda (for the arm natively compiled stuff ) where everything works fine and I have an i9 mac running regular conda where I get the same error, tried adding miniconda and switching to that got same error, guessing I need to nuke the whole conda install which I don't want to do. I will go with the M1 I guess. |
can confirm that using venv (or conda) resolved the issue for me as well. |
I have exactly the same problem! I solved it by uninstall all the depencies: torch-sparse\scatter\cluster\spline-conv. And re-install with |
I used the solutions presented here but It did not work. |
It does work! very helpful! |
SOLUTION: Clearing the cache fixed the issue ([comment](pyg-team/pytorch_geometric#4419 (comment))). The user was experiencing similar issue on arm64. It reports errors that result from attempts to exceed implementation defined length limits for some object ([link](https://en.cppreference.com/w/cpp/error/length_error)). "Adding a string prop to TextAttributes.cpp: Read error message with Android Studio ([screenshot](https://www.icloud.com/iclouddrive/053tE1XWF0rgVUMxmLhUJTJUA#terminating_std_length_error_vector)) Search online for the error message and understand the configuration mistake in the cpp type ([link](https://www.google.com/search?q=terminating+with+uncaught+exception+of+type+std::length_error:+vector)) terminating with uncaught exception of type std::length_error: vector Verify all changes from [#2](https://github.com/fabriziobertoglio1987/react-native/pull/2/files) are added in [#3](https://github.com/fabriziobertoglio1987/react-native/pull/3/files) Verify there are no mistakes in the types Read about APIs that you added to cpp Read complete logcat errors Does it build only with the Java Changes? Commit the java changes and stash cpp The error std::length_error: vector indicates wrong cpp type
I know it's strange but I got this while not doing anything with python whatsoever. this is the c++ program:
and now this is the error:
I am using c++11 to compile in Mac m1. |
😵 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:
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
conda
,pip
, source): piptorch-scatter
): 2.0.9The text was updated successfully, but these errors were encountered: