ArduPilot / ArduPilot/MAVProxy

module smartcamera: does not load

Open
#1,565 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
595
Forks
773
Avg merge
2d 6h
Merged PRs (30d)
18

Description

Venv installed by environment-install-ubuntu script.

```
STABILIZE> module load smartcamera
STABILIZE> Failed to load module: No module named 'smartcamera'. Use 'set moddebug 3' in the MAVProxy console to enable traceback

STABILIZE>
STABILIZE> set moddebug 3
STABILIZE> module load smartcamera
STABILIZE> No module named 'sc_webcam'
Traceback (most recent call last):
File "/home/andre/venv-ardupilot/bin/mavproxy.py", line 690, in import_package
mod = __import__(name)
File "/home/andre/venv-ardupilot/lib/python3.13/site-packages/MAVProxy/modules/mavproxy_smartcamera/__init__.py", line 39, in
from sc_webcam import SmartCameraWebCam
ModuleNotFoundError: No module named 'sc_webcam'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/andre/venv-ardupilot/bin/mavproxy.py", line 373, in load_module
m = import_package(modpath)
File "/home/andre/venv-ardupilot/bin/mavproxy.py", line 693, in import_package
mod = __import__(name)
File "/home/andre/venv-ardupilot/lib/python3.13/site-packages/MAVProxy/modules/mavproxy_smartcamera/__init__.py", line 39, in
from sc_webcam import SmartCameraWebCam
ModuleNotFoundError: No module named 'sc_webcam'

No module named 'smartcamera'
Traceback (most recent call last):
File "/home/andre/venv-ardupilot/bin/mavproxy.py", line 690, in import_package
mod = __import__(name)
ModuleNotFoundError: No module named 'smartcamera'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/andre/venv-ardupilot/bin/mavproxy.py", line 373, in load_module
m = import_package(modpath)
File "/home/andre/venv-ardupilot/bin/mavproxy.py", line 693, in import_package
mod = __import__(name)
ModuleNotFoundError: No module named 'smartcamera'

Failed to load module: No module named 'smartcamera'.

```

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the failure after using the environment-install-ubuntu script by running `module load smartcamera` with `set moddebug 3` in MAVProxy. Read `MAVProxy/modules/mavproxy_smartcamera/__init__.py` and trace the `sc_webcam` import shown in the traceback. Done means the smartcamera module loads successfully without the reported import errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.