PySlice_Unpack: bug on pytorch 1.0

I have a problem with pytorch 1.0, when generating tensor of big size, I get error:

python: symbol lookup error: /usr/lib/python3.6/site-packages/torch/lib/ undefined

I have this problem with pytorch 1.0 (cuda or not cuda), and not on 0.4.0.

Seems linked to this issue:
But the advice was to try on python 3.6.1. I need to use it on 3.6.0.

Python log below. For example when generating tensor of size 10000, it crashes. If tensor is of size 1000 it works…

Any help please?

$ python
Python 3.6.0 (default, Jan 16 2017, 12:12:55)
[GCC 6.3.1 20170109] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch
>>> torch.__version__
>>> torch.ones(10000)
python: symbol lookup error: /usr/lib/python3.6/site-packages/torch/lib/ undefined symbol: PySlice_Unpack
1 Like