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

hit object position error #29

Open
de-odex opened this issue Sep 3, 2017 · 2 comments
Open

hit object position error #29

de-odex opened this issue Sep 3, 2017 · 2 comments
Labels
beatmap parser Parsing beatmaps bug

Comments

@de-odex
Copy link
Contributor

de-odex commented Sep 3, 2017

Traceback (most recent call last):
  File "C:\Users\deodex\AppData\Local\Programs\Python\Python36\lib\site-packages\slider\library.py", line 243, in lookup_by_id
    return self._read_beatmap(self, beatmap_id=beatmap_id)
  File "C:\Users\deodex\AppData\Local\Programs\Python\Python36\lib\site-packages\slider\library.py", line 216, in _raw_read_beatmap
    return Beatmap.from_path(self._cache[f'id:{beatmap_id}'])
  File "C:\Users\deodex\AppData\Local\Programs\Python\Python36\lib\site-packages\slider\library.py", line 32, in __getitem__
    return d[key]
  File "C:\Users\deodex\AppData\Local\Programs\Python\Python36\lib\dbm\dumb.py", line 148, in __getitem__
    pos, siz = self._index[key]     # may raise KeyError
KeyError: b'id:1269290'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "C:\Users\deodex\AppData\Local\Programs\Python\Python36\lib\site-packages\slider\beatmap.py", line 592, in _parse
    x, y = point.split(':')
ValueError: not enough values to unpack (expected 2, got 1)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "bot.py", line 198, in sendpp
    beatmap_data = osu_library.lookup_by_id(beatmap_id, download=True, save=True)
  File "C:\Users\deodex\AppData\Local\Programs\Python\Python36\lib\site-packages\slider\library.py", line 247, in lookup_by_id
    return self.download(beatmap_id, save=save)
  File "C:\Users\deodex\AppData\Local\Programs\Python\Python36\lib\site-packages\slider\library.py", line 360, in download
    beatmap = Beatmap.parse(data.decode('utf-8-sig'))
  File "C:\Users\deodex\AppData\Local\Programs\Python\Python36\lib\site-packages\slider\beatmap.py", line 1713, in parse
    groups['HitObjects'],
  File "C:\Users\deodex\AppData\Local\Programs\Python\Python36\lib\site-packages\slider\beatmap.py", line 375, in parse
    return parse(Position(x, y), time, hitsound, rest)
  File "C:\Users\deodex\AppData\Local\Programs\Python\Python36\lib\site-packages\slider\beatmap.py", line 595, in _parse
    f'expected points in the form x:y, got {point!r}',
ValueError: expected points in the form x:y, got '256'
@llllllllll
Copy link
Owner

what version beatmap is this?

@de-odex
Copy link
Contributor Author

de-odex commented Oct 14, 2017

v14

@llllllllll llllllllll added bug beatmap parser Parsing beatmaps labels Apr 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beatmap parser Parsing beatmaps bug
Projects
None yet
Development

No branches or pull requests

2 participants