Skip to content
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

Broken indexing? #17237

Closed
sarahwie opened this issue Feb 19, 2019 · 2 comments
Closed

Broken indexing? #17237

sarahwie opened this issue Feb 19, 2019 · 2 comments

Comments

@sarahwie
Copy link

🐛 Bug

Python crashes when attempt to index a tensor. Cannot reproduce in python2.7.

To Reproduce

Minimal example:

import torch
store = torch.randn((12,100,6,50))
store[:, :, 0, :]

produces

dyld: lazy symbol binding failed: Symbol not found: _PySlice_Unpack
  Referenced from: /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/torch/lib/libtorch_python.dylib
  Expected in: flat namespace

dyld: Symbol not found: _PySlice_Unpack
  Referenced from: /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/torch/lib/libtorch_python.dylib
  Expected in: flat namespace

Abort trap: 6

Environment

PyTorch version: 1.0.1.post2
Is debug build: No
CUDA used to build PyTorch: None

OS: Mac OSX 10.13.6
GCC version: Could not collect
CMake version: version 3.1.2

Python version: 3.6
Is CUDA available: No
CUDA runtime version: No CUDA
GPU models and configuration: No CUDA
Nvidia driver version: No CUDA
cuDNN version: No CUDA

Versions of relevant libraries:
[pip3] numpy==1.16.1
[pip3] torch==1.0.1.post2
[conda] Could not collect

Additional Info

Installed using pip3 install torch

@sarahwie
Copy link
Author

Resolved by upgrading to >= Python 3.6.1

@soumith
Copy link
Member

soumith commented Feb 19, 2019

this is a known issue with python 3.6.0, if my memory serves me right. see https://bugzilla.redhat.com/show_bug.cgi?id=1435135

Upgrade to python 3.6.2 or greater.
(the issue has nothing to do with pytorch and is an abi incompatibility issue across 3.6.0 / 3.6.1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants