GoogleCloudPlatform / cloud-profiler-python

Stackdriver Profiler Python agent is a tool that continuously gathers CPU usage information from Python applications
Apache License 2.0
28 stars 23 forks source link

Please update dependency on google-api-python-client #87

Closed munkien closed 3 years ago

munkien commented 3 years ago

Hi

I have a problem where I use google-api-python-client V2 which this library does not yet support :-) Please update it so it can be used with V2 of google-api-python client

` Updating dependencies Resolving dependencies... (0.0s)

SolverProblemError

Because google-cloud-profiler (3.0.3) depends on google-api-python-client (<1.12.0 || >1.12.0,<2) and no versions of google-cloud-profiler match >3.0.3,<4.0.0, google-cloud-profiler (>=3.0.3,<4.0.0) requires google-api-python-client (<1.12.0 || >1.12.0,<2). So, because project-name depends on both google-api-python-client (^2.2.0) and google-cloud-profiler (^3.0.3), version solving failed. `

wyk9787 commented 3 years ago

Thanks for reporting the issue! We are aware of this dependency version restriction. The reason for not using client library V2 was an incompatibility issue: https://github.com/googleapis/google-api-python-client/issues/1225. Now that the issue is resolved by https://github.com/googleapis/google-api-python-client/pull/1261, we should be able to get a new version of the Cloud Profiler out to use client library V2.1.0+.

I will update here when a new version is released. Ideally before end of the week, if not, definitely next week. Thanks for your patience!

munkien commented 3 years ago

Hey Garrett! Thanks for the fast reply. Yes, thats perfect!

Have a great week :-)

wyk9787 commented 3 years ago

V3.0.4 was released: https://pypi.org/project/google-cloud-profiler/3.0.4/.

You should now be able to use google-api-python-client V2.1.0+.

munkien commented 3 years ago

Thanks a lot!