psi test fail

24 views
Skip to first unread message

o.fou...@iktios.fr

unread,
Nov 3, 2011, 3:34:53 PM11/3/11
to psi-d...@googlegroups.com
Hello,

I try to install psi but I get an error:

ImportError: build/lib.linux-i686-3.2/psi/_psi.cpython-32mu.so: undefined symbol: PyCObject_FromVoidPtr

best regards

Olivier Fournier

python:

Python 3.2.1a0 (default, May 5 2011, 00:47:12)
[GCC 4.6.1 20110428 (prerelease)] on linux2

debian:

Linux debian 2.6.32-5-686 #1 SMP Mon Oct 3 04:15:24 UTC 2011 i686 GNU/Linux


psi:

hg clone https://bitbucket.org/chrismiles/psi


python3.2 setup.py build
running build
running build_py
creating build
creating build/lib.linux-i686-3.2
creating build/lib.linux-i686-3.2/psi
copying lib/psi/_version.py -> build/lib.linux-i686-3.2/psi
copying lib/psi/__init__.py -> build/lib.linux-i686-3.2/psi
Skipping implicit fixer: buffer
Skipping implicit fixer: idioms
Skipping implicit fixer: set_literal
Skipping implicit fixer: ws_comma
running build_ext
building 'psi._psi' extension
creating build/temp.linux-i686-3.2
creating build/temp.linux-i686-3.2/src
creating build/temp.linux-i686-3.2/src/arch
gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DPYMALLOC -DLINUX -DLINUX2_6_32 -DLINUX2_6 -DLINUX2_6_MINOR=32 -Iinclude -I/usr/include/python3.2mu -c src/util.c -o build/temp.linux-i686-3.2/src/util.o
src/util.c: In function �PsiTimeSpec_New�:
src/util.c:370: warning: implicit declaration of function �PyCObject_AsVoidPtr�
src/util.c:370: warning: assignment makes pointer from integer without a cast
gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DPYMALLOC -DLINUX -DLINUX2_6_32 -DLINUX2_6 -DLINUX2_6_MINOR=32 -Iinclude -I/usr/include/python3.2mu -c src/_psimodule.c -o build/temp.linux-i686-3.2/src/_psimodule.o
src/_psimodule.c: In function �PyInit__psi�:
src/_psimodule.c:373: warning: implicit declaration of function �PyCObject_FromVoidPtr�
src/_psimodule.c:373: warning: assignment makes pointer from integer without a cast
gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DPYMALLOC -DLINUX -DLINUX2_6_32 -DLINUX2_6 -DLINUX2_6_MINOR=32 -Iinclude -I/usr/include/python3.2mu -c src/timespec.c -o build/temp.linux-i686-3.2/src/timespec.o
gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DPYMALLOC -DLINUX -DLINUX2_6_32 -DLINUX2_6 -DLINUX2_6_MINOR=32 -Iinclude -I/usr/include/python3.2mu -c src/arch/posix_utils.c -o build/temp.linux-i686-3.2/src/arch/posix_utils.o
gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DPYMALLOC -DLINUX -DLINUX2_6_32 -DLINUX2_6 -DLINUX2_6_MINOR=32 -Iinclude -I/usr/include/python3.2mu -c src/arch/linux_psi.c -o build/temp.linux-i686-3.2/src/arch/linux_psi.o
gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DPYMALLOC -DLINUX -DLINUX2_6_32 -DLINUX2_6 -DLINUX2_6_MINOR=32 -Iinclude -I/usr/include/python3.2mu -c src/arch/linux_utils.c -o build/temp.linux-i686-3.2/src/arch/linux_utils.o
gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DPYMALLOC -DLINUX -DLINUX2_6_32 -DLINUX2_6 -DLINUX2_6_MINOR=32 -Iinclude -I/usr/include/python3.2mu -c src/arch/getloadavg.c -o build/temp.linux-i686-3.2/src/arch/getloadavg.o
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions build/temp.linux-i686-3.2/src/util.o build/temp.linux-i686-3.2/src/_psimodule.o build/temp.linux-i686-3.2/src/timespec.o build/temp.linux-i686-3.2/src/arch/posix_utils.o build/temp.linux-i686-3.2/src/arch/linux_psi.o build/temp.linux-i686-3.2/src/arch/linux_utils.o build/temp.linux-i686-3.2/src/arch/getloadavg.o -o build/lib.linux-i686-3.2/psi/_psi.cpython-32mu.so
building 'psi.arch' extension
gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DPYMALLOC -DLINUX -DLINUX2_6_32 -DLINUX2_6 -DLINUX2_6_MINOR=32 -Iinclude -I/usr/include/python3.2mu -c src/util.c -o build/temp.linux-i686-3.2/src/util.o
src/util.c: In function �PsiTimeSpec_New�:
src/util.c:370: warning: implicit declaration of function �PyCObject_AsVoidPtr�
src/util.c:370: warning: assignment makes pointer from integer without a cast
gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DPYMALLOC -DLINUX -DLINUX2_6_32 -DLINUX2_6 -DLINUX2_6_MINOR=32 -Iinclude -I/usr/include/python3.2mu -c src/archmodule.c -o build/temp.linux-i686-3.2/src/archmodule.o
gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DPYMALLOC -DLINUX -DLINUX2_6_32 -DLINUX2_6 -DLINUX2_6_MINOR=32 -Iinclude -I/usr/include/python3.2mu -c src/arch.c -o build/temp.linux-i686-3.2/src/arch.o
gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DPYMALLOC -DLINUX -DLINUX2_6_32 -DLINUX2_6 -DLINUX2_6_MINOR=32 -Iinclude -I/usr/include/python3.2mu -c src/arch/posix_arch.c -o build/temp.linux-i686-3.2/src/arch/posix_arch.o
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions build/temp.linux-i686-3.2/src/util.o build/temp.linux-i686-3.2/src/archmodule.o build/temp.linux-i686-3.2/src/arch.o build/temp.linux-i686-3.2/src/arch/posix_arch.o -o build/lib.linux-i686-3.2/psi/arch.cpython-32mu.so
building 'psi.mount' extension
gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DPYMALLOC -DLINUX -DLINUX2_6_32 -DLINUX2_6 -DLINUX2_6_MINOR=32 -Iinclude -I/usr/include/python3.2mu -c src/util.c -o build/temp.linux-i686-3.2/src/util.o
src/util.c: In function �PsiTimeSpec_New�:
src/util.c:370: warning: implicit declaration of function �PyCObject_AsVoidPtr�
src/util.c:370: warning: assignment makes pointer from integer without a cast
gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DPYMALLOC -DLINUX -DLINUX2_6_32 -DLINUX2_6 -DLINUX2_6_MINOR=32 -Iinclude -I/usr/include/python3.2mu -c src/mountmodule.c -o build/temp.linux-i686-3.2/src/mountmodule.o
gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DPYMALLOC -DLINUX -DLINUX2_6_32 -DLINUX2_6 -DLINUX2_6_MINOR=32 -Iinclude -I/usr/include/python3.2mu -c src/mount.c -o build/temp.linux-i686-3.2/src/mount.o
src/mount.c: In function �MountBase_refresh�:
src/mount.c:289: warning: �mounti� may be used uninitialized in this function
gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DPYMALLOC -DLINUX -DLINUX2_6_32 -DLINUX2_6 -DLINUX2_6_MINOR=32 -Iinclude -I/usr/include/python3.2mu -c src/arch/posix_mount.c -o build/temp.linux-i686-3.2/src/arch/posix_mount.o
gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DPYMALLOC -DLINUX -DLINUX2_6_32 -DLINUX2_6 -DLINUX2_6_MINOR=32 -Iinclude -I/usr/include/python3.2mu -c src/arch/linux_mount.c -o build/temp.linux-i686-3.2/src/arch/linux_mount.o
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions build/temp.linux-i686-3.2/src/util.o build/temp.linux-i686-3.2/src/mountmodule.o build/temp.linux-i686-3.2/src/mount.o build/temp.linux-i686-3.2/src/arch/posix_mount.o build/temp.linux-i686-3.2/src/arch/linux_mount.o -o build/lib.linux-i686-3.2/psi/mount.cpython-32mu.so
building 'psi.process' extension
gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DPYMALLOC -DLINUX -DLINUX2_6_32 -DLINUX2_6 -DLINUX2_6_MINOR=32 -Iinclude -I/usr/include/python3.2mu -c src/util.c -o build/temp.linux-i686-3.2/src/util.o
src/util.c: In function �PsiTimeSpec_New�:
src/util.c:370: warning: implicit declaration of function �PyCObject_AsVoidPtr�
src/util.c:370: warning: assignment makes pointer from integer without a cast
gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DPYMALLOC -DLINUX -DLINUX2_6_32 -DLINUX2_6 -DLINUX2_6_MINOR=32 -Iinclude -I/usr/include/python3.2mu -c src/processmodule.c -o build/temp.linux-i686-3.2/src/processmodule.o
gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DPYMALLOC -DLINUX -DLINUX2_6_32 -DLINUX2_6 -DLINUX2_6_MINOR=32 -Iinclude -I/usr/include/python3.2mu -c src/process.c -o build/temp.linux-i686-3.2/src/process.o
gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DPYMALLOC -DLINUX -DLINUX2_6_32 -DLINUX2_6 -DLINUX2_6_MINOR=32 -Iinclude -I/usr/include/python3.2mu -c src/processtable.c -o build/temp.linux-i686-3.2/src/processtable.o
gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DPYMALLOC -DLINUX -DLINUX2_6_32 -DLINUX2_6 -DLINUX2_6_MINOR=32 -Iinclude -I/usr/include/python3.2mu -c src/arch/posix_utils.c -o build/temp.linux-i686-3.2/src/arch/posix_utils.o
gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DPYMALLOC -DLINUX -DLINUX2_6_32 -DLINUX2_6 -DLINUX2_6_MINOR=32 -Iinclude -I/usr/include/python3.2mu -c src/arch/procfs_utils.c -o build/temp.linux-i686-3.2/src/arch/procfs_utils.o
gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DPYMALLOC -DLINUX -DLINUX2_6_32 -DLINUX2_6 -DLINUX2_6_MINOR=32 -Iinclude -I/usr/include/python3.2mu -c src/arch/linux_process.c -o build/temp.linux-i686-3.2/src/arch/linux_process.o
gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DPYMALLOC -DLINUX -DLINUX2_6_32 -DLINUX2_6 -DLINUX2_6_MINOR=32 -Iinclude -I/usr/include/python3.2mu -c src/arch/linux_utils.c -o build/temp.linux-i686-3.2/src/arch/linux_utils.o
gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DPYMALLOC -DLINUX -DLINUX2_6_32 -DLINUX2_6 -DLINUX2_6_MINOR=32 -Iinclude -I/usr/include/python3.2mu -c src/arch/procfs_processtable.c -o build/temp.linux-i686-3.2/src/arch/procfs_processtable.o
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions build/temp.linux-i686-3.2/src/util.o build/temp.linux-i686-3.2/src/processmodule.o build/temp.linux-i686-3.2/src/process.o build/temp.linux-i686-3.2/src/processtable.o build/temp.linux-i686-3.2/src/arch/posix_utils.o build/temp.linux-i686-3.2/src/arch/procfs_utils.o build/temp.linux-i686-3.2/src/arch/linux_process.o build/temp.linux-i686-3.2/src/arch/linux_utils.o build/temp.linux-i686-3.2/src/arch/procfs_processtable.o -o build/lib.linux-i686-3.2/psi/process.cpython-32mu.so

