Bug#700571: [Python-modules-team] Bug#700571: python-psutil: Import fail

2014-05-22 Thread Kevin Deldycke
I'm sorry, but I have no longer any access to the environment in which
I was able to produce the issue... :(

On Tue, May 6, 2014 at 4:15 PM, Sandro Tosi sandro.t...@gmail.com wrote:
 Hello,
 can you confirm if this is still happening with the latest 2.1.1-1 version?

 Regards,
 --
 Sandro Tosi (aka morph, morpheus, matrixhasu)
 My website: http://matrixhasu.altervista.org/
 Me at Debian: http://wiki.debian.org/SandroTosi



-- 
Kevin Deldycke
  • blog: http://kevin.deldycke.com
  • band: http://coolcavemen.com


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#700571: python-psutil: Import fail

2013-02-14 Thread Kevin Deldycke
Package: python-psutil
Version: 0.5.1-1
Severity: important

As you can see below, the psutil package for Python distributed with Debian 7.0 
doesn't work out of the box on my machine:

  server:~# python
  Python 2.7.3 (default, Jan  2 2013, 13:56:14)
  [GCC 4.7.2] on linux2
  Type help, copyright, credits or license for more information.
   import psutil
  Traceback (most recent call last):
File stdin, line 1, in module
File /usr/lib/pymodules/python2.7/psutil/__init__.py, line 62, in module
  import psutil._pslinux as _psplatform
File /usr/lib/pymodules/python2.7/psutil/_pslinux.py, line 94, in module
  TOTAL_PHYMEM = _psutil_linux.get_sysinfo()[0]
  AttributeError: 'module' object has no attribute 'get_sysinfo'
  

This machine is a virtual server powered by OpenVZ, which makes it lacks some 
meminfo:

  server:~# cat /proc/meminfo
  MemTotal:   16424968 kB
  MemFree:16327960 kB
  SwapTotal: 0 kB
  SwapFree:  0 kB

This is the root cause of psutil failure.

Now, if I install a fresh version of psutil, it works:

  server:~# pip install psutil
  Downloading/unpacking psutil
Downloading psutil-0.6.1.tar.gz (138Kb): 138Kb downloaded
Running setup.py egg_info for package psutil

  Installing collected packages: psutil
Running setup.py install for psutil
  building '_psutil_linux' extension
  gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall 
-Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c psutil/_psutil_linux.c -o 
build/temp.linux-x86_64-2.7/psutil/_psutil_linux.o
  gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro 
build/temp.linux-x86_64-2.7/psutil/_psutil_linux.o -o 
build/lib.linux-x86_64-2.7/_psutil_linux.so
  building '_psutil_posix' extension
  gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall 
-Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c psutil/_psutil_posix.c -o 
build/temp.linux-x86_64-2.7/psutil/_psutil_posix.o
  gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro 
build/temp.linux-x86_64-2.7/psutil/_psutil_posix.o -o 
build/lib.linux-x86_64-2.7/_psutil_posix.so

  Successfully installed psutil
  Cleaning up...
  server:~# python
  Python 2.7.3 (default, Jan  2 2013, 13:56:14)
  [GCC 4.7.2] on linux2
  Type help, copyright, credits or license for more information.
   import psutil
  

-- System Information:
Debian Release: 7.0
  APT prefers testing-updates
  APT policy: (500, 'testing-updates'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-openvz-amd64 (SMP w/24 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-psutil depends on:
ii  libc6   2.13-37
ii  python  2.7.3~rc2-1
ii  python-support  1.0.15

python-psutil recommends no packages.

python-psutil suggests no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org