srcdslab / torchlight

Bot for source engine games with a lot of commands
2 stars 3 forks source link

This a valid MaxMind DB file ? #59

Open Rushaway opened 1 week ago

Rushaway commented 1 week ago
2024-06-26T09:15:06+0200 | ERROR | Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/torchlight/CommandHandler.py", line 49, in Setup
    command = subklass(
  File "/usr/local/lib/python3.10/site-packages/torchlight/Commands.py", line 430, in __init__
    self.geo_ip = geoip2.database.Reader(
  File "/usr/local/lib/python3.10/site-packages/geoip2/database.py", line 119, in __init__
    self._db_reader = maxminddb.open_database(fileish, mode)
  File "/usr/local/lib/python3.10/site-packages/maxminddb/__init__.py", line 80, in open_database
    return cast(Reader, _extension.Reader(database, mode))
maxminddb.errors.InvalidDatabaseError: Error opening database file (/usr/share/GeoIP/GeoLite2-City.mmdb). Is this a valid MaxMind DB file?

A good QOL improvement will be to automaticly grab the last version.

maxime1907 commented 6 days ago

its a best practice to pin versions so if you want that we could add a custom github bot that would update that part:

Rushaway commented 6 days ago

I think that the way to go 👍