-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't add package: string indices must be integers #50
Comments
Does this happen with every release? I'm not seeing this when I try it. |
Yes, every release. They're shown in the left pane, and I checked the unitypackages in my filesystem; they're there. Don't know if it is obvious, but seems to be from Python. I've tested in the sample projects and in the one I'm setting up. Maybe another issue with my Unity version? How could I debug it? |
Can you reproduce this again and then attach PrjLog.txt? Should be in your root folder I think |
The log: Started EditorApi with arguments: D:\Bruno\Documents\Unity5\Projeny\projeny\Projeny.yaml AllMovers windows installRelease 12047 [SharedUnityPackagesDir] 117870 Initializing release source for local folder... Initializing release source for local folder "C:\Users\bruno.schneider\AppData\Roaming\Unity\Asset Store" Initializing release source for local folder... Initializing release source for local folder "C:\Users\bruno.schneider\AppData\Roaming\Unity\Asset Store-5.x" Installing release 'Log Viewer' (version 1.5)... Loading schema at path "D:\Bruno\Documents\Unity5\Projeny\projeny\UnityProjects\AllMovers\ProjenyProject.yaml" Extracting 'Log Viewer.unitypackage'... Extracting unity package at path 'C:\Users\bruno.schneider\AppData\Roaming\Unity\Asset Store-5.x\dreammakersgroup\Scripting\Log Viewer.unitypackage' |
I don't know why it's happening, and the log isn't providing enough info. I assume you are running from exe? If you run from python source directly (as described in installation section), the log would be more helpful |
I've just installed Python and the dependencies needed, and then opened the solution and compiled in Release configuration, and added the bat files path to my Windows path, and when I try to open the Package Manager I get the following error:
|
Did you install the windows extensions for python? You can get them here |
Well, I installed, but it was weird. I first installed Python 3.6 x64, and then tried installing the x64 version of the Extensions, pywin32-220.win-amd64-py3.6.exe, but this installer couldn't find the Python installation and couldn't succeed. Then I tried installing the x86 version of the Extensions, pywin32-220.win32-py3.6.exe, and it succedded. So I have mixed Python 3.6 x64 with x86 extensions, which seems to be no good. I'm going to uninstall everything and install the x86 version of everything to see what I get. |
I could set up Python now. It seems there is a problem with the releases of build 220 of the Extensions. The log now is:
|
Yep that's what I was looking for (a python stack trace). Looks like its failing when expanding |
I have this at home:
And the samples has this:
|
Oh wow. All you need to do is add a space after the 'UnityExePath:' in your custom I've updated it to print out a more useful error for next time |
The YAML parser can't recognize it as a dictionary otherwise apparently |
Man, that's it, we needed some space there. I'm glad we solved it. Nevertheless it was a long path, the documentation of Projeny is very good and useful, and your close support is awesome. I've just tried creating a dependency to a package from a third-party not from Asset Store. This package needs to put files and folders in the root of Assets and Plugins, as if I have added it the Unity way. Using the Package Manager, a folder with the name of the package is created, and the content is added there. For example, the package has a Javascript file that needs to be at Assets/Plugins/Editor. But with Package Manager, it goes to Assets//Plugins/Editor, breaking the reference. Is it an issue with the package? Or maybe a situation that Projeny should know how to override? |
Yes, that is a limitation of the design of Projeny. Everything must be in package folders so that the directory links can work. You can't put files directly underneath Assets or Plugins. In almost all cases though, this works fine. If a third party library assumes an absolute path, then the third party library needs to be changed for it to be compatible with projeny. |
I get the following error as a popup window and at the Editor console when trying to drag&drop a release package to my project packages, in Project Manager: (tested with Unity 5.4.2f2 and different releases and different projects)
The text was updated successfully, but these errors were encountered: