Python论坛  - 讨论区

标题:[python-chinese] wxPython安装问题

2007年05月05日 星期六 13:27

Dormouse Young dormouse.young在gmail.com
星期六 五月 5 13:27:57 HKT 2007

ÎÒGoogleÁËÒ»¸öÍíÉÏ£¬Ã»ÓÐÕÒµ½´ð°¸¡£Çë¸÷λ´Í½Ì¡£

ÎÒÏÂÔØÁËwxPython-src-2.8.3.0.tar.bz2ºÍPython-2.5.1.tar.bz2
ÎÒµÄϵͳÓõÄÊÇMagicLinux2.0,ϵͳԭÀ´ÊÇpython 2.4µÄ¡£
ÎÒ°´ÕÕ˵Ã÷°²×°ÁËwxPython-src-2.8.3.0.tar.bz2ºÍPython-2.5.1.tar.bz2
Ò»¶¨ÒªÔËÐÐÁË
export LD_LIBRARY_PATH=/opt/wx/2.8lib
export PYTHONPATH=$WXDIR/wxPython
²ÅÄÜÔËÐк¬ÓÐ import wxµÄ³ÌÐò¡£
ÎÒ²»Ïëÿ´Î¶¼ÔËÐÐÕâÁ½Ãû»°£¬ÎÒ¸ÃÔõô°ì£¿
ÎÒÔÚ~/.bashrcÎļþÖÐÌí¼ÓÁËÕâÁ½¾äºó£¬ÔÚÖÕ¶ËÄÜÔËÐк¬ÓÐimport wxµÄ³ÌÐò¡£
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20070505/169f4caf/attachment-0001.html 

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

2007年05月05日 星期六 15:48

jessinio smith jessinio在gmail.com
星期六 五月 5 15:48:25 HKT 2007

ÕýÈ·°²×°ºó£¬wxPython²»ÊÇÔÚPythonµÄlibĿ¼ÀïµÄÂð£¿ÎªÊ²Ã´ÒªexportµÄ£¿

Èç¹ûÄã²»Ïëÿ´Î¶¼exportÒ»´ÎµÄ£¬¿ÉÒÔÔÚprofileµÈµÈÎļþÀï¼ÓÈëÕâЩexport¾ÍÐÐÁË¡£
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20070505/9cdc633b/attachment.htm 

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

2007年05月05日 星期六 21:52

Brightman mr.brightman在gmail.com
星期六 五月 5 21:52:40 HKT 2007

settings.pyÖÐÉèÖÃEMAIL_HOST EMAIL_PORTµÈ

mvfirst дµÀ:
> ²¹³äһϣ¬ÎÒÓÃethereal²¹°ü£¬·¢ÏÖ¸ù±¾Ã»ÓÐÈκÎÍøÂç²Ù×÷£¬´ËÇ°¾Í³ö´íÁË¡£
> ÊDz»ÊDZ¾»úÒªÓÐsmtp·þÎñÆ÷£¿
> ------------------------------------------------------------------------
> mvfirst
> 2007-05-07
> ------------------------------------------------------------------------
> *·¢¼þÈË£º* mvfirst
> *·¢ËÍʱ¼ä£º* 2007-05-0520:15:47
> *ÊÕ¼þÈË£º* python-chinese在lists.python.cn
> *³­ËÍ£º*
> *Ö÷Ì⣺* [python-chinese] ÇóÖú£ºdjango·¢ËÍÓʼþµÄÆæ¹Ö´íÎó
> from django.core.mail import send_mail
> def mail_notify(request):
> send_mail('strSubject',' strData', 'a在263.net',['a在263.net'
> 27a在263.net%27,%5B%27a在263.net%27>], fail_silently=False,
> auth_user='a',auth_password='password')
> return HttpResponse("abc")
> a在263.net a在263.net>µÄÕʺÅΪ'a',ÃÜÂëΪ'password',ÕâЩ¿Ï¶¨ÕýÈ·¡£
> ½«»úÆ÷½ÓÈ뻥ÁªÍø£¬Ö´ÐÐmail_notifyº¯Êý£¬Ã¿´Î¶¼·µ»Ø´íÎó£º
> Request Method: 	POST
> Request URL: 	http://127.0.0.1:8000/address/mail_notify/
> Exception Type: 	error
> Exception Value: 	(10061, 'Connection refused')
> Exception Location: 	C:\Python24\lib\smtplib.py in connect, line 306
>
> ¸½Â¼£ºmanage.pyÃüÁîÈçÏ£¬ºÍÕâÀïµÄ127.0.0.1ÊÇ·ñÓйØϵ£¿
> C:\newtest>manage.py runserver
> Validating models...
> 0 errors found.
> Django version 0.96, using settings 'newtest.settings'
> Development server is running at http://127.0.0.1:8000/
> Quit the server with CTRL-BREAK.
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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/20070505/1e57695f/attachment.html 

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

2007年05月07日 星期一 20:13

mvfirst mvfirst在126.com
星期一 五月 7 20:13:46 HKT 2007

from django.core.mail import send_mail
def mail_notify(request):
   send_mail('strSubject',' strData', 'a在263.net',['a在263.net'], fail_silently=False, auth_user='a',auth_password='password')
   return HttpResponse("abc")

a在263.netµÄÕʺÅΪ'a',ÃÜÂëΪ'password',ÕâЩ¿Ï¶¨ÕýÈ·¡£


½«»úÆ÷½ÓÈ뻥ÁªÍø£¬Ö´ÐÐmail_notifyº¯Êý£¬Ã¿´Î¶¼·µ»Ø´íÎó£º

Request Method:POST
Request URL:http://127.0.0.1:8000/address/mail_notify/
Exception Type:error
Exception Value:(10061, 'Connection refused')
Exception Location:C:\Python24\lib\smtplib.py in connect, line 306



¸½Â¼£ºmanage.pyÃüÁîÈçÏ£¬ºÍÕâÀïµÄ127.0.0.1ÊÇ·ñÓйØϵ£¿
C:\newtest>manage.py runserver
Validating models...
0 errors found.

Django version 0.96, using settings 'newtest.settings'
Development server is running at http://127.0.0.1:8000/
Quit the server with CTRL-BREAK.
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20070507/3a7c2d50/attachment.html 

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

2007年05月07日 星期一 20:16

mvfirst mvfirst在126.com
星期一 五月 7 20:16:55 HKT 2007

²¹³äһϣ¬ÎÒÓÃethereal²¹°ü£¬·¢ÏÖ¸ù±¾Ã»ÓÐÈκÎÍøÂç²Ù×÷£¬´ËÇ°¾Í³ö´íÁË¡£
ÊDz»ÊDZ¾»úÒªÓÐsmtp·þÎñÆ÷£¿




mvfirst
2007-05-07



·¢¼þÈË£º mvfirst
·¢ËÍʱ¼ä£º 2007-05-05 20:15:47
ÊÕ¼þÈË£º python-chinese在lists.python.cn
³­ËÍ£º 
Ö÷Ì⣺ [python-chinese] ÇóÖú£ºdjango·¢ËÍÓʼþµÄÆæ¹Ö´íÎó

from django.core.mail import send_mail
def mail_notify(request):
   send_mail('strSubject',' strData', 'a在263.net',['a在263.net'], fail_silently=False, auth_user='a',auth_password='password')
   return HttpResponse("abc")

a在263.netµÄÕʺÅΪ'a',ÃÜÂëΪ'password',ÕâЩ¿Ï¶¨ÕýÈ·¡£


½«»úÆ÷½ÓÈ뻥ÁªÍø£¬Ö´ÐÐmail_notifyº¯Êý£¬Ã¿´Î¶¼·µ»Ø´íÎó£º

Request Method:POST
Request URL:http://127.0.0.1:8000/address/mail_notify/
Exception Type:error
Exception Value:(10061, 'Connection refused')
Exception Location:C:\Python24\lib\smtplib.py in connect, line 306



¸½Â¼£ºmanage.pyÃüÁîÈçÏ£¬ºÍÕâÀïµÄ127.0.0.1ÊÇ·ñÓйØϵ£¿
C:\newtest>manage.py runserver
Validating models...
0 errors found.

Django version 0.96, using settings 'newtest.settings'
Development server is running at http://127.0.0.1:8000/
Quit the server with CTRL-BREAK.
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20070507/ef670582/attachment.html 

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

2007年05月08日 星期二 11:09

Hong Yuan hongyuan在homemaster.cn
星期二 五月 8 11:09:52 HKT 2007

Dormouse Young 写道:
> 我Google了一个晚上,没有找到答案。请各位赐教。
>
> 我下载了wxPython-src-2.8.3.0.tar.bz2和Python-2.5.1.tar.bz2
> 我的系统用的是MagicLinux2.0,系统原来是python 2.4的。
> 我按照说明安装了wxPython-src-2.8.3.0.tar.bz2和Python-2.5.1.tar.bz2
> 一定要运行了
> export LD_LIBRARY_PATH=/opt/wx/2.8lib
> export PYTHONPATH=$WXDIR/wxPython
> 才能运行含有 import wx的程序。
> 我不想每次都运行这两名话,我该怎么办?
> 我在~/.bashrc文件中添加了这两句后,在终端能运行含有import wx的程序。 

