Skip to content

No module named 'dragon_npu_cli' #1

@LouDnl

Description

@LouDnl

I am trying to install dragon-npu but it keeps failing, see below. When I manually edit the import in dragon_npu and change them from from dragon_npu_cli import main to from dragon_npu.dragon_npu_cli import main and also all other dragon_npu imports in the python scripts, it works "fine".

[INFO] Checking system requirements...
[SUCCESS] Python 3.12 detected
[INFO] Detecting NPU hardware...
[SUCCESS] AMD XDNA NPU detected

# snip #

[WARNING] Failed to import DragonNPU core
[WARNING] DragonNPU CLI not working
Traceback (most recent call last):
  File "/home/loud/.dragon-npu-env/bin/dragon-npu", line 3, in <module>
    from dragon_npu_cli import main
ModuleNotFoundError: No module named 'dragon_npu_cli'

After the edit, dragon-npu status reports:

❯ dragon-npu status

==================================================
NPU Status
==================================================
2025-09-25 15:04:10,284 - WARNING - Driver integration initialization failed: name 'get_npu_integration' is not defined
      NPU Information       
┏━━━━━━━━━━━━━━━┳━━━━━━━━━━┓
┃ Property      ┃ Value    ┃
┡━━━━━━━━━━━━━━━╇━━━━━━━━━━┩
│ Vendor        │ amd_xdna │
│ Available     │ ✅ Yes   │
│ Compute Units │ 32       │
│ Memory        │ 768 MB   │
│ Max Frequency │ 1500 MHz │
│ INT8 Support  │ ✅       │
│ FP16 Support  │ ✅       │
│ BF16 Support  │ ✅       │
└───────────────┴──────────┘

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions