# Version problem again!

**URL:** <https://discuss.pytorch.org/t/version-problem-again/28992>\
**Category:** Uncategorized\
**Created:** [November 7, 2018, 9:32am UTC](https://discuss.pytorch.org/t/version-problem-again/28992 "2018-11-07T09:32:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_Hsu](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/michael_hsu/32/8778_2.png) [@Michael\_Hsu](https://discuss.pytorch.org/u/Michael_Hsu)\
**Post date:** [November 7, 2018, 9:32am UTC](https://discuss.pytorch.org/t/version-problem-again/28992/1 "2018-11-07T09:32:06Z")

</div>

I now use PyTorch 1.0 preview.However when I run the code writting in PyTorch 0.4.0.It shows the following error:

 ![image](https://discuss.pytorch.org/uploads/default/original/2X/5/5647698d7eb41ebe6dd0be343e83f3a9e974a696.png)

I have known it’s the problem because of version after googling.But I don’t find the way how to fix the problem.I’m new to PyTorch, leave alone the latest PyTorch 1.0.Anyone can help me? Or just fallback to the stable PyTorch 0.4.x version?

---

<div class="post-metadata">

**Author:** ![albanD](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/alband/32/215_2.png) [@albanD](https://discuss.pytorch.org/u/albanD)\
**Post date:** [November 7, 2018, 10:18am UTC](https://discuss.pytorch.org/t/version-problem-again/28992/2 "2018-11-07T10:18:00Z")

</div>

Hi,

The `torch.utils.ffi` module that was a temporary thing has been removed and replaced by a proper solution that is cpp extensions: [doc](https://pytorch.org/docs/stable/cpp_extension.html) and [tuto](https://pytorch.org/tutorials/advanced/cpp_extension.html).  
This is used by the `pytorch-lighthead` library that you are using.  
So the library will need to be updated to support pytorch 1.0. In the meantime I’m afraid you will have to keep using 0.4 version 😕

---

<div class="post-metadata">

**Author:** ![Michael\_Hsu](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/michael_hsu/32/8778_2.png) [@Michael\_Hsu](https://discuss.pytorch.org/u/Michael_Hsu)\
**Post date:** [November 7, 2018, 10:22am UTC](https://discuss.pytorch.org/t/version-problem-again/28992/3 "2018-11-07T10:22:17Z")

</div>

I see! Thanks , I will have a try.
