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

This a valid MaxMind DB file ? #59

Open
Rushaway opened this issue Jun 26, 2024 · 2 comments
Open

This a valid MaxMind DB file ? #59

Rushaway opened this issue Jun 26, 2024 · 2 comments

Comments

@Rushaway
Copy link
Member

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
Copy link
Member

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
Copy link
Member Author

Rushaway commented Jul 3, 2024

I think that the way to go 👍

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

2 participants