BotBuilder-Samples icon indicating copy to clipboard operation
BotBuilder-Samples copied to clipboard

Active learning sample, doesn't build successfully

Open saikumaru opened this issue 7 years ago • 12 comments

Sample information

  1. Sample type: experimental
  2. Sample language: dotnetcore
  3. Sample name: qnamaker-activelearning

Describe the bug

Give a clear and concise description of what the bug is.

When the below line is un-commented, // IStorage dataStore = new Microsoft.Bot.Builder.Azure.AzureBlobStorage(blobStorageConfig.ConnectionString, storageContainer);

and when the package is installed, and namespace included Microsoft.Bot.Builder.Azure

we get the error

Severity Code Description Project File Line Suppression State Error CS0234 The type or namespace name 'Azure' does not exist in the namespace 'Microsoft.Bot.Builder' (are you missing an assembly reference?) qnamaker-activelearning-bot C:\Bots\BotBuilder-Samples-master\experimental\qnamaker-activelearning\csharp_dotnetcore\Startup.cs 11 Active

To Reproduce

Steps to reproduce the behavior:

  1. open Startup.CS
  2. uncomment lines as per the guidelines under "// For production bots use the Azure Blob or"
  3. Install nuget package for "Microsoft.Bot.Builder.Azure"
  4. Build the solution and see the error

Expected behavior

Build clean without errors

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context

Add any other context about the problem here.

[bug]

saikumaru avatar Jul 06 '19 19:07 saikumaru

It looks like right now when you try to add package Microsoft.Bot.Builder.Azure the most recently published version tries to get installed (4.4.5)

However if you look at the .csproj file, you can see that the sample is targeting packages for version 4.4.3, specifically Microsoft.Bot.Builder, which Microsoft.Bot.Builder.Azure depends on.

Installing Microsoft.Bot.Builder.Azure 4.4.3 with Nuget Package Manager however allowed the bot to run image

I'll ask and see what we want to do regarding what packages we should reference in the samples, as v4.5 should be releasing today

Zerryth avatar Jul 10 '19 21:07 Zerryth

Also, this experimental sample still uses the .bot file, which the team has backed off using in favor of language-specific configs that are already built-in (e.g. appsettings.json)

Zerryth avatar Jul 10 '19 21:07 Zerryth

Per Steven Gum, I can go ahead and bump the packages that the experimental samples are targeting, once we make the 4.5 samples update switch

For now to workaround, just specify version numbers manually when including packages

Zerryth avatar Jul 10 '19 21:07 Zerryth

Thank you so much for the quick reply. I will do the same way. I should have checked the dependancy version before posting, beginners rush.

saikumaru avatar Jul 12 '19 01:07 saikumaru

(Just a small side comment: removing this from my support queue, as Scott has assigned Rohan onto this 👍 )

Zerryth avatar Jul 18 '19 17:07 Zerryth

@trojenguri from our team is working with QnA samples at the moment. Please look into it.

rokulka avatar Jul 19 '19 06:07 rokulka

hi, please can you let me know if there is a probable date by when you will have this fully migrated to look like the other V4 sample bots?

saikumaru avatar Aug 29 '19 12:08 saikumaru

We have migrated active learning samples, this is the link https://github.com/microsoft/BotBuilder-Samples/tree/master/samples/csharp_dotnetcore/48.qnamaker-active-learning-bot

gurvsing avatar Aug 29 '19 12:08 gurvsing

@Zerryth Can we close this issue now?

gurvsing avatar Aug 29 '19 12:08 gurvsing

Thank you, I had seen that. But I also do observe its still not consistent with other examples.

Same mentioned here

...can check out the new active learning sample because **it hasn't been updated** to match the pattern of the other samples yet.

https://stackoverflow.com/questions/57658154/is-the-best-practice-alwayas-to-start-a-dialog-in-bot/57664701#57664701

saikumaru avatar Aug 29 '19 12:08 saikumaru

Main architecture is consistent with the overall sample but the Dialog path, we kept as it is or we did minimal changes. We would be creating one more dialog very soon, which would include Multi-turn + Active learning in consistent with latest samples.

gurvsing avatar Aug 29 '19 12:08 gurvsing

imo yeah, we can close this issue if the Active Learning sample in master builds successfully :+1:

...I'm assuming yes it does, since someone on the team must've reviewed it recently if it just merged in

Please reopen if sample 48 is not building

Zerryth avatar Aug 29 '19 16:08 Zerryth