OpenPrinting / OpenPrinting/system-config-printer

Doesn't run with PYTHONSAFEPATH enabled

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

Nobody has claimed this yet.

Dominant language
Python
Stars
204
Forks
108
Avg merge
1d 14h
Merged PRs (30d)
9

Description

Doesn't run with PYTHONSAFEPATH enabled

dbus-:1.2-org.fedoraproject.Config.Printing@6.service: 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

Contributor guide

No contributing guide indexed for this repository

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 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.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.