Уведомления

Группа в Telegram: @pythonsu

#1 Авг. 25, 2010 13:48:14

guranvir
От:
Зарегистрирован: 2010-03-16
Сообщения: 186
Репутация: +  0  -
Профиль   Отправить e-mail  

CorePy &Ubuntu

Вот пытаюсь подключить модуль 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)



Отредактировано (Авг. 25, 2010 13:52:48)

Офлайн

#2 Авг. 25, 2010 14:47:25

guranvir
От:
Зарегистрирован: 2010-03-16
Сообщения: 186
Репутация: +  0  -
Профиль   Отправить e-mail  

CorePy &Ubuntu

А оказалось вот как: установить пакет SWIG



Офлайн

#3 Ноя. 6, 2010 20:37:36

guranvir
От:
Зарегистрирован: 2010-03-16
Сообщения: 186
Репутация: +  0  -
Профиль   Отправить e-mail  

CorePy &Ubuntu

Ребят трабла( Все вроде компилируется, но вот это:
With the modules compiled, CorePy may be used by adding the source tree to your
PYTHONPATH:
export PYTHONPATH=$COREPY:$PYTHONPATH
Никакого эффекта не дает, $COREPY это путь к исходникам и модулям corepy. Если то ставил сие изобретение, то поясните как подружить Python и Corepy



Офлайн

#4 Ноя. 6, 2010 22:39:20

Андрей Светлов
От:
Зарегистрирован: 2007-05-15
Сообщения: 3137
Репутация: +  14  -
Профиль   Адрес электронной почты  

CorePy &Ubuntu

Надо полагать, это нужно в ~/.profile прописывать.
А что, python setup.py install не помог?



Офлайн

#5 Ноя. 6, 2010 23:20:07

guranvir
От:
Зарегистрирован: 2010-03-16
Сообщения: 186
Репутация: +  0  -
Профиль   Отправить e-mail  

CorePy &Ubuntu

Вся фишка что помог но не с этим. )



Офлайн

#6 Ноя. 7, 2010 17:23:41

sypper-pit
От: Ulan-Ude(msk)
Зарегистрирован: 2009-01-30
Сообщения: 1102
Репутация: +  6  -
Профиль   Отправить e-mail  

CorePy &Ubuntu

как я понял из логов , ругается на то что не знает куда складывать файлы

Офлайн

Board footer

Модераторировать

Powered by DjangoBB

Lo-Fi Version