You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Starting today, when I import googlecloudprofiler, I get this traceback;
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker
worker.init_process()
File "/usr/local/lib/python3.7/site-packages/gunicorn/workers/base.py", line 129, in init_process
self.load_wsgi()
File "/usr/local/lib/python3.7/site-packages/gunicorn/workers/base.py", line 138, in load_wsgi
self.wsgi = self.app.wsgi()
File "/usr/local/lib/python3.7/site-packages/gunicorn/app/base.py", line 67, in wsgi
self.callable = self.load()
File "/usr/local/lib/python3.7/site-packages/gunicorn/app/wsgiapp.py", line 52, in load
return self.load_wsgiapp()
File "/usr/local/lib/python3.7/site-packages/gunicorn/app/wsgiapp.py", line 41, in load_wsgiapp
return util.import_app(self.app_uri)
File "/usr/local/lib/python3.7/site-packages/gunicorn/util.py", line 350, in import_app
__import__(module)
File "/app/collection/__init__.py", line 16, in <module>
import googlecloudprofiler
File "/usr/local/lib/python3.7/site-packages/googlecloudprofiler/__init__.py", line 19, in <module>
from googlecloudprofiler import client
File "/usr/local/lib/python3.7/site-packages/googlecloudprofiler/client.py", line 29, in <module>
import google_auth_httplib2
File "/usr/local/lib/python3.7/site-packages/google_auth_httplib2.py", line 23, in <module>
import httplib2
File "/usr/local/lib/python3.7/site-packages/httplib2/__init__.py", line 52, in <module>
from . import auth
File "/usr/local/lib/python3.7/site-packages/httplib2/auth.py", line 20, in <module>
auth_param_name = token.copy().setName("auth-param-name").addParseAction(pp.downcaseTokens)
AttributeError: module 'pyparsing' has no attribute 'downcaseTokens'
Thanks for reporting this. Looks like the root cause is being tracked here.
We can possibly add some workaround in cloud-profiler-python while waiting for that to be resolved.
I'm currently occupied with other tasks, but I'll do my best to take a look at this in 1-2 weeks. If your workaround starts breaking badly, please let us know.
I think this is fixed in httplib 0.20.2 (httplib2/httplib2#207 (comment)). I was able to import googlecloudprofiler successfully after installing google-cloud-profiler in a clean virtualenv.
Starting today, when I
import googlecloudprofiler
, I get this traceback;Looks like the latest
pyparsing
release changed the name of these functions:https://pyparsing-docs.readthedocs.io/en/latest/whats_new_in_3_0_0.html#other-discontinued-features
The text was updated successfully, but these errors were encountered: