Job was exited because of error in module pyparsing

Open
#374 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
python, tensorflow

Research direction

Start with requirements.txt and the attached job logs, focusing on the missing pyparsing.downcaseTokens error from httplib2 during Google API client imports. Reproduce the dependency installation and cloud job startup; done means the job proceeds past initialization without this import error.

Written by the indexing model from the issue text.

Description

I believe this error happened while Tensorflow was preparing itself to run the actual python file.

As a temporary fix downgrading the pyparsing module from current (possibly the latest 3.0.0) worked for me:
use pyparsing==2.4.7 in the requirements.txt

First lines from logs:

E 2021-10-25T17:36:36.045058622Z master-replica-0 AttributeError: module 'pyparsing' has no attribute 'downcaseTokens'
E 2021-10-25T17:36:36.045054622Z master-replica-0     auth_param_name = token.copy().setName("auth-param-name").addParseAction(pp.downcaseTokens)
E 2021-10-25T17:36:36.045051112Z master-replica-0   File "/usr/local/lib/python3.6/dist-packages/httplib2/auth.py", line 20, in <module>
E 2021-10-25T17:36:36.045047843Z master-replica-0     from . import auth
E 2021-10-25T17:36:36.045044283Z master-replica-0   File "/usr/local/lib/python3.6/dist-packages/httplib2/__init__.py", line 52, in <module>
E 2021-10-25T17:36:36.045041016Z master-replica-0     import httplib2
E 2021-10-25T17:36:36.045037449Z master-replica-0   File "/usr/local/lib/python3.6/dist-packages/googleapiclient/discovery.py", line 42, in <module>
  undefined
E 2021-10-25T17:36:36.045034064Z master-replica-0     from googleapiclient import discovery  # pylint: disable=g-import-not-at-top

ml_job_job_id_tf_cloud_train_864f3c68_a9d0_45c3_b47f_86da6da97638__logs__2021-10-25T07-30.csv

Dominant language
Python
Stars
383
Forks
93
Avg merge
1d 3h
Merged PRs (30d)
1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from tensorflow/cloud

All issues in tensorflow/cloud

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.