Skip to content

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

@rosmur

Description

@rosmur

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

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