juancarlospaco / psutil-nim

Port of python psutil to Nim
MIT License
28 stars 9 forks source link

Error: cannot open file: winim #21

Closed Hoffenbar closed 6 months ago

Hoffenbar commented 2 years ago

Windows 10, 64bit nim 1.4.8

nimble install psutil

prozesstest.nim:

import psutil
echo process_exists("notepad.exe")

nim.exe c --opt:size -d:release prozesstest.nim

Hint: used config file 'c:\UsrStatic\bin\nim-1.4.8\config\nim.cfg' [Conf]
Hint: used config file 'c:\UsrStatic\bin\nim-1.4.8\config\config.nims' [Conf]
.............................
C:\Users\matthiasu\.nimble\pkgs\psutil-0.6.0\psutil\psutil_windows.nim(9, 8) Error: cannot open file: winim
piertoni commented 1 year ago

I got the same issue, I presume that winim package is missing. So should be added to psutil.nimble.

bung87 commented 6 months ago

fixed in https://github.com/juancarlospaco/psutil-nim/pull/25