Skip to content

Start warnings - #12

Open
MJohnson459 wants to merge 3 commits into
mainfrom
start-warnings
Open

MJohnson459 wants to merge 3 commits into
mainfrom
start-warnings

Conversation

@MJohnson459

Copy link
Copy Markdown
Collaborator

Minor fixes to clean up the start of WebUI which spammed some error messages.

This was caused by the coreapi dependencies which were never used (introduced in 2016 then functionality was removed but requirements never cleaned up)

webapp      | /webui/venv/lib/python3.12/site-packages/coreapi/utils.py:5: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
webapp      |   import pkg_resources

Old docker-compose version field which is no longer necessary.

WARN[0000] /tmp/webui-fresh/docker-compose.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion
WARN[0000] /tmp/webui-fresh/docker-compose.nodeodm.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion

This one was caused by the blanket rename so easy fix was just to revert it.

webapp      | INFO Running npm install for [coreplugins.posm-gcpi.plugin]
webapp      | npm error code E404
webapp      | npm error 404 Not Found - GET https://registry.npmjs.org/opendronemap-posm-gcpi - Not found
webapp      | npm error 404
webapp      | npm error 404  The requested resource 'opendronemap-posm-gcpi@^1.0.0' could not be found or you do not have permission to access it.
webapp      | npm error 404
webapp      | npm error 404 Note that you can also install from a
webapp      | npm error 404 tarball, folder, http url, or git url.
webapp      | npm error A complete log of this run can be found in: /root/.npm/_logs/2026-10-27T15_04_38_795Z-debug-0.log

Compose v2 ignores the top-level version attribute and prints a warning
for each file that still has one. Every file in the start sequence
carried it, so every start began with two warnings.
The rebrand renamed the dependency to opendronemap-posm-gcpi, but that
package was never published. npm install failed with a 404 on every
start and the plugin was left unregistered. webodm-posm-gcpi 1.0.0 is
the package that exists on the registry.
Nothing imports them. Django REST framework removed coreapi support in
3.15, and the API docs they served are not wired into the URL tree.
coreapi imports pkg_resources, which prints a deprecation warning on
every process start under setuptools 81.

Verified by uninstalling them in the image and running migrate, check
and the URL import with UserWarning raised as an error.

@smathermather smathermather left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good overall.

One thing to note: we haven't launched an posm-gcpi yet. Need to finish getting that set up.

This branch has not been deployed

No deployments
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

Successfully merging this pull request may close these issues.

3 participants