baweaver / psutil

Automatically exported from code.google.com/p/psutil
Other
0 stars 0 forks source link

python setup.py install FAILS #345

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\pjm>cd C:\Documents and Settings\pjm\My Documents\Down
loads\psutil-0.6.1\psutil-0.6.1

C:\Documents and Settings\pjm\My Documents\Downloads\psutil-0.6.1\psutil-0.6.1>
C:\Documents and Settings\pjm\My Documents\Downloads\psutil-0.6.1\psutil-0.6.1>d
ir
 Volume in drive C has no label.
 Volume Serial Number is 1CB7-2863

 Directory of C:\Documents and Settings\pjm\My Documents\Downloads\psutil-0.6.1\psutil-0.6.1

12/26/2012  02:46 PM    <DIR>          .
12/26/2012  02:46 PM    <DIR>          ..
12/26/2012  02:46 PM    <DIR>          build
08/16/2012  10:07 AM             1,873 CREDITS
12/26/2012  02:44 PM    <DIR>          examples
08/16/2012  10:07 AM            19,027 HISTORY
08/13/2012  07:26 AM             3,045 INSTALL
08/13/2012  07:26 AM             1,584 LICENSE
08/13/2012  07:26 AM               198 MANIFEST.in
08/16/2012  11:34 AM             9,844 PKG-INFO
12/26/2012  02:47 PM    <DIR>          psutil
12/26/2012  02:44 PM    <DIR>          psutil.egg-info
08/13/2012  07:26 AM             6,101 README
08/16/2012  11:34 AM                59 setup.cfg
08/13/2012  07:26 AM             6,465 setup.py
12/26/2012  02:44 PM    <DIR>          test
               9 File(s)         48,196 bytes
               7 Dir(s)  306,391,769,088 bytes free

C:\Documents and Settings\pjm\My 
Documents\Downloads\psutil-0.6.1\psutil-0.6.1>python setup.py install
running install
running bdist_egg
running egg_info
writing psutil.egg-info\PKG-INFO
writing top-level names to psutil.egg-info\top_level.txt
writing dependency_links to psutil.egg-info\dependency_links.txt
reading manifest file 'psutil.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'psutil.egg-info\SOURCES.txt'
installing library code to build\bdist.win32\egg
running install_lib
running build_py
running build_ext
building '_psutil_mswindows' extension
C:\Python27\Scripts\gcc.exe -mno-cygwin -mdll -O -Wall -D_WIN32_WINNT=0x0501 -D_
AVAIL_WINVER_=0x0501 -IC:\Python27\include -IC:\Python27\PC -c psutil/_psutil_ms
windows.c -o build\temp.win32-2.7\Release\psutil\_psutil_mswindows.o
psutil/_psutil_mswindows.c:27:0: warning: ignoring #pragma comment
psutil/_psutil_mswindows.c: In function 'get_process_cpu_times_2':
psutil/_psutil_mswindows.c:306:5: warning: implicit declaration of function 'get
_process_info'
psutil/_psutil_mswindows.c: In function 'get_process_exe':
psutil/_psutil_mswindows.c:567:5: warning: passing argument 2 of 'GetProcessImag
eFileNameA' from incompatible pointer type
c:/python27/egg-info/mingw/usr/lib/gcc/../../i686-w64-mingw32/include/Psapi.h:12
9:16: note: expected 'LPSTR' but argument is of type 'wchar_t (*)[260]'
psutil/_psutil_mswindows.c: In function 'get_process_memory_info':
psutil/_psutil_mswindows.c:601:5: warning: passing argument 2 of 'GetProcessMemo
ryInfo' from incompatible pointer type
c:/python27/egg-info/mingw/usr/lib/gcc/../../i686-w64-mingw32/include/Psapi.h:95
:18: note: expected 'PPROCESS_MEMORY_COUNTERS' but argument is of type 'struct P
ROCESS_MEMORY_COUNTERS_EX *'
psutil/_psutil_mswindows.c: At top level:
psutil/_psutil_mswindows.c:1383:16: error: redefinition of 'struct _MIB_TCP6ROW_
OWNER_PID'
c:/python27/egg-info/mingw/usr/lib/gcc/../../i686-w64-mingw32/include/iprtrmib.h
:318:16: note: originally defined here
psutil/_psutil_mswindows.c:1393:3: error: conflicting types for 'MIB_TCP6ROW_OWN
ER_PID'
c:/python27/egg-info/mingw/usr/lib/gcc/../../i686-w64-mingw32/include/iprtrmib.h
:327:3: note: previous declaration of 'MIB_TCP6ROW_OWNER_PID' was here
psutil/_psutil_mswindows.c:1393:27: error: conflicting types for 'PMIB_TCP6ROW_O
WNER_PID'
c:/python27/egg-info/mingw/usr/lib/gcc/../../i686-w64-mingw32/include/iprtrmib.h
:327:26: note: previous declaration of 'PMIB_TCP6ROW_OWNER_PID' was here
psutil/_psutil_mswindows.c:1395:16: error: redefinition of 'struct _MIB_TCP6TABL
E_OWNER_PID'
c:/python27/egg-info/mingw/usr/lib/gcc/../../i686-w64-mingw32/include/iprtrmib.h
:379:16: note: originally defined here
psutil/_psutil_mswindows.c:1399:3: error: conflicting types for 'MIB_TCP6TABLE_O
WNER_PID'
c:/python27/egg-info/mingw/usr/lib/gcc/../../i686-w64-mingw32/include/iprtrmib.h
:382:3: note: previous declaration of 'MIB_TCP6TABLE_OWNER_PID' was here
psutil/_psutil_mswindows.c:1399:29: error: conflicting types for 'PMIB_TCP6TABLE
_OWNER_PID'
c:/python27/egg-info/mingw/usr/lib/gcc/../../i686-w64-mingw32/include/iprtrmib.h
:382:28: note: previous declaration of 'PMIB_TCP6TABLE_OWNER_PID' was here
psutil/_psutil_mswindows.c:1432:16: error: redefinition of 'struct _MIB_UDP6ROW_
OWNER_PID'
c:/python27/egg-info/mingw/usr/lib/gcc/../../i686-w64-mingw32/include/iprtrmib.h
:191:16: note: originally defined here
psutil/_psutil_mswindows.c:1437:3: error: conflicting types for 'MIB_UDP6ROW_OWN
ER_PID'
c:/python27/egg-info/mingw/usr/lib/gcc/../../i686-w64-mingw32/include/iprtrmib.h
:196:3: note: previous declaration of 'MIB_UDP6ROW_OWNER_PID' was here
psutil/_psutil_mswindows.c:1437:27: error: conflicting types for 'PMIB_UDP6ROW_O
WNER_PID'
c:/python27/egg-info/mingw/usr/lib/gcc/../../i686-w64-mingw32/include/iprtrmib.h
:196:26: note: previous declaration of 'PMIB_UDP6ROW_OWNER_PID' was here
psutil/_psutil_mswindows.c:1439:16: error: redefinition of 'struct _MIB_UDP6TABL
E_OWNER_PID'
c:/python27/egg-info/mingw/usr/lib/gcc/../../i686-w64-mingw32/include/iprtrmib.h
:237:16: note: originally defined here
psutil/_psutil_mswindows.c:1443:3: error: conflicting types for 'MIB_UDP6TABLE_O
WNER_PID'
c:/python27/egg-info/mingw/usr/lib/gcc/../../i686-w64-mingw32/include/iprtrmib.h
:240:3: note: previous declaration of 'MIB_UDP6TABLE_OWNER_PID' was here
psutil/_psutil_mswindows.c:1443:29: error: conflicting types for 'PMIB_UDP6TABLE
_OWNER_PID'
c:/python27/egg-info/mingw/usr/lib/gcc/../../i686-w64-mingw32/include/iprtrmib.h
:240:28: note: previous declaration of 'PMIB_UDP6TABLE_OWNER_PID' was here
psutil/_psutil_mswindows.c: In function 'get_process_connections':
psutil/_psutil_mswindows.c:1480:50: error: expected declaration specifiers or '.
..' before 'UDP_TABLE_CLASS'
psutil/_psutil_mswindows.c:1719:29: error: 'UDP_TABLE_OWNER_PID' undeclared (fir
st use in this function)
psutil/_psutil_mswindows.c:1719:29: note: each undeclared identifier is reported
 only once for each function it appears in
psutil/_psutil_mswindows.c:1719:29: error: too many arguments to function 'getEx
tendedUdpTable'
psutil/_psutil_mswindows.c:1724:34: error: too many arguments to function 'getEx
tendedUdpTable'
psutil/_psutil_mswindows.c:1782:29: error: too many arguments to function 'getEx
tendedUdpTable'
psutil/_psutil_mswindows.c:1787:34: error: too many arguments to function 'getEx
tendedUdpTable'
psutil/_psutil_mswindows.c: In function 'get_process_cpu_affinity':
psutil/_psutil_mswindows.c:1981:5: warning: passing argument 2 of 'GetProcessAff
inityMask' from incompatible pointer type
c:/python27/egg-info/mingw/usr/lib/gcc/../../i686-w64-mingw32/include/winbase.h:
1241:29: note: expected 'PDWORD_PTR' but argument is of type 'ULONG_PTR **'
psutil/_psutil_mswindows.c:1981:5: warning: passing argument 3 of 'GetProcessAff
inityMask' from incompatible pointer type
c:/python27/egg-info/mingw/usr/lib/gcc/../../i686-w64-mingw32/include/winbase.h:
1241:29: note: expected 'PDWORD_PTR' but argument is of type 'ULONG_PTR **'
psutil/_psutil_mswindows.c: In function 'get_network_io_counters':
psutil/_psutil_mswindows.c:2106:41: warning: passing argument 5 of 'GetAdaptersA
ddresses' from incompatible pointer type
c:/python27/egg-info/mingw/usr/lib/gcc/../../i686-w64-mingw32/include/iphlpapi.h
:69:16: note: expected 'PULONG' but argument is of type 'int *'
psutil/_psutil_mswindows.c: At top level:
psutil/_psutil_mswindows.c:2281:0: warning: "_ARRAYSIZE" redefined
c:/python27/egg-info/mingw/usr/lib/gcc/../../i686-w64-mingw32/include/winnt.h:46
8:0: note: this is the location of the previous definition
psutil/_psutil_mswindows.c: In function 'get_disk_partitions':
psutil/_psutil_mswindows.c:2343:36: warning: passing argument 7 of 'GetVolumeInf
ormationA' from incompatible pointer type
c:/python27/egg-info/mingw/usr/lib/gcc/../../i686-w64-mingw32/include/winbase.h:
2426:29: note: expected 'LPSTR' but argument is of type 'CHAR **'
error: command 'gcc' failed with exit status 1

C:\Documents and Settings\pjm\My Documents\Downloads\psutil-0.6.1\psutil-0.6.1>

Original issue reported on code.google.com by pjmora...@gmail.com on 26 Dec 2012 at 7:57

GoogleCodeExporter commented 8 years ago
That's because mingw 64 bit is not supported.
Closing this out as a duplicate of issue 158 which also provides a patch which 
is outdated, unfortunately.
The only thing you can do for now is to either use Visual Studio or Python 32 
bit or try to revamp that old patch.

Original comment by g.rodola on 28 Dec 2012 at 4:19