python3.2 setup.py test

running test
running build
running build_py
running build_ext
compiling helper apps for tests
gcc -pthread -m32 tests/app.c -o tests/app32
gcc -pthread -m64 tests/app.c -o tests/app64
In file included from /usr/include/features.h:378,
from /usr/include/stdio.h:28,
from tests/app.c:4:
/usr/include/gnu/stubs.h:9:27: error: gnu/stubs-64.h: Aucun fichier ou dossier de ce type
app64 not built, some tests will be skipped
compiling Linux helper app for tests
gcc -pthread tests/linux_argvapp.c -o tests/linux_argvapp
Traceback (most recent call last):
File "setup.py", line 614, in<module>
cmdclass = COMMANDS)
File "/usr/lib/python3.2/distutils/core.py", line 149, in setup
dist.run_commands()
File "/usr/lib/python3.2/distutils/dist.py", line 919, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.2/distutils/dist.py", line 938, in run_command
cmd_obj.run()
File "setup.py", line 423, in run
tests = unittest.TestLoader().loadTestsFromNames(testfiles)
File "/usr/lib/python3.2/unittest/loader.py", line 132, in loadTestsFromNames
suites = [self.loadTestsFromName(name, module) for name in names]
File "/usr/lib/python3.2/unittest/loader.py", line 132, in<listcomp>
suites = [self.loadTestsFromName(name, module) for name in names]
File "/usr/lib/python3.2/unittest/loader.py", line 91, in loadTestsFromName
module = __import__('.'.join(parts_copy))
File "/opt/telechargement/psi/tests/mount_test.py", line 35, in<module>
import psi.arch
File "build/lib.linux-i686-3.2/psi/__init__.py", line 43, in<module>
from psi._psi import AttrNotAvailableError, AttrInsufficientPrivsError, \
ImportError: build/lib.linux-i686-3.2/psi/_psi.cpython-32mu.so: undefined symbol: PyCObject_FromVoidPtr

