census-instrumentation / opencensus-python

A stats collection and distributed tracing framework
Apache License 2.0
669 stars 250 forks source link

ModuleNotFoundError: No module named 'six' #1219

Closed mosneji closed 1 year ago

mosneji commented 1 year ago

Describe your environment. Python 3.10 opencensus==0.11.2

Steps to reproduce. pip install opencensus==0.11.2 and try to do: from opencensus.common.schedule import Queue, QueueEvent, QueueExitEvent

What is the expected behavior? Modules get imported

What is the actual behavior? Error message: "ModuleNotFoundError: No module named 'six'"

Additional context. "opencensus" is using "six" and "google-api-core" "google-api-core" is using "google-auth" "google-auth" is using "six" in the versions previous to "2.23.0" (it was released 2 days ago) So now if we try to do pip install opencensus==0.11.2, google-auth-2.23.0 will get installed and "six" won't which would break "opencensus"

I guess "opencensus" should add "six" as a dependency as it is being used in its source code.