Найти - Пользователи
Полная версия: CorePy &Ubuntu
Начало » Python для новичков » CorePy &Ubuntu
1
guranvir
Вот пытаюсь подключить модуль CorePy к python 2.6 и выполняю как написано:
After downloading CorePy, change to the root CorePy directory
($PWD/corepy-trunk if you use a subversion checkout) and execute the setup.py
script:

$ cd $COREPY
$ python setup.py build_ext -i -f

$COREPY is the path to the root of the CorePy source tree. The -i parameter is
a must – this instructs setup.py to compile the modules ‘in-place’ in the
source tree. Omitting this flag causes the compiled modules to be placed at the
top of the source tree; CorePy won't be able to find the modules unless they
are compiled ‘in-place’.
Перешел и запустил скрипт. Распознали архитектуру и все же вот такой вывод в консоль:
gur@gur-desktop:~/COREPY$ sudo python setup.py build_ext -i -f
[sudo] password for gur:
Python platform: linux-i686
CorePy platform: x86 linux

running build_ext
building 'corepy.lib.extarray.extarray' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.6 -c corepy/lib/extarray/extarray.c -o build/temp.linux-i686-2.6/corepy/lib/extarray/extarray.o
In file included from corepy/lib/extarray/extarray.c:9:
corepy/lib/extarray/alloc.h:34:1: warning: "_XOPEN_SOURCE" redefined
In file included from /usr/include/limits.h:27,
from /usr/lib/gcc/i486-linux-gnu/4.4.3/include-fixed/limits.h:122,
from /usr/lib/gcc/i486-linux-gnu/4.4.3/include-fixed/syslimits.h:7,
from /usr/lib/gcc/i486-linux-gnu/4.4.3/include-fixed/limits.h:11,
from /usr/include/python2.6/Python.h:19,
from corepy/lib/extarray/extarray.c:1:
/usr/include/features.h:160:1: warning: this is the location of the previous definition
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions build/temp.linux-i686-2.6/corepy/lib/extarray/extarray.o -o /home/gur/COREPY/corepy/lib/extarray/extarray.so
building 'corepy.arch.x86.platform.linux._x86_exec' extension
swigging corepy/arch/x86/platform/linux/x86_exec.i to corepy/arch/x86/platform/linux/x86_exec_wrap.c
swig -python -O -Wall -o corepy/arch/x86/platform/linux/x86_exec_wrap.c corepy/arch/x86/platform/linux/x86_exec.i
unable to execute swig: No such file or directory
error: command 'swig' failed with exit status 1
Как решить проблему?
Система: Ubuntu 10.04
GCC: version 4.4.3
Python: 2.6
CorePy:CorePy 1.0 (SC08 Release)
guranvir
А оказалось вот как: установить пакет SWIG
guranvir
Ребят трабла( Все вроде компилируется, но вот это:
With the modules compiled, CorePy may be used by adding the source tree to your
PYTHONPATH:
export PYTHONPATH=$COREPY:$PYTHONPATH
Никакого эффекта не дает, $COREPY это путь к исходникам и модулям corepy. Если то ставил сие изобретение, то поясните как подружить Python и Corepy
Андрей Светлов
Надо полагать, это нужно в ~/.profile прописывать.
А что, python setup.py install не помог?
guranvir
Вся фишка что помог но не с этим. )
sypper-pit
как я понял из логов , ругается на то что не знает куда складывать файлы
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB