nikademus79 / psutil

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

Install Error from psutil-0.3.0.win32-py2.6 #183

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Download the file
2. Run it
3. OK Defaults

What is the expected output? What do you see instead?
Expect install to complete normally.
Got - "R6034 An application has made an attempt to load teh C runtime library 
incorrectly"

What version of psutil are you using? What Python version?
0.3.0 - Python 2.6

On what operating system? Is it 32bit or 64bit version?
Windows 7 32 bit

Please provide any additional information below.
1/ Screenshot attached.
2/ At least some of the functionallity works post install.
Python 2.6 (r26:66721, Oct  2 2008, 11:35:03) [MSC v.1500 32 bit (Intel)] on win
32
Type "help", "copyright", "credits" or "license" for more information.
>>> import psutil
>>> psutil.cpu_percent()
39.299999999999997
>>> psutil.cpu_percent(percpu=True)
[0.0, 0.0, 0.0, 14.300000000000001]
>>> psutil.cpu_percent(percpu=True)
[0.0, 0.0, 0.0, 14.300000000000001]
>>> psutil.cpu_percent(percpu=True)
[0.0, 0.0, 0.20000000000000001, 0.0]
>>> psutil.phymem_usage()
usage(total=3117203456L, used=1682984960L, free=1434218496L, percent=53.0)
>>> psutil.get_partitions()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'get_partitions'
>>> psutil.disk_usage('/')
usage(total=483505729536L, used=286495027200L, free=197010702336L, percent=59.29
9999999999997)
>>>

Original issue reported on code.google.com by GadgetSt...@hotmail.com on 10 Jul 2011 at 5:19

Attachments:

GoogleCodeExporter commented 8 years ago
I have no idea why that happens.
By googling a bit it seems this might be due to different python versions 
installed at the same time:
https://bugs.launchpad.net/ipython/+bug/432714
Have you tried with another python version (e.g. python 2.7)?

Original comment by g.rodola on 10 Jul 2011 at 7:00

GoogleCodeExporter commented 8 years ago
I can confirm for python 2.6.5, windows xp sp3 32 bits spanish

psutil installed from psutil-0.3.0.win32-py2.6.exe

Only one python here, except for pythons embedded in some apps (inkscape, 
dreampie,..)

Installer automatically identified the correct python install folder, progress 
bar advanced and then popped a MsgBox with the same text as for the OP.

Running the same commands as the OP got

Python 2.6.5 (r265:79096, Mar 19 2010, 21:48:26) [MSC v.1500 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import psutil
>>> psutil.cpu_percent()
0.0
>>> psutil.cpu_percent()
0.0
>>> psutil.cpu_percent()
8.3000000000000007
>>> psutil.cpu_percent(percpu=True)
[0.0, 14.300000000000001]
>>> psutil.cpu_percent(percpu=True)
[0.0, 0.0]
>>> psutil.cpu_percent(percpu=True)
[0.0, 0.0]
>>> psutil.cpu_percent(percpu=True)
[0.0, 0.0]
>>> psutil.cpu_percent(percpu=True)
[0.0, 0.0]
>>> psutil.cpu_percent(percpu=True)
[0.0, 14.300000000000001]
>>>
>>> psutil.phymem_usage()
usage(total=2146541568L, used=862539776L, free=1284001792L, percent=40.0)
>>> psutil.get_partitions()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'get_partitions'
>>> psutil.disk_usage('/')
usage(total=16779538432L, used=12895424512L, free=3884113920L, percent=76.900000
000000006)
>>>

Original comment by ccanepacc@gmail.com on 24 Oct 2011 at 8:33

GoogleCodeExporter commented 8 years ago
Yes! Yes! Fixed here !

The thing is obscure, and that error can come from different s infractions to 
rules of MS parallel assemblies (WinSxS).

In my case, the problem was having a duplicate msvcr90.dll in a directory that 
was into the PATH environment variable; particularly in the installation dir 
for bazaar, the revision control system.

Temporary renaming that directory allowed a psutil installation without errors.

I unistalled and reinstalled bazaar, and the installation wizard has a section 
'select additional task', where the only one task offered was to add the bazaar 
install dir to the PATH env. var. , the default value was checked.

So, yes, my particular problem comes from a bug in bazaar, that should not 
expose the dll in a dir that is logical to add to PATH. I will fill a bug with 
them.

Notice that other apps with a similar defect can cause the same problem.

To find the problematic dll  I used Sysinternals Process Explorer (free), and 
these pages hinted me for what to look:

http://forums.plexapp.com/index.php/topic/23267-resolved-c-runtime-library-error
/
http://www.keysolutions.com/blogs/kenyee.nsf/d6plinks/KKYE-7C8NM8

(notice that my problematic dll was msvcr90.dll, they talk about the *80* . I 
suppose thats because python 2.6 is linked with the 90 flavor )

Original comment by ccanepacc@gmail.com on 25 Oct 2011 at 1:14

GoogleCodeExporter commented 8 years ago
Closing this out as it seems fixed / not our fault.

Original comment by g.rodola on 6 Mar 2012 at 12:51

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Updated csets after the SVN -> Mercurial migration:
r26 == revision 1a7dae828cd4
r265 == revision 7defeffbc5a0
r6034 == revision ???

Original comment by g.rodola on 2 Mar 2013 at 12:01