GW2Raidar / gw2raidar

A log parsing website for Guild Wars 2 combat logs
http://www.gw2raidar.com
GNU General Public License v3.0
20 stars 14 forks source link

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

Closed amadanmath closed 6 years ago

amadanmath commented 6 years ago
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 commented 6 years ago

https://github.com/pandas-dev/pandas/issues/16991

pip3 install --upgrade pandas

immortius commented 6 years ago

This log doesn't proc an error for me.

amadanmath commented 6 years ago

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 commented 6 years ago

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