Skip to content
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

Import Error in Unity #92

Open
Brndis opened this issue Nov 13, 2023 · 10 comments
Open

Import Error in Unity #92

Brndis opened this issue Nov 13, 2023 · 10 comments

Comments

@Brndis
Copy link

Brndis commented Nov 13, 2023

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
Copy link
Author

Brndis commented Nov 13, 2023

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

@valeriegp
Copy link

I am also unable to import the package...

1 similar comment
@donye0001
Copy link

I am also unable to import the package...

@srcnalt
Copy link
Owner

srcnalt commented Mar 11, 2024

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

@ZaidZaim
Copy link

ZaidZaim commented Apr 2, 2024

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!

@srcnalt
Copy link
Owner

srcnalt commented Apr 2, 2024

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

@ZaidZaim
Copy link

ZaidZaim commented Apr 2, 2024

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

@srcnalt
Copy link
Owner

srcnalt commented Apr 2, 2024

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

@ZaidZaim
Copy link

ZaidZaim commented Apr 2, 2024

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
Copy link

ZaidZaim commented Apr 2, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants