Unhandled depedency update: pyparsing(3.0.1)
See original GitHub issueThanks for stopping by to let us know something could be better!
PLEASE READ: If you have a support contract with Google, please create an issue in the support console instead of filing on GitHub. This will ensure a timely response.
Please run down the following list and make sure youβve tried the usual βquick fixesβ:
- Search the issues already opened: https://github.com/googleapis/google-api-python-client/issues
- Search StackOverflow: https://stackoverflow.com/questions/tagged/google-cloud-platform+python
If you are still having issues, please be sure to include as much information as possible:
Environment details
- OS type and version: Linux
- Python version: 3.7.4
- pip version: 19.3
- google-api-python-client==1.12.2
Steps to reproduce
- Build app
Code example
File "/usr/local/lib/python3.7/site-packages/httplib2/auth.py", line 20, in <module>
freelance_app | auth_param_name = token.copy().setName("auth-param-name").addParseAction(pp.downcaseTokens)
freelance_app | AttributeError: module 'pyparsing' has no attribute 'downcaseTokens'
Stack trace
Traceback (most recent call last):
freelance_app | File "./manage.py", line 21, in <module>
freelance_app | main()
freelance_app | File "./manage.py", line 17, in main
freelance_app | execute_from_command_line(sys.argv)
freelance_app | File "/usr/local/lib/python3.7/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line
freelance_app | utility.execute()
freelance_app | File "/usr/local/lib/python3.7/site-packages/django/core/management/__init__.py", line 377, in execute
freelance_app | django.setup()
freelance_app | File "/usr/local/lib/python3.7/site-packages/django/__init__.py", line 24, in setup
freelance_app | apps.populate(settings.INSTALLED_APPS)
freelance_app | File "/usr/local/lib/python3.7/site-packages/django/apps/registry.py", line 122, in populate
freelance_app | app_config.ready()
freelance_app | File "/app/integrations/freshchat/apps.py", line 11, in ready
freelance_app | import integrations.freshchat.receivers
freelance_app | File "/app/integrations/freshchat/receivers.py", line 14, in <module>
freelance_app | from integrations.freshchat import tasks
freelance_app | File "/app/integrations/freshchat/tasks.py", line 11, in <module>
freelance_app | from integrations.freshchat import public
freelance_app | File "/app/integrations/freshchat/public.py", line 11, in <module>
freelance_app | from resources.meetings import services as meeting_services
freelance_app | File "/app/resources/meetings/services.py", line 12, in <module>
freelance_app | from integrations.google import public
freelance_app | File "/app/integrations/google/public.py", line 1, in <module>
freelance_app | from integrations.google import calendar_services
freelance_app | File "/app/integrations/google/calendar_services.py", line 4, in <module>
freelance_app | from googleapiclient.discovery import build
freelance_app | File "/usr/local/lib/python3.7/site-packages/googleapiclient/discovery.py", line 48, in <module>
freelance_app | import httplib2
freelance_app | File "/usr/local/lib/python3.7/site-packages/httplib2/__init__.py", line 52, in <module>
freelance_app | from . import auth
freelance_app | File "/usr/local/lib/python3.7/site-packages/httplib2/auth.py", line 20, in <module>
freelance_app | auth_param_name = token.copy().setName("auth-param-name").addParseAction(pp.downcaseTokens)
freelance_app | AttributeError: module 'pyparsing' has no attribute 'downcaseTokens'
freelance_app exited with code 1
Making sure to follow these steps will guarantee the quickest resolution possible.
Thanks!
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:11 (5 by maintainers)
Top Results From Across the Web
Support pyparsing v3 (AttributeError downcaseTokens) #207
Unhandled depedency update: pyparsing(3.0.1) ... Old pip dependency resolver allowed installation of conflicting requirements.
Read more >Google cloud platform app deploy failure due to pyparsing
I tried installing different versions of pyparsing to resolve the issue but none worked with all other dependencies. Are recent updates toΒ ...
Read more >Bug #1951127 βBitrot with dependency pyparsingβ
Pyparsing package was updated, need to change dependency version. Revision historyΒ ...
Read more >pyparsing Β· PyPI
The pyparsing module provides a library of classes that client code uses to construct the grammar directly in Python code. [Since first writing...
Read more >Python 3.10 update needs possible rebuild packages like ...
Just want to make a quick announcement that a new python package release was just pushed to Arch stable, and it's going from...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
To be explicit, if youβre experiencing this issue, youβve likely wound up with
pyparsing>=3.0.0
, which is not compatible withhttplib2
(see https://github.com/httplib2/httplib2/issues/207).The solution is to install the last version of
pyparsing
that is compatible,pyparsing==2.4.7
@hamza-shafiq Can you share the output of
pip freeze
?@rdzotz Yep we definitely recommend pinning dependencies for build reproducibility. Please also review the 2.0.0 Migration Guide and move to a 2.x version when you are able to. There is a reliability improvement made in the 2.x version.
FWIW I tried installing
google-api-python-client
in a fresh virtualenv and it picks up the correct version ofpyparsing
(2.4.7) automatically.Fixed the issue for me.
Currently checking to confirm if pinned google-api-python-client==1.12.2 is indeed required