Python论坛  - 讨论区

标题:[python-chinese] python 2.5.1的问题

2007年12月03日 星期一 12:36

张志斌 zhangzhibin在software.ict.ac.cn
星期一 十二月 3 12:36:58 HKT 2007

ÎÒÓÐÒ»¸ö³ÌÐòÔÚ2.4.4ÏÂÅÜûÓÐÎÊÌ⣬µ«ÊÇÔÚ2.5.1ÏÂÏÔʾÏÂÃæµÄ´íÎó£º
ImportError: /home/zzb/test/PI/PI/align.so: undefined symbol: _PyArg_ParseTupleAndKeywords_SizeT

ÎÒ²éÁËÒ»ÏÂÔÚ2.4.4Öв¢Ã»ÓÐÕâÑùµÄÒ»¸öº¯Êý£¬ËƺõÊÇ2.5.1ÖÐÐÂÒýÈëµÄ¡£
²»ÖªµÀ´ó¼ÒÓÐûÓÐÅöµ½¹ýÕâÑùµÄÎÊÌ⣬¿É·ñ°ï¸öæ½â´ðһϡ£


 

 
 best regards !

 Zhibin Zhang  Ph.D.
 Information Security Research Center,
 Institute of Computing Technology,
 Chinese Academy of Sciences
 Beijing,P.R.China
 P.O.Box: 2704
 Zip code: 100080
 Email:  zhangzhibin在software.ict.ac.cn  
 Phone: 86-10-62600997
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20071203/8e095f79/attachment.html 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2007年12月03日 星期一 12:43

头太晕 torrycn在gmail.com
星期一 十二月 3 12:43:40 HKT 2007

ÄǸö.soÎļþ,ÊÇÔÚpy2.4ϱàÒëµÄ,¿Ï¶¨²»ÐÐ. ÄãÓ¦¸ÃÖØÐ±àÒë.  »òÕßÔÚpy2.4»·¾³±àÒëʱ´øÉÏpy2.4µÄ¾²Ì¬¿âÒ²ÐíÒ²¿ÉÐÐ.

ÔÚ07-12-3£¬ÕÅÖ¾±ó <zhangzhibin在software.ict.ac.cn> дµÀ£º
>
>  ÎÒÓÐÒ»¸ö³ÌÐòÔÚ2.4.4ÏÂÅÜûÓÐÎÊÌ⣬µ«ÊÇÔÚ2.5.1ÏÂÏÔʾÏÂÃæµÄ´íÎó£º
> ImportError: /home/zzb/test/PI/PI/align.so: undefined symbol:
> _PyArg_ParseTupleAndKeywords_SizeT
>
> ÎÒ²éÁËÒ»ÏÂÔÚ2.4.4Öв¢Ã»ÓÐÕâÑùµÄÒ»¸öº¯Êý£¬ËƺõÊÇ2.5.1ÖÐÐÂÒýÈëµÄ¡£
> ²»ÖªµÀ´ó¼ÒÓÐûÓÐÅöµ½¹ýÕâÑùµÄÎÊÌ⣬¿É·ñ°ï¸öæ½â´ðһϡ£
>
>
>
>
>  best regards !
>
>  Zhibin Zhang  Ph.D.
>  Information Security Research Center,
>  Institute of Computing Technology,
>  Chinese Academy of Sciences
>  Beijing,P.R.China
>  P.O.Box: 2704
>  Zip code: 100080
>  Email:  zhangzhibin在software.ict.ac.cn
>  Phone: 86-10-62600997
>
> _______________________________________________
> python-chinese
> Post: send python-chinese在lists.python.cn
> Subscribe: send subscribe to python-chinese-request在lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
>
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20071203/ceb7701b/attachment.html 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2007年12月03日 星期一 12:55

张志斌 zhangzhibin在software.ict.ac.cn
星期一 十二月 3 12:55:02 HKT 2007

