asitop icon indicating copy to clipboard operation
asitop copied to clipboard

Permission denied error when running with uv (after one successful run)

Open rosmur opened this issue 1 month ago • 0 comments

Installed with uv through

uv tool install asitop

Then ran through successfully through

uv tool run asitop

But after the first run, I am unable to run it again and get the following error:

me@machine ~ % uv tool run asitop

ASITOP - Performance monitoring CLI tool for Apple Silicon
You can update ASITOP by running `pip install asitop --upgrade`
Get help at `https://github.com/tlkh/asitop`
P.S. You are recommended to run ASITOP with `sudo asitop`


[1/3] Loading ASITOP



[2/3] Starting powermetrics process

Traceback (most recent call last):
  File "/Users/r/.local/share/uv/tools/asitop/bin/asitop", line 10, in <module>
    sys.exit(main())
             ~~~~^^
  File "/Users/r/.local/share/uv/tools/asitop/lib/python3.13/site-packages/asitop/asitop.py", line 147, in main
    powermetrics_process = run_powermetrics_process(timecode,
                                                    interval=args.interval * 1000)
  File "/Users/r/.local/share/uv/tools/asitop/lib/python3.13/site-packages/asitop/utils.py", line 51, in run_powermetrics_process
    os.remove(tmpf)
    ~~~~~~~~~^^^^^^
PermissionError: [Errno 13] Permission denied: '/tmp/asitop_powermetrics1764540330'

This is likely due to not being able to run as owner (sudo)?

Any solution to this? (I don't want to pip install as I prefer isolation through uv.)

rosmur avatar Nov 30 '25 22:11 rosmur