Floris Bruynooghe

unread,
Nov 3, 2011, 6:41:48 PM11/3/11
to psi-d...@googlegroups.com, o.fou...@iktios.fr
Hi Olivier,

On 3 November 2011 19:34, o.fou...@iktios.fr <o.fou...@iktios.fr> wrote:
> I try to install psi but I get an error:
>
> ImportError: build/lib.linux-i686-3.2/psi/_psi.cpython-32mu.so: undefined
> symbol: PyCObject_FromVoidPtr

I'm afraid this is because I haven't updated the code to use a newer
Python/C API. psi uses the old PyCObject API, which was the only one
available when we wrote that part, rather then the newer PyCapsule
one. But what I didn't realise is that they stopped providing the
PyCObject API in 3.2, that's a bit sooner then I expected even though
I knew there where deprecation warnings in 2.7 and 3.1.

I'll check out how much work it is to update psi and then do a release
with that fix in. Can't make any promises on a timeline however. In
the mean time you'll have to revert the a version of python before 3.2
I'm afraid.

Regards,
Floris

--
Debian GNU/Linux -- The Power of Freedom
www.debian.org | www.gnu.org | www.kernel.org

Floris Bruynooghe

unread,
Nov 3, 2011, 9:44:53 PM11/3/11
to psi-d...@googlegroups.com, o.fou...@iktios.fr
Hello again,

On 3 November 2011 22:41, Floris Bruynooghe <fl...@devork.be> wrote:
> I'll check out how much work it is to update psi and then do a release
> with that fix in.  Can't make any promises on a timeline however.

I've checked in a fix at our repository:
https://bitbucket.org/chrismiles/psi/ so you can use a snapshot from
there. A release will hopefully follow soon.

Reply all
Reply to author
Forward
0 new messages