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

Lots of Unable to find package issues while running AZD UP #265

Closed
Rickcau opened this issue Jan 17, 2024 · 2 comments · Fixed by #260
Closed

Lots of Unable to find package issues while running AZD UP #265

Rickcau opened this issue Jan 17, 2024 · 2 comments · Fixed by #260

Comments

@Rickcau
Copy link

Rickcau commented Jan 17, 2024

Please provide us with the following information:

This issue is for a: (mark with an x)

- [X] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

  1. Install Powershell version 7+
  2. Clone the Repo, I used VS Community edition to clone but you use the commands in the doc
  3. Launch Powershell version 7+ as administrator
  4. Make sure Docker Desktop is running as administrator
  5. CD into the directory you use to clone the repo
  6. Run azd auth login and select the account to log into Azure with
  7. Run azd env new azure-search-openai-demo-csharp
  8. Run azd up

Any log messages given by the failure

(x) Failed: Packaging service function
ERROR: failed packaging service 'function': failing invoking action 'package', dotnet publish on project 'C:\Users\rickcau.NORTHAMERICA\OneDrive - Microsoft\Documents\GitHub_Repro\ai-rag-blazor\app\functions\EmbedFunctions\EmbedFunctions.csproj' failed: exit code: 1, stdout: MSBuild version 17.8.3+195e7f5a3 for .NET
Determining projects to restore...
C:\Users\rickcau.NORTHAMERICA\OneDrive - Microsoft\Documents\GitHub_Repro\ai-rag-blazor\app\functions\EmbedFunctions\EmbedFunctions.csproj : error NU1101: Unable to find package Azure.AI.FormRecognizer. No packages exist with this id in source(s): C:\Program Files\dotnet\library-packs, Microsoft Visual Studio Offline Packages
C:\Users\rickcau.NORTHAMERICA\OneDrive - Microsoft\Documents\GitHub_Repro\ai-rag-blazor\app\functions\EmbedFunctions\EmbedFunctions.csproj : error NU1101: Unable to find package Azure.Search.Documents. No packages exist with this id in source(s): C:\Program Files\dotnet\library-packs, Microsoft Visual Studio Offline Packages
C:\Users\rickcau.NORTHAMERICA\OneDrive - Microsoft\Documents\GitHub_Repro\ai-rag-blazor\app\functions\EmbedFunctions\EmbedFunctions.csproj : error NU1101: Unable to find package Azure.Storage.Blobs. No packages exist with this id in source(s): C:\Program Files\dotnet\library-packs, Microsoft Visual Studio Offline Packages
C:\Users\rickcau.NORTHAMERICA\OneDrive - Microsoft\Documents\GitHub_Repro\ai-rag-blazor\app\functions\EmbedFunctions\EmbedFunctions.csproj : error NU1101: Unable to find package Azure.AI.OpenAI. No packages exist with this id in source(s): C:\Program Files\dotnet\library-packs, Microsoft Visual Studio Offline Packages
C:\Users\rickcau.NORTHAMERICA\OneDrive - Microsoft\Documents\GitHub_Repro\ai-rag-blazor\app\functions\EmbedFunctions\EmbedFunctions.csproj : error NU1101: Unable to find package Azure.Storage.Files.Shares. No packages exist with this id in source(s): C:\Program Files\dotnet\library-packs, Microsoft Visual Studio Offline Packages
C:\Users\rickcau.NORTHAMERICA\OneDrive - Microsoft\Documents\GitHub_Repro\ai-rag-blazor\app\functions\EmbedFunctions\EmbedFunctions.csproj : error NU1101: Unable to find package Azure.Storage.Queues. No packages exist with this id in source(s): C:\Program Files\dotnet\library-packs, Microsoft Visual Studio Offline Packages
C:\Users\rickcau.NORTHAMERICA\OneDrive - Microsoft\Documents\GitHub_Repro\ai-rag-blazor\app\functions\EmbedFunctions\EmbedFunctions.csproj : error NU1101: Unable to find package Microsoft.Azure.Functions.Worker.Extensions.Storage. No packages exist with this id in source(s): C:\Program Files\dotnet\library-packs, Microsoft Visual Studio Offline Packages
C:\Users\rickcau.NORTHAMERICA\OneDrive - Microsoft\Documents\GitHub_Repro\ai-rag-blazor\app\functions\EmbedFunctions\EmbedFunctions.csproj : error NU1101: Unable to find package Microsoft.Azure.Functions.Worker.Sdk. No packages exist with this id in source(s): C:\Program Files\dotnet\library-packs, Microsoft Visual Studio Offline Packages
C:\Users\rickcau.NORTHAMERICA\OneDrive - Microsoft\Documents\GitHub_Repro\ai-rag-blazor\app\functions\EmbedFunctions\EmbedFunctions.csproj : error NU1101: Unable to find package Microsoft.Azure.Functions.Worker. No packages exist with this id in source(s): C:\Program Files\dotnet\library-packs, Microsoft Visual Studio Offline Packages
C:\Users\rickcau.NORTHAMERICA\OneDrive - Microsoft\Documents\GitHub_Repro\ai-rag-blazor\app\functions\EmbedFunctions\EmbedFunctions.csproj : error NU1101: Unable to find package Microsoft.Extensions.Azure. No packages exist with this id in source(s): C:\Program Files\dotnet\library-packs, Microsoft Visual Studio Offline Packages
C:\Users\rickcau.NORTHAMERICA\OneDrive - Microsoft\Documents\GitHub_Repro\ai-rag-blazor\app\functions\EmbedFunctions\EmbedFunctions.csproj : error NU1101: Unable to find package Microsoft.Extensions.Configuration.UserSecrets. No packages exist with this id in source(s): C:\Program Files\dotnet\library-packs, Microsoft Visual Studio Offline Packages
C:\Users\rickcau.NORTHAMERICA\OneDrive - Microsoft\Documents\GitHub_Repro\ai-rag-blazor\app\functions\EmbedFunctions\EmbedFunctions.csproj : error NU1101: Unable to find package Pinecone.NET. No packages exist with this id in source(s): C:\Program Files\dotnet\library-packs, Microsoft Visual Studio Offline Packages
Restored C:\Users\rickcau.NORTHAMERICA\OneDrive - Microsoft\Documents\GitHub_Repro\ai-rag-blazor\app\shared\Shared\Shared.csproj (in 122 ms).
Failed to restore C:\Users\rickcau.NORTHAMERICA\OneDrive - Microsoft\Documents\GitHub_Repro\ai-rag-blazor\app\functions\EmbedFunctions\EmbedFunctions.csproj (in 158 ms).
, stderr:

