dragon icon indicating copy to clipboard operation
dragon copied to clipboard

Running dragon lo results in a crash

Open RUGMJ opened this issue 5 months ago • 2 comments

Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "/home/rugmj/.local/lib/python3.11/site-packages/dragon/lo.py", line 6, in <module> from dragon.util import dprintline, OutputColors, OutputWeight ImportError: cannot import name 'dprintline' from 'dragon.util' (/home/rugmj/.local/lib/python3.11/site-packages/dragon/util.py)

After looking at the source code it seems the imports dont exist in the utils module at all not really sure whats meant to be happening here

RUGMJ avatar Jan 29 '24 12:01 RUGMJ

seems the shared package has the correct util, changing dragon.util to shared.util would resolve this unless theres something im missing

RUGMJ avatar Jan 29 '24 13:01 RUGMJ

Thanks for catching this. Will fix in an upcoming release.

If you'd like to fix it locally, you can make the edits necessary to this repo and run the dev install script.

L1ghtmann avatar Feb 07 '24 18:02 L1ghtmann