semantic-kernel icon indicating copy to clipboard operation
semantic-kernel copied to clipboard

Python: Bug: Semantic-kernel [1.31.0] import errors

Open AbzyS1 opened this issue 9 months ago • 1 comments

Describe the bug I have successfully upgraded my semnatic kernel version to 1.31.0, and when trying to import GroupOrchestration agent i get an ImportError.

To Reproduce Steps to reproduce the behavior: try to reproduce the following guide: https://github.com/microsoft/semantic-kernel/blob/main/python/samples/getting_started_with_agents/multi_agent_orchestration/step3a_group_chat_human_in_the_loop.py

Import errors before I can run the file.

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Platform

  • Language: Python
  • AI model: GPT-4o
  • IDE: VS Code
  • OS: Linux

AbzyS1 avatar May 21 '25 18:05 AbzyS1

Hi @AbzyS1, can you please verify that you are indeed running the correct Python interpreter for the installed SK 1.31.0 package? I just created a fresh virtual environment, installed SK 1.31.0, and am able to run the step3a sample, with no import errors.

moonbox3 avatar May 21 '25 23:05 moonbox3

Hi @moonbox3, i've had a look today, yes it was SK 1.31.0, the issue was i was using pyhton version 3.10. I switched my pyhton version to 3.12 and now it is working as expected.

AbzyS1 avatar May 22 '25 09:05 AbzyS1

Hi @AbzyS1, thanks for letting us know. That's a little worrisome -- we support Py 3.10+. Glad to hear you're unblocked, though. Please let us know if you have any other questions either on this issue or in a new one. I will close this.

moonbox3 avatar May 22 '25 10:05 moonbox3