-
Notifications
You must be signed in to change notification settings - Fork 307
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERROR: Missing module - cannot import name run (revisit #204) #229
Comments
Duplicate of #211 . The argpase_over_gflags branch is the eventual answer, I just need to spend sometime to finish it. |
This is not totally a duplicate of #211, as I had initially submitted the same workaround for FreeBSD to later discover that it doesn't work for new authentication. Hence the additional switch to using run_flow (which takes 3 args, not just 2 that run() did.) and calling argparser.parse_known_args() to get the args that run_flow wanted and ignore the rest. This patch came in handy when I later did a new setup on a headless server and needed to use ‑‑noauth_local_webserver. Eventually a full switch to using argparse (and parenting argparser)? over gflags would be best...but, I'm already out of my depth.... |
gcalcli requires a dependency on oauth2client <= 1.4.12 to work correctly, as higher versions replaced the run() method with run_flow(). The version of oauth2client in ports is 2.2.0 at the time of writing. Fixes for the issue [1][2][3] have been submitted upstream in multiple cases, although upstream has closed them as duplicates of a refactor issue [4] that is yet to be committed/resolved. This commit commits the proposed change in issue #229 [2]. While I'm here: * Explicitly specify (and limit) supported Python versions to -2.x * Add python to CATEGORIES * Group, re-order and sort USE{s}, NO_* and files/plist sections * Capitalize OPTIONS descriptions [1] insanum/gcalcli#211 [2] insanum/gcalcli#229 [3] insanum/gcalcli#244 [4] insanum/gcalcli#165 PR: 206045 Submitted by: Lawrence Chen <beastie tardisi com> Approved by: portmgr (maintainer timeout, 6+ months) MFH: 2016Q3 git-svn-id: svn+ssh://svn.freebsd.org/ports/head@419306 35697150-7ecd-e111-bb59-0022644237b5
gcalcli requires a dependency on oauth2client <= 1.4.12 to work correctly, as higher versions replaced the run() method with run_flow(). The version of oauth2client in ports is 2.2.0 at the time of writing. Fixes for the issue [1][2][3] have been submitted upstream in multiple cases, although upstream has closed them as duplicates of a refactor issue [4] that is yet to be committed/resolved. This commit commits the proposed change in issue #229 [2]. While I'm here: * Explicitly specify (and limit) supported Python versions to -2.x * Add python to CATEGORIES * Group, re-order and sort USE{s}, NO_* and files/plist sections * Capitalize OPTIONS descriptions [1] insanum/gcalcli#211 [2] insanum/gcalcli#229 [3] insanum/gcalcli#244 [4] insanum/gcalcli#165 PR: 206045 Submitted by: Lawrence Chen <beastie tardisi com> Approved by: portmgr (maintainer timeout, 6+ months) MFH: 2016Q3
gcalcli requires a dependency on oauth2client <= 1.4.12 to work correctly, as higher versions replaced the run() method with run_flow(). The version of oauth2client in ports is 2.2.0 at the time of writing. Fixes for the issue [1][2][3] have been submitted upstream in multiple cases, although upstream has closed them as duplicates of a refactor issue [4] that is yet to be committed/resolved. This commit commits the proposed change in issue #229 [2]. While I'm here: * Explicitly specify (and limit) supported Python versions to -2.x * Add python to CATEGORIES * Group, re-order and sort USE{s}, NO_* and files/plist sections * Capitalize OPTIONS descriptions [1] insanum/gcalcli#211 [2] insanum/gcalcli#229 [3] insanum/gcalcli#244 [4] insanum/gcalcli#165 PR: 206045 Submitted by: Lawrence Chen <beastie tardisi com> Approved by: portmgr (maintainer timeout, 6+ months) Approved by: ports-secteam (blanket)
gcalcli requires a dependency on oauth2client <= 1.4.12 to work correctly, as higher versions replaced the run() method with run_flow(). The version of oauth2client in ports is 2.2.0 at the time of writing. Fixes for the issue [1][2][3] have been submitted upstream in multiple cases, although upstream has closed them as duplicates of a refactor issue [4] that is yet to be committed/resolved. This commit commits the proposed change in issue #229 [2]. While I'm here: * Explicitly specify (and limit) supported Python versions to -2.x * Add python to CATEGORIES * Group, re-order and sort USE{s}, NO_* and files/plist sections * Capitalize OPTIONS descriptions [1] insanum/gcalcli#211 [2] insanum/gcalcli#229 [3] insanum/gcalcli#244 [4] insanum/gcalcli#165 PR: 206045 Submitted by: Lawrence Chen <beastie tardisi com> Approved by: portmgr (maintainer timeout, 6+ months) Approved by: ports-secteam (blanket)
gcalcli requires a dependency on oauth2client <= 1.4.12 to work correctly, as higher versions replaced the run() method with run_flow(). The version of oauth2client in ports is 2.2.0 at the time of writing. Fixes for the issue [1][2][3] have been submitted upstream in multiple cases, although upstream has closed them as duplicates of a refactor issue [4] that is yet to be committed/resolved. This commit commits the proposed change in issue #229 [2]. While I'm here: * Explicitly specify (and limit) supported Python versions to -2.x * Add python to CATEGORIES * Group, re-order and sort USE{s}, NO_* and files/plist sections * Capitalize OPTIONS descriptions [1] insanum/gcalcli#211 [2] insanum/gcalcli#229 [3] insanum/gcalcli#244 [4] insanum/gcalcli#165 PR: 206045 Submitted by: Lawrence Chen <beastie tardisi com> Approved by: portmgr (maintainer timeout, 6+ months) Approved by: ports-secteam (blanket)
gcalcli requires a dependency on oauth2client <= 1.4.12 to work correctly, as higher versions replaced the run() method with run_flow(). The version of oauth2client in ports is 2.2.0 at the time of writing. Fixes for the issue [1][2][3] have been submitted upstream in multiple cases, although upstream has closed them as duplicates of a refactor issue [4] that is yet to be committed/resolved. This commit commits the proposed change in issue #229 [2]. While I'm here: * Explicitly specify (and limit) supported Python versions to -2.x * Add python to CATEGORIES * Group, re-order and sort USE{s}, NO_* and files/plist sections * Capitalize OPTIONS descriptions [1] insanum/gcalcli#211 [2] insanum/gcalcli#229 [3] insanum/gcalcli#244 [4] insanum/gcalcli#165 PR: 206045 Submitted by: Lawrence Chen <beastie tardisi com> Approved by: portmgr (maintainer timeout, 6+ months) MFH: 2016Q3
Since there's no easy way to rollback oauth2client to 1.4.12 on my servers, I made a quick patch to get things running. Followed by some additional corrections to make it actually work.
According the commit to oauth2client, the old_run module was removed as it had been deprecated since July 2, 2013. It used to say in this module:
Since v1.3 was Sep 29, 2014, I would guess this to be safe for oauth2client <= 1.4.12 users. Only did a quick test against 1.4.12 (though Ubuntu 14.04 comes with 1.2
which didn't work, don't know why backports has gcalcli 3.3.2, but not updated python modules needed by it.actually it might have been copy/paste error of the authorization...)When I first ran it, I got:
But, here's the quick patch I did to get it working against oath2client v1.5.2 (and tested against 1.4.12)
The text was updated successfully, but these errors were encountered: