moneyapi / google-api-python-client

Automatically exported from code.google.com/p/google-api-python-client
Other
0 stars 0 forks source link

DuplicateFlagError on import AppAssertionCredentials #192

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
[Use this form for both apiclient and oauth2client issues]

What steps will reproduce the problem?
1. added from oauth2client.appengine import AppAssertionCredentials on first 
line
2. tried running the appengine app url
3.

What is the expected output? What do you see instead?
Expected api to work..
Showed some exception not even runtime error

What version of the product are you using? On what operating system?
Rev 511.. https://code.google.com/p/google-api-python-client/

Please provide any additional information below.

File "/base/data/home/apps/tempid/cons-main.361588549924278177/main.py", line 
48, in <module>
    from oauth2client.appengine import AppAssertionCredentials
  File "/base/data/home/apps/tempid/cons-main.361588549924278177/oauth2client/appengine.py", line 39, in <module>
    from oauth2client import xsrfutil
  File "/base/data/home/apps/tempid/cons-main.361588549924278177/oauth2client/oauth2client/xsrfutil.py", line 30, in <module>
    from oauth2client import util
  File "/base/data/home/apps/tempid/cons-main.361588549924278177/oauth2client/util.py", line 37, in <module>
    'The action when an oauth2client.util.positional declaration is violated.')
  File "/base/data/home/apps/tempid/cons-main.361588549924278177/gflags.py", line 2628, in DEFINE_enum
    flag_values)
  File "/base/data/home/apps/tempid/cons-main.361588549924278177/gflags.py", line 2190, in DEFINE_flag
    fv[flag.name] = flag
  File "/base/data/home/apps/tempid/cons-main.361588549924278177/gflags.py", line 1040, in __setitem__
    raise DuplicateFlagError(name, self)
DuplicateFlagError: The flag 'positional_parameters_enforcement' is defined 
twice. First from oauth2client.oauth2client.util, Second from oauth2client.util

Original issue reported on code.google.com by prakhil....@gmail.com on 7 Sep 2012 at 6:12

GoogleCodeExporter commented 8 years ago
As the error message states:

DuplicateFlagError: The flag 'positional_parameters_enforcement' is defined 
twice. First from oauth2client.oauth2client.util, Second from oauth2client.util

You seem to have multiple copies of the library on your path at slightly 
different locations and that's the underlying problem that needs to be fixed.

Original comment by jcgregorio@google.com on 7 Sep 2012 at 6:15