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
Traceback (most recent call last):
File "/Users/ged/dev/py-ga/foobar.py", line 47, in <module>
report = profile.core.query.segment('condition::perUser::ga:sessions>10').metrics('users').range('2015-01-01', '2015-01-31', precision='HIGHER_PRECISION').get()
File "/Users/ged/dev/py-ga/googleanalytics/utils/functional.py", line 52, in wrapped_method
method(obj, *vargs, **kwargs)
File "/Users/ged/dev/py-ga/googleanalytics/query.py", line 893, in segment
value = [self.api.segments.serialize(value)]
File "/Users/ged/dev/py-ga/googleanalytics/utils/functional.py", line 38, in vectorized_method
results = [fn(self, value, *vargs, **kwargs) for value in values]
File "/Users/ged/dev/py-ga/googleanalytics/columns.py", line 249, in serialize
value = self.normalize(value)
File "/Users/ged/dev/py-ga/googleanalytics/utils/functional.py", line 38, in vectorized_method
results = [fn(self, value, *vargs, **kwargs) for value in values]
File "/Users/ged/dev/py-ga/googleanalytics/columns.py", line 234, in normalize
return self[value]
File "build/bdist.macosx-10.10-x86_64/egg/addressable/__init__.py", line 127, in __getitem__
KeyError: 'Cannot find condition::perUser::ga:sessions>10 among the available type.'
Process finished with exit code 1
File "/Users/ged/dev/py-ga/googleanalytics/query.py", line 891, in segment
raise ValueError("Cannot specify a filter string and a filter keyword selection at the same time.")
ValueError: Cannot specify a filter string and a filter keyword selection at the same time.
Any idea what am I doing wrong? I don't do bug reports often, so please let me know if I missed something in here :)
The text was updated successfully, but these errors were encountered:
I have the following code:
However, it throws KeyError:
I tried running
profile.core.query.segment('condition::perUser::ga:sessions>10', type='users')
as specified in the docs here https://github.com/debrouwere/google-analytics/blob/master/googleanalytics/query.py#L831 however, then I getAny idea what am I doing wrong? I don't do bug reports often, so please let me know if I missed something in here :)
The text was updated successfully, but these errors were encountered: