Error when there are a Python package and module with the same name #54

Closed
opened 2026-09-28 22:21:29 +02:00 by jakob.scheid · 0 comments
Owner

If there are a Python module and package with the same name in the same directory, such as module.py and module/, a jcloud_docsgen.exceptions.NamespaceExistsError occurs.

Expected behavior

As a module takes precedence over a package, the package namespace should not tried to be added, which would prevent from raising this error. This is also the way Python does it in: importing module when there are module.py and module/ imports module.py

If there are a Python module and package with the same name in the same directory, such as `module.py` and `module/`, a `jcloud_docsgen.exceptions.NamespaceExistsError` occurs. # Expected behavior As a module takes precedence over a package, the package namespace should not tried to be added, which would prevent from raising this error. This is also the way Python does it in: importing `module` when there are `module.py` and `module/` imports `module.py`
jakob.scheid added this to the 0.2.1 milestone 2026-09-28 22:21:29 +02:00
jakob.scheid added the Kind/Bug
Priority
Medium
3
labels 2026-09-28 22:21:29 +02:00
jakob.scheid added this to the Project Board project 2026-09-28 22:21:29 +02:00
jakob.scheid moved this to To Do in Project Board on 2026-09-28 22:21:32 +02:00
jakob.scheid added the
Reviewed
Confirmed
1
label 2026-09-28 22:21:37 +02:00
jakob.scheid moved this to Review in Project Board on 2026-09-28 22:34:23 +02:00
jakob.scheid moved this to To Do in Project Board on 2026-09-28 22:34:25 +02:00
jakob.scheid self-assigned this 2026-09-29 17:36:15 +02:00
jakob.scheid started working 2026-09-29 17:36:16 +02:00
jakob.scheid canceled time tracking 2026-09-29 18:13:41 +02:00
jakob.scheid added spent time 28 minutes 2026-09-29 18:13:50 +02:00
jakob.scheid started working 2026-09-29 18:14:29 +02:00
jakob.scheid moved this to In progress in Project Board on 2026-09-29 18:15:04 +02:00
jakob.scheid worked for 1 minute 2026-09-29 18:16:19 +02:00
jakob.scheid moved this to Review in Project Board on 2026-09-29 18:16:26 +02:00
jakob.scheid moved this to Done in Project Board on 2026-09-29 18:18:19 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Total Time Spent: 29 minutes
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: jCloud/jcloud-docsgen#54