Re: [psutil] Re: bad format char passed to Py_BuildValue (psutil 0.7.0 win 32 py24)

175 views
Skip to first unread message

Giampaolo Rodola'

unread,
Apr 17, 2013, 12:27:17 PM4/17/13
to psu...@googlegroups.com
Ah good to know.
I plan to get rid of Python 2.4 and 2.5 support sooner or later btw,
so perhaps it's time to think about upgrading (and for the record, 2.4
is 9 years old).

2013/4/17 Antoine Gefflot <agef...@gmail.com>:
> After investigation problem is due to the very old version of python 2.4.2.
> This issue is solved in python since 2.4.3.
>
> Problem not seen with python 2.4.2
>
> Thanks for this nice and usefull library
>
> Le mardi 16 avril 2013 13:28:30 UTC+2, Antoine Gefflot a écrit :
>>
>> Hello,
>>
>> I need to monitor memory used by a set of processes in 3 different
>> environment (py24 win 32, py27 win 32 and py27 win 64), that's the reason
>> why iI select psutil which seems to be the good solution.
>>
>> my input is a list of process name
>>
>> When i try to iterate over list of current processes with the following
>> code:
>>
>> targetted_proc_list = ["python.exe"]
>> for proc in psutil.process_iter():
>> if proc.name in targetted_proc_list:
>> print proc.name, proc.get_memory_info()
>>
>> i get an error:
>> ....psutil-0.7.0-py2.4-win32.egg\psutil\__init__.py", line 899, in
>> process_iter
>> a = set(get_pid_list())
>> SystemError: bad format char passed to Py_BuildValue
>>
>> I run this code on a windows 7 professional 64 bits.
>>
>> Does someone can help me please? What's wrong on what I do?
>>
>> Thanks
>>
>> Antoine
>
> --
> --
> You received this message because you are subscribed to the "Python process
> utilities (psutil)" project group:
> http://code.google.com/p/psutil
> To post to this group, send email to psu...@googlegroups.com
> To unsubscribe from this group, send email to
> psutil-un...@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/psutil
> ---
> You received this message because you are subscribed to the Google Groups
> "psutil" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to psutil+un...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
Reply all
Reply to author
Forward
0 new messages