ÄúºÃ£¬Ð»Ð»ÄúµÄ»Ø¸´¡£
ÎÒÔÚ2.5.1ÏÂÖØÐ±àÒëÁË£¬»¹ÊÇÓÐÏàͬµÄ´íÎó£¬
[root在A610r-F PI]# make clean
find . -name "*.pyc" | xargs rm -f
rm -f PI/align.c
rm -rf build
[root在A610r-F PI]# make
python setup.py build
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.5
creating build/lib.linux-x86_64-2.5/PI
copying PI/RandomArray.py -> build/lib.linux-x86_64-2.5/PI
copying PI/__init__.py -> build/lib.linux-x86_64-2.5/PI
copying PI/phylogeny.py -> build/lib.linux-x86_64-2.5/PI
copying PI/MLab.py -> build/lib.linux-x86_64-2.5/PI
copying PI/UserArray.py -> build/lib.linux-x86_64-2.5/PI
copying PI/Matrix.py -> build/lib.linux-x86_64-2.5/PI
copying PI/Precision.py -> build/lib.linux-x86_64-2.5/PI
copying PI/ArrayPrinter.py -> build/lib.linux-x86_64-2.5/PI
copying PI/distance.py -> build/lib.linux-x86_64-2.5/PI
copying PI/LinearAlgebra.py -> build/lib.linux-x86_64-2.5/PI
copying PI/tree.py -> build/lib.linux-x86_64-2.5/PI
copying PI/output.py -> build/lib.linux-x86_64-2.5/PI
copying PI/input.py -> build/lib.linux-x86_64-2.5/PI
copying PI/multialign.py -> build/lib.linux-x86_64-2.5/PI
copying PI/numeric_version.py -> build/lib.linux-x86_64-2.5/PI
running build_ext
pyrexing PI/align.pyx to PI/align.c
building 'PI.align' extension
creating build/temp.linux-x86_64-2.5
creating build/temp.linux-x86_64-2.5/PI
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/local/include/python2.5 -c PI/align.c -o build/temp.linux-x86_64-2.5/PI/align.o
PI/align.c: In function `__pyx_f_5align_SmithWaterman':
PI/align.c:704: warning: '__pyx_v_ni' might be used uninitialized in this function
PI/align.c:705: warning: '__pyx_v_nj' might be used uninitialized in this function
PI/align.c: In function `__pyx_f_5align_NeedlemanWunsch':
PI/align.c:89: warning: '__pyx_v_ni' might be used uninitialized in this function
PI/align.c:90: warning: '__pyx_v_nj' might be used uninitialized in this function
PI/align.c: At top level:
PI/Numeric/__multiarray_api.h:944: warning: '_import_array' defined but not used
gcc -pthread -shared build/temp.linux-x86_64-2.5/PI/align.o -o build/lib.linux-x86_64-2.5/PI/align.so
find build -name align.so | xargs  cp  PI
cp: omitting directory `PI'
make: *** [all] Error 123
[root在A610r-F PI]# cp build/lib.linux-x86_64-2.5/PI/align.so PI
cp: overwrite `PI/align.so'? y
[root在A610r-F PI]# ./main.py -g -p icmp.dump
Traceback (most recent call last):
  File "./main.py", line 11, in ?
    from PI import *
  File "/home/zzb/test/PI/PI/distance.py", line 18, in ?
    import align, zlib
ImportError: /home/zzb/test/PI/PI/align.so: undefined symbol: _PyArg_ParseTupleAndKeywords_SizeT


  ----- Original Message ----- 
  From: Í·Ì«ÔÎ 
  To: python-chinese在lists.python.cn 
  Sent: Monday, December 03, 2007 12:43 PM
  Subject: Re: [python-chinese] python 2.5.1µÄÎÊÌâ


  ÄǸö.soÎļþ,ÊÇÔÚpy2.4ϱàÒëµÄ,¿Ï¶¨²»ÐÐ. ÄãÓ¦¸ÃÖØÐ±àÒë.  »òÕßÔÚpy2.4»·¾³±àÒëʱ´øÉÏpy2.4µÄ¾²Ì¬¿âÒ²ÐíÒ²¿ÉÐÐ.


  ÔÚ07-12-3£¬ÕÅÖ¾±ó <zhangzhibin在software.ict.ac.cn > дµÀ£º
    ÎÒÓÐÒ»¸ö³ÌÐòÔÚ2.4.4ÏÂÅÜûÓÐÎÊÌ⣬µ«ÊÇÔÚ2.5.1ÏÂÏÔʾÏÂÃæµÄ´íÎó£º
    ImportError: /home/zzb/test/PI/PI/align.so: undefined symbol: _PyArg_ParseTupleAndKeywords_SizeT

    ÎÒ²éÁËÒ»ÏÂÔÚ2.4.4Öв¢Ã»ÓÐÕâÑùµÄÒ»¸öº¯Êý£¬ËƺõÊÇ2.5.1ÖÐÐÂÒýÈëµÄ¡£
    ²»ÖªµÀ´ó¼ÒÓÐûÓÐÅöµ½¹ýÕâÑùµÄÎÊÌ⣬¿É·ñ°ï¸öæ½â´ðһϡ£





     best regards !

     Zhibin Zhang  Ph.D.
     Information Security Research Center,
     Institute of Computing Technology,
     Chinese Academy of Sciences
     Beijing,P.R.China
     P.O.Box: 2704
     Zip code: 100080
     Email:  zhangzhibin在software.ict.ac.cn  
     Phone: 86-10-62600997


    _______________________________________________
    python-chinese
    Post: send python-chinese在lists.python.cn 
    Subscribe: send subscribe to python-chinese-request在lists.python.cn
    Unsubscribe: send unsubscribe to   python-chinese-request在lists.python.cn
    Detail Info: http://python.cn/mailman/listinfo/python-chinese





------------------------------------------------------------------------------


  _______________________________________________
  python-chinese
  Post: send python-chinese在lists.python.cn
  Subscribe: send subscribe to python-chinese-request在lists.python.cn
  Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
  Detail Info: http://python.cn/mailman/listinfo/python-chinese
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20071203/e2a45f60/attachment.htm 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2007年12月03日 星期一 13:12

头太晕 torrycn在gmail.com
星期一 十二月 3 13:12:33 HKT 2007

ÔÚ07-12-3£¬ÕÅÖ¾±ó <zhangzhibin在software.ict.ac.cn> дµÀ£º
>
> gcc -pthread -shared build/temp.linux-x86_64-2.5/PI/align.o -o
> build/lib.linux-x86_64-2.5/PI/align.so
> find build -name align.so | xargs  cp  PI
> cp: omitting directory `PI'
> make: *** [all] Error 123
> [root在A610r-F PI]# cp build/lib.linux-x86_64-2.5/PI/align.so PI
> cp: overwrite `PI/align.so'? y
>

ÄãÕâÊÇÔÚ¸Éɶ? ÎÒ¾õµÃÄã±àÒëµÄ»¹ÊÇÓÐÎÊÌâ.
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20071203/e89c6136/attachment.htm 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2007年12月03日 星期一 13:14

3751 lwm3751在gmail.com
星期一 十二月 3 13:14:55 HKT 2007

你引用的库也应该是在2.5下面编译的。boost::python?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://python.cn/pipermail/python-chinese/attachments/20071203/819b3d65/attachment.htm 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2007年12月03日 星期一 13:39

张志斌 zhangzhibin在software.ict.ac.cn
星期一 十二月 3 13:39:52 HKT 2007

ÕâÒ»²½²»ÊDZàÒëÎÊÌ⣬ԭÀ´µÄmakefile½Å±¾ÖÐÓÐÒ»¸ö½«align.soÎļþ¿½±´µ½Ä³Ò»Ä¿Â¼ÏµIJÙ×÷£¬µ«ÊÇÄǸö½Å±¾Ð´µÄÓеãÎÊÌ⣬ÎÒÖ»²»¹ýÊÖ¹¤°ÑËü¿¼¹ýÈ¥¶øÒÑ¡£ÄǸöalign.soÒѾ­ÊÇ×îбàÒëµÄ°æ±¾ÁË¡£
  ----- Original Message ----- 
  From: Í·Ì«ÔÎ 
  To: python-chinese在lists.python.cn 
  Sent: Monday, December 03, 2007 1:12 PM
  Subject: Re: [python-chinese] python 2.5.1µÄÎÊÌâ





  ÔÚ07-12-3£¬ÕÅÖ¾±ó <zhangzhibin在software.ict.ac.cn> дµÀ£º
    gcc -pthread -shared build/temp.linux-x86_64-2.5/PI/align.o -o build/lib.linux-x86_64-2.5/PI/align.so
    find build -name align.so | xargs  cp  PI
    cp: omitting directory `PI'
    make: *** [all] Error 123
    [root在A610r-F PI]# cp build/lib.linux-x86_64-2.5/PI/align.so PI
    cp: overwrite `PI/align.so'? y

  ÄãÕâÊÇÔÚ¸Éɶ? ÎÒ¾õµÃÄã±àÒëµÄ»¹ÊÇÓÐÎÊÌâ. 







------------------------------------------------------------------------------


  _______________________________________________
  python-chinese
  Post: send python-chinese在lists.python.cn
  Subscribe: send subscribe to python-chinese-request在lists.python.cn
  Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
  Detail Info: http://python.cn/mailman/listinfo/python-chinese
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20071203/6ba130ee/attachment.html 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

如下红色区域有误,请重新填写。

    你的回复:

    请 登录 后回复。还没有在Zeuux哲思注册吗?现在 注册 !

    Zeuux © 2025

    京ICP备05028076号