microsoft / BotFramework-FunctionalTests

Functional Tests, run nightly, to drive quality of the Microsoft Bot Framework
MIT License
31 stars 27 forks source link

Fix Docker container failures for Python Waterfall Skill Bot deploy #602

Closed BruceHaley closed 2 years ago

BruceHaley commented 2 years ago

Fixes #minor

The Python Waterfall Skill Bot Docker container fails to start with the error: "301 Server Unavailable. docker container could not be started: bffnwaterfallskillbotpython-313043_0_34ae394b." Docker log shows: "ImportError: cannot import name 'UNICODE_EMOJI' from 'emoji' (/app/venv/lib/python3.10/site-packages/emoji/init.py)"

The container is deployed by pipeline "02.A. Deploy skill bots" without a reported error.

The error bubbles up when "02.B. Run skill test scenarios (daily)" runs. It fails with: "Error invoking the skill...(status is 503)." (Service unavailable)

Cause

emoji versions < 2.0.0 contain UNICODE_EMOJI, but >= 2.0.0 only contain UNICODE_DATA. botbuilder-dialogs 4.14.0 depends on:

An external change in dependencies caused emoji>=2.0.0 to be used instead, resulting in the unresolved reference.

Fix

Force emoji dependency to <2.0.0

Related emoji issue in BotBuilder-Samples: https://github.com/microsoft/botbuilder-python/issues/1958