nikademus79 / psutil

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

Please, create package for win64 python32 #191

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
My trying to build ans install package makes following errors:

psutil/_psutil_mswindows.c: In function 'get_process_num_threads':
psutil/_psutil_mswindows.c:824:5: warning: implicit declaration of function 
'get_process_info'
psutil/_psutil_mswindows.c: At top level:
psutil/_psutil_mswindows.h:43:18: warning: 'get_disk_partitions' declared 
'static' but never defined
psutil/arch/mswindows/process_info.c: In function 'handle_from_pid_waccess':
psutil/arch/mswindows/process_info.c:58:13: warning: implicit declaration of 
function 'NoSuchProcess'
psutil/arch/mswindows/process_info.c: At top level:
psutil/arch/mswindows/process_info.c:422:7: warning: type defaults to 'int' in 
declaration of 'STATUS_INFO_LENGTH_MISMATCH'
psutil/arch/mswindows/process_info.c:423:7: warning: type defaults to 'int' in 
declaration of 'STATUS_BUFFER_TOO_SMALL'
psutil/arch/mswindows/process_handles.c: In function 'get_open_files':
psutil/arch/mswindows/process_handles.c:176:9: warning: passing argument 2 of 
'NtDuplicateObject' makes pointer from integer without a cast
psutil/arch/mswindows/process_handles.c:176:9: note: expected 'HANDLE' but 
argument is of type 'USHORT'
build\temp.win-amd64-3.2\Release\psutil\_psutil_mswindows.o:_psutil_mswindows.c:
(.text+0x7b): undefined reference to `_imp__PyModule_GetState'
build\temp.win-amd64-3.2\Release\psutil\_psutil_mswindows.o:_psutil_mswindows.c:
(.text+0x89): undefined reference to `_imp__PyModule_GetState'
build\temp.win-amd64-3.2\Release\psutil\_psutil_mswindows.o:_psutil_mswindows.c:
(.text+0xca): undefined reference to `_imp__PyModule_GetState'
build\temp.win-amd64-3.2\Release\psutil\_psutil_mswindows.o:_psutil_mswindows.c:
(.text+0xd8): undefined reference to `_imp__PyModule_GetState'

Original issue reported on code.google.com by VitalyGoldstein@gmail.com on 31 Jul 2011 at 8:04

GoogleCodeExporter commented 8 years ago
I only see warnings, not errors. In this case the C extension should usually be 
compiled.
Please specify what problem you are reporting exactly and also specify:
- windows version
- architecture (32 / 64 bit)
- python version (and whether is 32 or 64 bit)

Original comment by g.rodola on 1 Aug 2011 at 10:52

GoogleCodeExporter commented 8 years ago
I have problems while linking. "undefined reference to ..."

windows 7 64-bit
python 3.2 64-bit

Original comment by VitalyGoldstein@gmail.com on 1 Aug 2011 at 11:30

GoogleCodeExporter commented 8 years ago
I encounter error. My system is Win7-64 bit, python 2.66

    import psutil
  File "C:\Python26\lib\site-packages\psutil\__init__.py", line 63, in <module>
    import psutil._psmswindows as _psplatform
  File "C:\Python26\lib\site-packages\psutil\_psmswindows.py", line 11, in <module>
    import _psutil_mswindows
ImportError: DLL load failed: %1 is not a valid Win32 application.

Original comment by siqis...@gmail.com on 22 Aug 2011 at 11:32

GoogleCodeExporter commented 8 years ago

Original comment by g.rodola on 22 Oct 2011 at 11:51

GoogleCodeExporter commented 8 years ago
Getting back to this.
That should mean you're trying to build psutil with an erroneous VS version.
For example, if you're on Python 2.6 or 2.7 you should use Visual Studio 2008.
In case of 64 bit systems I remember things are a bit more hairy but I can't 
recall exactly what I installed other than VS.
Anyways, I think this is not an issue with psutil per-se but rather a 
setup/environment problem with your system, hence I'm closing this out.
Feel free to use the ml though. It's likely you'll get more visibility down 
there anyways.

Original comment by g.rodola on 26 Feb 2013 at 11:37