OpenAI-Unity icon indicating copy to clipboard operation
OpenAI-Unity copied to clipboard

Import Error in Unity

Open Brndis opened this issue 2 years ago • 10 comments

I cannot import the package into Unity.

Steps to reproduce the behavior:

  1. 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 ()_

  1. I am working with Unity version 2022.3.11f1

  2. 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!

Brndis avatar Nov 13 '23 19:11 Brndis

Update: This might be due to a current Unity Service Incident listet on their incident page under package error as "major incident"

Brndis avatar Nov 13 '23 20:11 Brndis

I am also unable to import the package...

valeriegp avatar Nov 17 '23 16:11 valeriegp

I am also unable to import the package...

donye0001 avatar Mar 11 '24 12:03 donye0001

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

srcnalt avatar Mar 11 '24 14:03 srcnalt

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: image

Thank you in advance! Awesome tutorial series!

ZaidZaim avatar Apr 02 '24 00:04 ZaidZaim

Hi @ZaidZaim, can you make sure it does not have a space at the end of the URL?

srcnalt avatar Apr 02 '24 00:04 srcnalt

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: image

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

ZaidZaim avatar Apr 02 '24 00:04 ZaidZaim

Hi @ZaidZaim, it seems like OpenAI side error. Can you try using VPN? APIs are blocked in some countries, it might be the reason.

srcnalt avatar Apr 02 '24 10:04 srcnalt

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

ZaidZaim avatar Apr 02 '24 10:04 ZaidZaim

hey @srcnalt

I am using actually the API for personal use - I were surprized when I saw it's actually paid: image

Am I on a right track?

Best Wishes Zaid

ZaidZaim avatar Apr 02 '24 11:04 ZaidZaim