В Sun, 23 Oct 2011 13:34:10 +0400 Вячеслав Козлов <barabans...@gmail.com> пишет:
> Делаю по README. Запускаю cython purple.pyx -I libpurple/. выдает > следующее: Error converting Pyrex file to C: > ------------------------------------------------------------ > ... > > iter = plugin.purple_plugins_get_protocols() > protocol_list = [] > while iter: > pp = <plugin.PurplePlugin*> iter.data > if pp.info and pp.info.name: > ^ > ------------------------------------------------------------ > > /home/user/python-purple/purple.pyx:430:17: Cannot convert > 'PurplePluginInfo *' to Python object > > Error converting Pyrex file to C: > ------------------------------------------------------------ > ... > iter = blist.purple_find_buddies(self._get_structure(), NULL) > > while iter: > c_alias = NULL > c_buddy = <blist.PurpleBuddy *> iter.data > if <blist.PurpleBuddy *> c_buddy and \ > ^ > ------------------------------------------------------------ > > /home/user/python-purple/account.pyx:570:19: Cannot convert > 'PurpleBuddy *' to Python object > > Если выполнить $ python2.5 setup_dist.py build выдает вот что: > running build > running build_ext > building 'purple' extension > gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall > -Wstrict-prototypes -fPIC -I/usr/include/python2.6 -c c_purple.c -o > build/temp.linux-i686-2.6/c_purple.o -I/usr/local/include/libpurple > -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include > gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall > -Wstrict-prototypes -fPIC -I/usr/include/python2.6 -c purple.c -o > build/temp.linux-i686-2.6/purple.o -I/usr/local/include/libpurple > -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include > purple.c:1:2: error: #error Do not use this file, it is the result of > a failed Cython compilation. > error: command 'gcc' failed with exit status 1 Если следовать http://developer.pidgin.im/wiki/PythonHowTo то сначала нужно выполнить python2.5 setup.py build И проверьте, что установлены все зависимости. -- Best Regards, Yuri Kozlov -- To UNSUBSCRIBE, email to debian-russian-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20111023143954.1942f...@keeper.home.local