SquareBeam / unity-aws-sdk

2 stars 0 forks source link

Errors importing in 2022.3 #8

Closed jonathanhooker closed 7 months ago

jonathanhooker commented 1 year ago

I just purchased the AWS SDK asset and it seems to be having dependency issues. I created a blank 3d Core (URP) project in 2022.3.0f1 and then imported your asset. It immediately had a lot of errors over the newtonsoft json package. I added "com.unity.nuget.newtonsoft-json": "3.2.0" to my manifest.json which has removed those errors but I still get the following error: Failed to find entry-points:

Mono.Cecil.AssemblyResolutionException: Failed to resolve assembly: 'SquareBeam.Tests.AWS.Lambda, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' ---> System.Exception: Failed to resolve assembly 'SquareBeam.Tests.AWS.Lambda, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' in directories: /Applications/Unity/Hub/Editor/2022.3.0f1/Unity.app/Contents/MonoBleedingEdge/lib/mono/unityjit-macos
/Users/jonathanhooker/Documents/Projects/internal/unity/AWSTesting/Library/PackageCache/com.unity.burst@1.8.4
/Users/jonathanhooker/Documents/Projects/internal/unity/AWSTesting/Library/PackageCache/com.unity.burst@1.8.4/Unity.Burst.CodeGen
/Users/jonathanhooker/Documents/Projects/internal/unity/AWSTesting/Library/PackageCache/com.unity.visualscripting@1.8.0/Editor/VisualScripting.Core/Dependencies/DotNetZip
/Users/jonathanhooker/Documents/Projects/internal/unity/AWSTesting/Library/PackageCache/com.unity.ext.nunit@1.0.6/net35/unity-custom
/Users/jonathanhooker/Documents/Projects/internal/unity/AWSTesting/Library/PackageCache/com.unity.visualscripting@1.8.0/Editor/VisualScripting.Core/EditorAssetResources
/Applications/Unity/Hub/Editor/2022.3.0f1/Unity.app/Contents/Managed
/Applications/Unity/Hub/Editor/2022.3.0f1/PlaybackEngines/iOSSupport
/Users/jonathanhooker/Documents/Projects/internal/unity/AWSTesting/Library/PackageCache/com.unity.collab-proxy@2.0.4/Lib/Editor/PlasticSCM
/Applications/Unity/Hub/Editor/2022.3.0f1/Unity.app/Contents/PlaybackEngines/MacStandaloneSupport
/Users/jonathanhooker/Documents/Projects/internal/unity/AWSTesting/Library/PackageCache/com.unity.visualscripting@1.8.0/Runtime/VisualScripting.Flow/Dependencies/NCalc
/Applications/Unity/Hub/Editor/2022.3.0f1/PlaybackEngines/AppleTVSupport
/Users/jonathanhooker/Documents/Projects/internal/unity/AWSTesting/Library/PackageCache/com.unity.visualscripting@1.8.0/Editor/VisualScripting.Core/Dependencies/YamlDotNet
/Applications/Unity/Hub/Editor/2022.3.0f1/Unity.app/Contents/Managed/UnityEngine
/Users/jonathanhooker/Documents/Projects/internal/unity/AWSTesting/Library/ScriptAssemblies ---> Mono.Cecil.AssemblyResolutionException: Failed to resolve assembly: 'SquareBeam.Tests.AWS.Lambda, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'
  at Mono.Cecil.BaseAssemblyResolver.Resolve (Mono.Cecil.AssemblyNameReference name, Mono.Cecil.ReaderParameters parameters) [0x00105] in <853812ae52c341daaef3c62ecdb86b32>:0
   at zzzUnity.Burst.CodeGen.AssemblyResolver.Resolve (Mono.Cecil.AssemblyNameReference name) [0x00013] in <e897daa8366b4183b121ad602adf2292>:0
    --- End of inner exception stack trace ---
  at zzzUnity.Burst.CodeGen.AssemblyResolver.Resolve (Mono.Cecil.AssemblyNameReference name) [0x00060] in <e897daa8366b4183b121ad602adf2292>:0
   at Burst.Compiler.IL.AssemblyLoader.Resolve (Mono.Cecil.AssemblyNameReference name) [0x0007e] in <e897daa8366b4183b121ad602adf2292>:0
   at Burst.Compiler.IL.Server.EntryPointMethodFinder.FindEntryPoints (System.String[] rootAssemblyNames, Burst.Compiler.IL.Hashing.CacheRuntime.HashCacheAssemblyStore assemblyStore, Burst.Compiler.IL.AssemblyLoader assemblyLoader, Burst.Compiler.IL.NativeCompilerOptions options, Burst.Compiler.IL.Server.ProfileDelegate profileCallback, System.Boolean includeRootAssemblyReferences, System.Boolean splitTargets) [0x00055] in <e897daa8366b4183b121ad602adf2292>:0
   at Burst.Compiler.IL.Server.FindMethodsJob.Execute (Burst.Compiler.IL.Server.CompilerServerJobExecutionContext context) [0x0011e] in <e897daa8366b4183b121ad602adf2292>:0 

In addition to that I have about 30 warnings in my console. They are all about UnityWebRequest errors.

Assets/AWS/Services/EC2/EC2API.cs(99,17): warning CS0618: 'UnityWebRequest.isNetworkError' is obsolete: 'UnityWebRequest.isNetworkError is deprecated. Use (UnityWebRequest.result == UnityWebRequest.Result.ConnectionError) instead.'
jonathanhooker commented 1 year ago

I just deleted the asset folder from my project and reimported to see if that would help. The error seems to be gone now though the warnings remain.

SquareBeam commented 1 year ago

Hi, thank you for purchasing, could you please try to import in empty new project. From logs I see excecptions that are related to another packages

On Wed, 14 Jun 2023, 21:08 Jonathan, @.***> wrote:

I just purchased the AWS SDK asset and it seems to be having dependency issues. I created a blank 3d Core (URP) project in 2022.3.0f1 and then imported your asset. It immediately had a lot of errors over the newtonsoft json package. I added "com.unity.nuget.newtonsoft-json": "3.2.0" to my manifest.json which has removed those errors but I still get the following error: Failed to find entry-points:

Mono.Cecil.AssemblyResolutionException: Failed to resolve assembly: 'SquareBeam.Tests.AWS.Lambda, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' ---> System.Exception: Failed to resolve assembly 'SquareBeam.Tests.AWS.Lambda, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' in directories: /Applications/Unity/Hub/Editor/2022.3.0f1/Unity.app/Contents/MonoBleedingEdge/lib/mono/unityjit-macos @. @./Unity.Burst.CodeGen @./Editor/VisualScripting.Core/Dependencies/DotNetZip @./net35/unity-custom @./Editor/VisualScripting.Core/EditorAssetResources /Applications/Unity/Hub/Editor/2022.3.0f1/Unity.app/Contents/Managed /Applications/Unity/Hub/Editor/2022.3.0f1/PlaybackEngines/iOSSupport @./Lib/Editor/PlasticSCM /Applications/Unity/Hub/Editor/2022.3.0f1/Unity.app/Contents/PlaybackEngines/MacStandaloneSupport @./Runtime/VisualScripting.Flow/Dependencies/NCalc /Applications/Unity/Hub/Editor/2022.3.0f1/PlaybackEngines/AppleTVSupport @./Editor/VisualScripting.Core/Dependencies/YamlDotNet /Applications/Unity/Hub/Editor/2022.3.0f1/Unity.app/Contents/Managed/UnityEngine /Users/jonathanhooker/Documents/Projects/internal/unity/AWSTesting/Library/ScriptAssemblies ---> Mono.Cecil.AssemblyResolutionException: Failed to resolve assembly: 'SquareBeam.Tests.AWS.Lambda, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' at Mono.Cecil.BaseAssemblyResolver.Resolve (Mono.Cecil.AssemblyNameReference name, Mono.Cecil.ReaderParameters parameters) [0x00105] in <853812ae52c341daaef3c62ecdb86b32>:0 at zzzUnity.Burst.CodeGen.AssemblyResolver.Resolve (Mono.Cecil.AssemblyNameReference name) [0x00013] in :0 --- End of inner exception stack trace --- at zzzUnity.Burst.CodeGen.AssemblyResolver.Resolve (Mono.Cecil.AssemblyNameReference name) [0x00060] in :0 at Burst.Compiler.IL.AssemblyLoader.Resolve (Mono.Cecil.AssemblyNameReference name) [0x0007e] in :0 at Burst.Compiler.IL.Server.EntryPointMethodFinder.FindEntryPoints (System.String[] rootAssemblyNames, Burst.Compiler.IL.Hashing.CacheRuntime.HashCacheAssemblyStore assemblyStore, Burst.Compiler.IL.AssemblyLoader assemblyLoader, Burst.Compiler.IL.NativeCompilerOptions options, Burst.Compiler.IL.Server.ProfileDelegate profileCallback, System.Boolean includeRootAssemblyReferences, System.Boolean splitTargets) [0x00055] in :0 at Burst.Compiler.IL.Server.FindMethodsJob.Execute (Burst.Compiler.IL.Server.CompilerServerJobExecutionContext context) [0x0011e] in :0

In addition to that I have about 30 warnings in my console. They are all about UnityWebRequest errors.

Assets/AWS/Services/EC2/EC2API.cs(99,17): warning CS0618: 'UnityWebRequest.isNetworkError' is obsolete: 'UnityWebRequest.isNetworkError is deprecated. Use (UnityWebRequest.result == UnityWebRequest.Result.ConnectionError) instead.'

— Reply to this email directly, view it on GitHub https://github.com/SquareBeam/unity-aws-sdk/issues/8, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATAMZYCUUWBJRKMZXJRPA4TXLID4LANCNFSM6AAAAAAZGZVDO4 . You are receiving this because you are subscribed to this thread.Message ID: @.***>