Skip to content

Import Error in Unity #92

Open
Open

Description

@Brndis

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!

Activity

  1. Brndis commented on Nov 13, 2023

    @Brndis
    Author

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

  2. valeriegp commented on Nov 17, 2023

    @valeriegp

    I am also unable to import the package...

  3. donye0001 commented on Mar 11, 2024

    @donye0001

    I am also unable to import the package...

  4. srcnalt commented on Mar 11, 2024

    @srcnalt
    Owner

    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

  5. ZaidZaim commented on Apr 2, 2024

    @ZaidZaim

    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!

  6. srcnalt commented on Apr 2, 2024

    @srcnalt
    Owner

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

  7. ZaidZaim commented on Apr 2, 2024

    @ZaidZaim

    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

  8. srcnalt commented on Apr 2, 2024

    @srcnalt
    Owner

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

  9. ZaidZaim commented on Apr 2, 2024

    @ZaidZaim

    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

  10. ZaidZaim commented on Apr 2, 2024

    @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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions