mitsuhiko / mitsuhiko/python-geoip

Unable to access mmdb file when zipped

Open
#9 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
246
Forks
50
PR merge metrics
No merged PRs in 30d

Description

I have to write a python udf to fetch country details, so all the packages have to be zipped. When executing python as zip I am getting error since the mmdb file is also inside the zip folder and it is unable to access it.

So kindly provide me solutions on how to resolve this and I am a beginner in python.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names a Python UDF, a zipped package, and an mmdb file, but no repository file or test. First reproduce the failure with the mmdb file inside the zip and determine how this project expects database files to be located. Done means a documented or tested way to access the database from the zipped execution environment.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
databases
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
15/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.