Doesn't run with PYTHONSAFEPATH enabled

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

Maintainers usually reply within 2 days

@xovishnukosuri is already working on this.

Since Mar 14, 2026.

  • #427 by @xovishnukosuri — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
58/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
python
Domain
backend

Research direction

Start by reproducing the D-Bus service failure with PYTHONSAFEPATH enabled, then inspect scp-dbus-service.py at line 33 and the referenced debug import. Done means the service starts successfully in that environment without the ModuleNotFoundError.

Written by the indexing model from the issue text.

Description

Doesn't run with PYTHONSAFEPATH enabled

dbus-:[email protected]: Main process exited, code=exited, status=1/FAILURE
ModuleNotFoundError: No module named 'debug'
    from debug import *
  File "/usr/share/system-config-printer/scp-dbus-service.py", line 33, in <module>

Relative imports should be relative imports, or sys.path should be modified with PYTHONPATH

Dominant language
Python
Stars
209
Forks
111
Avg merge
2d 3h
Merged PRs (30d)
8

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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.

More from OpenPrinting/system-config-printer

All issues in OpenPrinting/system-config-printer

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.