From: Grzegorz A. H. <gr...@te...> - 2002-01-01 21:50:09
|
On Tue, Jan 01, 2002 at 10:45:43PM +0200, Juha-Matti Tapio wrote: > > Output/effect remains the same as root or user. Same messages with both > > python versions (1.5 and 2.1). > > Just a thought. Do you have python-dev package installed? Yes. The only problem is with installation: only _alpy.so get's installed, none other files are copied anywhere. The same happens with python 2.1, which I installed from source, but there's just one big source file to download from www.python.org, so I guess I don't need anything more. > Currently the cvs-version seems to build nicely with the newest 2.1 and > 2.2 Debian packages. Yes. Please put somewhere (maybe that lone README?) that those versions are required to run: Python 1.5.2 (#0, Dec 27 2000, 13:59:38) [GCC 2.95.2 20000220 (Debian GNU/Linux)] on linux2 Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam >>> import alpy Traceback (innermost last): File "<stdin>", line 1, in ? File "alpy.py", line 23, in ? import _alpy, sys ImportError: /usr/lib/python1.5/site-packages/_alpy.so: undefined symbol: PyObject_DEL >>> Python 2.1.1 (#1, Aug 25 2001, 15:17:34) [GCC 2.95.2 20000220 (Debian GNU/Linux)] on linux2 Type "copyright", "credits" or "license" for more information. >>> import alpy >>> print alpy.install_allegro <function install_allegro at 0x8174afc> >>> BTW, I figured out that Allegro just doesn't work with interactive python sessions (at least for me), because I tried to build my own pyallegro version from scratch. However, the following script doesn't work as expected for me: #!/usr/bin/env python2.1 from alpy import * install_allegro(SYSTEM_AUTODETECT) install_keyboard() print "Hey man" print set_gfx_mode(GFX_AUTODETECT, 320, 200) readkey() I would expect it to set a graphic mode, but it doesn't, it prints None. readkey works though. -- Grzegorz Adam Hankiewicz gr...@te... http://gradha.infierno.org/ |