Search Unity

Question [Solved] - Cinemachine Throws Errors Upon Install From Package Manager

Discussion in 'Cinemachine' started by Rajan95, Apr 11, 2022.

  1. Rajan95

    Rajan95

    Joined:
    Jun 7, 2019
    Posts:
    7
    I'm having issues installing Cinemachine to my project. Whenever I try to install it from the package manager a list of errors are thrown (see image).

    Steps to reproduce:
    1. Open a new URP project using Unity version: 2021.2.19f1
    2. Install Cinemachine via package manager (v2.8.4)
     

    Attached Files:

  2. marc_tanenbaum

    marc_tanenbaum

    Unity Technologies

    Joined:
    Oct 22, 2014
    Posts:
    637
    There was a package manager failure for an hour or so yesterday. My guess is that what you're seeing here is a result of that. Please try again and let us know if it has been resolved on your end.
     
  3. Rajan95

    Rajan95

    Joined:
    Jun 7, 2019
    Posts:
    7
    Hi I've restarted Unity and tried to install Cinemachine again but I'm now getting these errors instead, weirdly. upload_2022-4-12_23-34-28.png
     
  4. antoinecharton

    antoinecharton

    Unity Technologies

    Joined:
    Jul 22, 2020
    Posts:
    189
    You could try this. Make a backup of your project. Remove cinemachine package. Close unity and delete the Library folder. reopen the project. Reimport cinemachine. Let us know if this works :)
     
    marc_tanenbaum likes this.
  5. Rajan95

    Rajan95

    Joined:
    Jun 7, 2019
    Posts:
    7
    Hey! I just tried this now and it didn't seem to work.

    upload_2022-4-15_11-53-55.png
     
  6. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,730
    Is it possible that you have a local copy of some old version of Cinemachine in your project's Assets? If so, delete it and try again to install from package manager.

    If you still have problems, try creating a new empty project and installing Cinemachine, just to prove that the install infrastructure is working.
     
  7. Rajan95

    Rajan95

    Joined:
    Jun 7, 2019
    Posts:
    7
    Hi, so I created a new project using the 3D (URP) template - Editor Version: 2021.2.19f1, installed Cinemachine and still a list of errors are thrown.

    Also, I've checked the project for potential old versions of Cinemachine in the project and there are none. This is super strange.

    upload_2022-4-15_12-46-25.png
     
  8. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,730
    Maybe your local package cache somehow got corrupted.
    Find it and delete it.
    Mine is here:
    C:\Users\gregoryl\AppData\Local\Unity\cache\packages\packages.unity.com\com.unity.cinemachine@2.8.4
     
    Rajan95 likes this.
  9. Rajan95

    Rajan95

    Joined:
    Jun 7, 2019
    Posts:
    7
    I've just tried this now and i'm getting the following error:
    upload_2022-4-16_19-46-16.png
     
  10. Rajan95

    Rajan95

    Joined:
    Jun 7, 2019
    Posts:
    7
    I found another file that was similar to the one you mentioned and deleted that, now it works! Thanks, Gregory, you are a wizard. Have a great weekend :D
     
    Gregoryl likes this.