psutil Questions
2
I was trying to run psutil.net_connections() on my OS X (12.1) Macbook Pro in python, but was greeted with the error of syscall failed. This is weird because most of ther other functions of psutil ...
11
I've been trying to install Peter Chervenski's MultiNEAT and ran into a problem while running setup.py (python setup.py build_ext):
File "c:/Users/1234/Documents/Alex/multineat/peter-ch-MultiNEA...
1
When I run the below code, it takes over two minutes to cycle through all the processes. Is this normal? I have been using psutil.process_iter() for a while, and I don't remember it taking this lon...
3
I am trying to create a process monitor but I am unable to get accurate results comparing my results to windows task manager.
I have been using psutil which seems to work fine when looking at the o...
1
Solved
I tried to install python module psutil in docker python:3.9.13-alpine3.16
But it reported the following mistake:
Building wheels for collected packages: psutil
Building wheel for psutil (pyprojec...
Extrajudicial asked 12/8, 2022 at 3:37
2
Solved
I'm using a miniforge environment on an M1 mac, and unable to import psutil:
ImportError: dlopen(/Users/caspsea/miniforge3/lib/python3.9/site-packages/psutil/_psutil_osx.cpython-39-darwin.so, 0x000...
1
Solved
I installed pyhton on a windows 64bit machine (Version 3.10). Afterwards I like to install psutil with:
python -m pip install psutil
but I get following error message:
Collecting psutil
Using cac...
1
I am aware of [1]. With a few lines of code, I just want to extract the current CPU usage from the top n processes with the most CPU usages. More or less the top 5 rows of top. Using github.com/shi...
1
I'm trying to execute the following code:
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import matplotlib
%matplotlib inline
import seaborn as sns
import plotly.graph_obj...
Uncouple asked 20/11, 2019 at 14:50
2
Solved
I included a benchmark directive to some of the rules in my snakemake workflow, and the resulting files have the following header:
s h:m:s max_rss max_vms max_uss max_pss io_in io_out mean_load
...
4
I want to compile my python code to binary by using pyinstaller, but the hidden import block me. For example, the following code import psutil and print the CPU count:
# example.py
import psutil
p...
Angle asked 7/7, 2015 at 6:44
4
The code always returns 0.0 values, regardless of interval values.
import psutil
p = psutil.Process()
print p.cpu_percent(interval=1)
print p.cpu_percent(interval=None)
2
0
I'm trying to install psutil with the Homebrew version of Python on OSX Mojave.
Running:
pip3 install psutil 2> error.log
The console output is:
Collecting psutil
Using cached psutil-5.7.2.tar...
Sanskritic asked 20/7, 2020 at 2:49
1
I am trying to install psutil in centos and same is failing with gcc error . I have referred various posts in this forum but none of them helped . Many threads suggested to use pydev but its alread...
Swartz asked 8/1, 2018 at 17:15
2
I am installing apache airflow as per the installation steps provided at https://airflow.apache.org/start.html#quick-start
First Step - export AIRFLOW_HOME=~/airflow (No error)
Second Step - pip ...
Tomsk asked 3/6, 2018 at 22:49
4
I am looking for a way to start multiple process efficiently with low priority in Windows. I tried :
def run(command):
# command['Program.exe args1 args2','output_file']
try :
p = subprocess.Po...
Tilghman asked 20/10, 2017 at 12:57
1
I'm profiling a program that makes use of Pandas to process some CSVs. I'm using psutil's Process.memory_info to report the Virtual Memory Size (vms) and the Resident Set Size (rss) values. I'm als...
1
Solved
Caveat
This is NOT a duplicate of this. I'm not interested in finding out my memory consumption or the matter, as I'm already doing that below. The question is WHY the memory consumption is like t...
0
When I enter Task Manager I can see two sections. Apps(3) and Background processes(94). What I'm trying to do is get only those 3 that are not in the background.
My code:
for proc in psutil.process...
Odlo asked 21/3, 2019 at 21:45
2
Solved
I wanted a quick and dirty way to get some file names without typing in my shell, so I have this following piece of code:
from tkinter.filedialog import askopenfile
file = askopenfile()
Now this ...
1
Hey I'm trying to execute the following command (using psutil.Popen with python 2.7):
"C:\Program Files (x86)\Microsoft Office\root\Office16\EXCEL.EXE" "C:\docs\ת.xlsm"
Using this code:
dir = ...
Renn asked 6/9, 2017 at 16:23
1
Solved
I am new to python, and I have become interested in learning more about the efficiency of my functions. For example using generators vs. normal getter functions returning lists. I heard that you ca...
1
Solved
Im trying to measure the cpu usage of a process tree.
Currently getting the cpu_usage of a process (without children) will do, but I'm getting weird results.
import psutil
p = psutil.Process(PID)...
3
I wrote a package with a dependency's dependency to psutil (my-package depends on third-party-package which depends on psutil).
Since it's supposed to run on a server without any connectivity and w...
Straight asked 18/5, 2016 at 22:54
1 Next >
© 2022 - 2024 — McMap. All rights reserved.