Skip to content

File type error #194

@dmittal200

Description

@dmittal200

geoip2.database.Reader()

This function accepts IO data type as it is mentioned in it's constructor but when I'm passing GeoLite-Country.mmdb file it is giving error like below :

ERROR:root:Failed to initialize GeoIP reader: expected str, bytes or os.PathLike object, not BytesIO

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions