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

package-analysis error during django analysis #1093

Open
r0075h3ll opened this issue Jan 4, 2025 · 1 comment
Open

package-analysis error during django analysis #1093

r0075h3ll opened this issue Jan 4, 2025 · 1 comment

Comments

@r0075h3ll
Copy link

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.

@calebbrown
Copy link
Contributor

Specifically for Django the GDAL related messages are usually okay to ignore - the code is trying to import libraries that are failing to find the GDAL system libraries.

Are you able to attach an entire log? Or is there any interesting output that starts with ERROR?

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