Skip to content
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

Analyser error: Buffer dtype mismatch, expected 'Python object' but got 'long' #242

Closed
amadanmath opened this issue Dec 1, 2017 · 4 comments
Assignees

Comments

@amadanmath
Copy link
Collaborator

Traceback (most recent call last):
  File "/var/www/apps/gw2raidar/raidar/management/commands/process_uploads.py", line 200, in analyse_upload
    analyser = Analyser(evtc_encounter)
  File "/var/www/apps/gw2raidar/analyser/analyser.py", line 337, in __init__
    collector.with_key(Group.CATEGORY, "combat").with_key(Group.METRICS, "buffs").run(self.collect_incoming_buffs, buff_data)
  File "/var/www/apps/gw2raidar/analyser/collector.py", line 65, in run
    function(self, data)
  File "/var/www/apps/gw2raidar/analyser/analyser.py", line 583, in collect_incoming_buffs
    source_collector.with_key(Group.PHASE, "All").run(self.collect_buffs_by_target, phase_data)
  File "/var/www/apps/gw2raidar/analyser/collector.py", line 65, in run
    function(self, data)
  File "/var/www/apps/gw2raidar/analyser/analyser.py", line 592, in collect_buffs_by_target
    split_by_player_groups(collector, self.collect_buffs_by_type, buff_data, 'dst_instid', self.subgroups, self.players)
  File "/var/www/apps/gw2raidar/analyser/splits.py", line 95, in split_by_player_groups
    subgroup_events = events[events[player_column].isin(subgroup_players)]
  File "/usr/local/lib/python3.5/dist-packages/pandas/core/series.py", line 2555, in isin
    result = algorithms.isin(_values_from_object(self), values)
  File "/usr/local/lib/python3.5/dist-packages/pandas/core/algorithms.py", line 426, in isin
    return f(comps, values)
  File "/usr/local/lib/python3.5/dist-packages/pandas/core/algorithms.py", line 404, in <lambda>
    f = lambda x, y: htable.ismember_object(x, values)
  File "pandas/_libs/hashtable_func_helper.pxi", line 428, in pandas._libs.hashtable.ismember_object (pandas/_libs/hashtable.c:30162)
ValueError: Buffer dtype mismatch, expected 'Python object' but got 'long'

252394.evtc.zip

@amadanmath
Copy link
Collaborator Author

pandas-dev/pandas#16991

pip3 install --upgrade pandas

@amadanmath amadanmath self-assigned this Dec 1, 2017
@immortius
Copy link
Collaborator

This log doesn't proc an error for me.

@amadanmath
Copy link
Collaborator Author

amadanmath commented Dec 2, 2017

Yup, it's resolved, upgrading pandas fixes it; you probably aren't running the buggy pandas version. It only bugged on prod, which happened to be installed at different time (when buggy pandas was out).

@merforga
Copy link
Member

merforga commented Dec 3, 2017

Version 1.0.7 released on 2017-12-01 17:11:24

@merforga merforga closed this as completed Dec 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants