Open avy-dunamu opened 1 month ago
Hello @avy-dunamu, Thank you for creating this issue and we will look into it :)
Hello @avy-dunamu👋, From the error message, it seems like the 'six' Python module is not being found during the test run. There could be a couple of reasons for this:
Here are a few things you can try:
Ensure that the 'six' module is installed in your Python environment. You can do so by adding a step in your workflow file to install 'six' before running the tests, using pip:
name: Install dependencies run: pip install six
If 'six' is already installed, ensure that your tests are running in the correct Python environment where 'six' is installed.
if 'six' is not required for your project, check if any of your dependencies are outdated and need to be updated, as they might be trying to import 'six' unnecessarily.
Please review these aspects on your self-hosted runner. If the issue persists, could you please provide a link to a minimal repository that reproduces the problem? A specific example would greatly assist us in investigating this issue more effectively. Looking forward to your response :)
@priyagupta108, thank you for your kind reply! I already tried installing 'six' before running the test, but the error occurred again. The issue seems to be with the 'ddtrace' library, which I need to use.
Interestingly, the same workflow succeeded in a Python 3.11 environment It also worked in a previous 3.10 environment, so I believe something might be broken in the 3.10.14-9004012336 version of Python.
@avy-dunamu👋, Thank you for your response. I've tried to reproduce the issue but was unsuccessful. Everything appears to be functioning as expected with the new Python 3.10.14 package.
As you've mentioned that the issue seems to be with the ddtrace
library, it's possible that the problem lies within the ddtrace
package. It appears to be trying to import 'six'
, which might be causing the problem. I would suggest trying to install/upgrade the ddtrace
package, as this could potentially resolve the problem.
I hope this helps! If you continue to encounter issue, could you kindly share a link to a minimal repository that replicates the problem?
Description: There were no issues when using the python setup action for this version "https://github.com/actions/python-versions/releases/download/3.10.14-8361245787/python-3.10.14-linux-22.04-x64.tar.gz", but after switching to this version "https://github.com/actions/python-versions/releases/download/3.10.14-9004012336/python-3.10.14-linux-22.04-x64.tar.gz", the following error is occurring:
"ModuleNotFoundError: No module named 'six'"
Action version: 3.10.14-9004012336/python-3.10.14-linux-22.04-x64.tar.gz
Platform:
Runner type:
Tools version:
3.10
Repro steps:
Expected behavior: pass the test Actual behavior: fail the test with below error