LD_LIBRARY_PATH可以通过在/etc/ld.so.conf中添加/opt/wx/2.8/lib路径后运行
ldconfig来解决;
PYTHONPATH的解决方法是将$WXDIR/wxPython目录拷贝到Python2.5的site-
packages目录下

-- 

大管家网上建材超市
装修买建材 上网找大管家
http://www.homemaster.cn
Tel: 0086-21-34240987
Fax: 0086-21-64692422


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

2007年05月08日 星期二 20:41

mvfirst mvfirst在126.com
星期二 五月 8 20:41:41 HKT 2007

лл£¬Óʼþ¿ÉÒÔ·¢ËÍÁË£¬µ«Óöµ½ÐµÄÀ§ÄÑ£º

ÎÒÏë·¢ËÍhtml¸ñʽµÄÓʼþ£¬µ«Í¨¹ýsniffer·¢ÏÖ£º
send_mailĬÈϲÉÓÃÁËtext/plainµÄContent-Type,sniffer½á¹ûÈçÏ£º
Content-Type: text/plain; charset="utf-8"

MIME-Version: 1.0
...

ÎÒÏë°ÑContent-Type¸ÄΪ:
Content-Type: text/html
µ«ÊÇûÓÐÕÒµ½send_mailʱ¿ÉÒÔÉèÖÃContent-TypeµÄµØ·½¡£

Googleºó³¢ÊÔÁË:
  smt = SafeMIMEText()
  smt.__setitem__(self,'Content-Type','text/html')
Ҳʧ°ÜÁË¡£





mvfirst
2007-05-08



·¢¼þÈË£º Brightman
·¢ËÍʱ¼ä£º 2007-05-05 21:53:31
ÊÕ¼þÈË£º python-chinese在lists.python.cn
³­ËÍ£º 
Ö÷Ì⣺ Re: [python-chinese]ÇóÖú£ºdjango·¢ËÍÓʼþµÄÆæ¹Ö´íÎó

settings.pyÖÐÉèÖÃEMAIL_HOST EMAIL_PORTµÈ

mvfirst дµÀ: 
²¹³äһϣ¬ÎÒÓÃethereal²¹°ü£¬·¢ÏÖ¸ù±¾Ã»ÓÐÈκÎÍøÂç²Ù×÷£¬´ËÇ°¾Í³ö´íÁË¡£
ÊDz»ÊDZ¾»úÒªÓÐsmtp·þÎñÆ÷£¿




mvfirst
2007-05-07



·¢¼þÈË£º mvfirst
·¢ËÍʱ¼ä£º 2007-05-05 20:15:47
ÊÕ¼þÈË£º python-chinese在lists.python.cn
³­ËÍ£º 
Ö÷Ì⣺ [python-chinese] ÇóÖú£ºdjango·¢ËÍÓʼþµÄÆæ¹Ö´íÎó

from django.core.mail import send_mail
def mail_notify(request):
   send_mail('strSubject',' strData', 'a在263.net',['a在263.net'], fail_silently=False, auth_user='a',auth_password='password')
   return HttpResponse("abc")

a在263.netµÄÕʺÅΪ'a',ÃÜÂëΪ'password',ÕâЩ¿Ï¶¨ÕýÈ·¡£


½«»úÆ÷½ÓÈ뻥ÁªÍø£¬Ö´ÐÐmail_notifyº¯Êý£¬Ã¿´Î¶¼·µ»Ø´íÎó£º

Request Method:POST
Request URL:http://127.0.0.1:8000/address/mail_notify/
Exception Type:error
Exception Value:(10061, 'Connection refused')
Exception Location:C:\Python24\lib\smtplib.py in connect, line 306



¸½Â¼£ºmanage.pyÃüÁîÈçÏ£¬ºÍÕâÀïµÄ127.0.0.1ÊÇ·ñÓйØϵ£¿
C:\newtest>manage.py runserver
Validating models...
0 errors found.

Django version 0.96, using settings 'newtest.settings'
Development server is running at http://127.0.0.1:8000/
Quit the server with CTRL-BREAK.

_______________________________________________
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/20070508/38800b2c/attachment-0001.html 

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

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

    你的回复:

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

    Zeuux © 2025

    京ICP备05028076号