Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    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.