Search Unity

  1. Looking for a job or to hire someone for a project? Check out the re-opened job forums.
    Dismiss Notice
  2. Unity 2020 LTS & Unity 2021.1 have been released.
    Dismiss Notice
  3. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Failing to decompress package via command line, works manually.

Discussion in 'Editor & General Support' started by michael_house, Jun 30, 2016.

  1. michael_house

    michael_house

    Joined:
    May 24, 2013
    Posts:
    17
    I have a script that exports a package from one project and imports it into another project. The package is created with no problems, however when importing the package into the other project, I get the following error:

    Failed to import package with error: Couldn't decompress package
    But, if I attempt to manually import the package it works fine, no errors. What could be causing the error when using the command line script, but not when performing the task manually?


    The script is below:

    Unity -projectPath "C:\Code\BaseWorld" -exportPackage "Assets\Resources" "Assets\Scripts" "C:\Code\BaseWorldPackage.unitypackage"

    Unity -projectPath "C:\Code\Ch01\Chapter1" -importPackage "C:\Code\BaseWorldPackage.unitypackage"
     
    Last edited: Jun 30, 2016
  2. michael_house

    michael_house

    Joined:
    May 24, 2013
    Posts:
    17
    Fixed this with a reinstall.
     
unityunity