Expected/desired behavior

I expect the azd up command to deploy the solution without error

OS and Version?

Window 11

Versions

latest version

Mention any other details that might be useful

Docker Desktop version 4.19, it's working fine as I have two containers running. I am using WSL 2 with Ubuntu

We really need a super simple way to deploy this using both Docker and without. Our customers need the ability to standup these solutions as quickly as possible and honestly, leveraging containers often gets in the way of our customers being able to quick experiment with AI tech and the different patterns that this solution demonstrates.

@LittleLittleCloud
Copy link
Collaborator

LittleLittleCloud commented Feb 13, 2024

@Rickcau It seems that nuget.org official feed is not available in your configuration, maybe consider adding that?

You can add a feed either in Nuget.Config or using the following command

dotnet nuget add  source -n nuget https://api.nuget.org/v3/index.json

Update

Resolved in #260 which add local nuget.config back

LittleLittleCloud added a commit that referenced this issue Feb 19, 2024
## Purpose
<!-- Describe the intention of the changes being proposed. What problem
does it solve or functionality does it add? -->
* ...

Fixes #257 
Fixes #265 
Fixes #283 

This PR adds a toggle to enable gpt-4v and its related resource
deployment and serve as predecessor of ongoing gpt-4v support

To enable gpt-4v related resource during provision
```
azd env set USE_GPT4V true // default to false
```



## Does this introduce a breaking change?
<!-- Mark one with an "x". -->
```
[ ] Yes
[X] No
```

## Pull Request Type
What kind of change does this Pull Request introduce?

<!-- Please check the one that applies to this PR using "x". -->
```
[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[ ] Other... Please describe:
```

## How to Test
*  Get the code

```
git clone [repo-address]
cd [repo-name]
git checkout [branch-name]
npm install
```

* Test the code
<!-- Add steps to run the tests suite and/or manually test -->
```
```

## What to Check
Verify that the following are valid
* ...

## Other Information
<!-- Add any other helpful information that may be needed here. -->
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

Successfully merging a pull request may close this issue.

3 participants
@LittleLittleCloud @Rickcau and others