Import Error in Unity
I cannot import the package into Unity.
Steps to reproduce the behavior:
- When importing the package in Unity I get the Error:
_[Package Manager Window] Error adding package: https://github.com/srcnalt/OpenAI-Unity.git. Unable to add package [https://github.com/srcnalt/OpenAI-Unity.git]: Error when executing git command. fatal: not in a git directory
UnityEditor.EditorApplication:Internal_CallUpdateFunctions ()_
-
I am working with Unity version 2022.3.11f1
-
I already get an error message in Unity when opening the package manager:
[Package Manager Window] Error searching for packages. An error occurred, likely on the server. Please try again later. Unable to perform online search: Request [GET https://packages.unity.com/-/api/search?host=editor&provider=enterprise] failed with status code [502] UnityEditor.EditorApplication:Internal_CallUpdateFunctions ()
Not sure wether it has anything to do with the error importing the package here.
I'm a complete amateur using Unity so any help is appreciated!
Update: This might be due to a current Unity Service Incident listet on their incident page under package error as "major incident"
I am also unable to import the package...
I am also unable to import the package...
You need to have git installed, unfortunately Unity does not install it right off the bat. Installing any package via git URL will require it. Make sure to restart your PC after git installation.
https://git-scm.com
Hey @srcnalt
I am facing the same issue - I have already git installed and were able to import other packages via UPM but not this one. I already have git installed:
Thank you in advance! Awesome tutorial series!
Hi @ZaidZaim, can you make sure it does not have a space at the end of the URL?
Hi @srcnalt
Amazing, works thank you for the advice!
Now I ra n into another challenge - I am playgaround with your ChatGPT Sample and added there my API Key. When run the scene and chat with the bot I get this error:
I did not change anything in the code beside adding my key. Is there server issues from OpenAP? Did you had this problem before?
Thank you so much! Zaid
Hi @ZaidZaim, it seems like OpenAI side error. Can you try using VPN? APIs are blocked in some countries, it might be the reason.
Hi @srcnalt
I am not sure I can run VPN.
Does it help I turn off firewalls?
Do you think is there any work around?
Thank you
hey @srcnalt
I am using actually the API for personal use - I were surprized when I saw it's actually paid:
Am I on a right track?
Best Wishes Zaid