ossf / ossf/package-analysis

package-analysis error during django analysis

Open
#1,093 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
912
Forks
74
PR merge metrics
No merged PRs in 30d

Description

Hi there,

Tried to run scripts/run_analysis.sh -ecosystem pypi -package Django i.e. mentioned in the README itself. But, the analysis is stuck halfway, giving this output in the logs:

2025-01-04T15:39:47.480Z        WARN    log/writer.go:62        django.core.exceptions.ImproperlyConfigured: Could not find the GDAL library (tried "gdal", "GDAL", "gdal3.8.0", "gdal3.7.0", "gdal3.6.0", "gdal3.5.0", "gdal3.4.0", "gdal3.3.0", "gdal3.2.0", "gdal3.1.0", "gdal3.0.0"). Is GDAL installed? If it is, try setting GDAL_LIBRARY_PATH in your settings.       {"command": "/usr/local/bin/analyze-python.py", "args": ["--version", "5.1.4", "import", "django"], "ecosystem": "pypi", "name": "django", "version": "5.1.4", "mode": "dynamic", "phase": "import"}

Thanks.

Contributor guide

Open the contributing guide

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

Start with README's scripts/run_analysis.sh -ecosystem pypi -package Django invocation and the /usr/local/bin/analyze-python.py dynamic import path. Reproduce the Django 5.1.4 analysis and determine how the missing GDAL dependency should be handled; done means the analysis no longer stalls or reports the intended failure clearly.

Written by the indexing model from the issue text.

Assessment

Tech stack
django, python
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.