generative-ai-for-beginners icon indicating copy to clipboard operation
generative-ai-for-beginners copied to clipboard

Fix missing distutils module error during build

Open Wingless-Archangel opened this issue 1 year ago • 3 comments

While trying to spawn the devcontainer in VSCode and Codespace, I encountered an error during the build process related to the missing distutils package for some reason.

After investigating further,~~I discovered that the build tool failed to read the configuration from the .devcontainer/environment.yml file.~~ (after have another look this file is for conda to use but the build doesn't use conda at all) it was using a base Python version higher than 3.10, which is deprecated and no longer includes the distutils package as outlined in PEP-632 . Also, some packages already included in the container image.

This pull request addresses this issue by removing some dependencies instead and add rust compiler to satisfy tiktoken requirement.

Please have a look.

EDIT: change the approach since I couldn't reproduce the build anymore.

Wingless-Archangel avatar Feb 03 '25 14:02 Wingless-Archangel

👋 Thanks for contributing @Wingless-Archangel! We will review the pull request and get back to you soon.

github-actions[bot] avatar Feb 03 '25 14:02 github-actions[bot]

@microsoft-github-policy-service agree

Wingless-Archangel avatar Feb 03 '25 14:02 Wingless-Archangel

Hi @koreyspace,

Is there something wrong with my pull request?

Wingless-Archangel avatar Feb 17 '25 09:02 Wingless-Archangel

Apologies on the delay @Wingless-Archangel , thanks for the contribution. merged!

koreyspace avatar Mar 10 '25 08:03 koreyspace