ChinaUnix.net
相关文章推荐:

cxfreeze ImportError No module named atexit

开始学python,现在有个问题。 importerror: No module named Tkinter。 是我运行一个例子时产生的,是缺少Tkinter模块吗,请问高手怎么解决?是需要安装Tkinter吗? 例子源码: from Tkinter import * def frame(root,side): w=Frame(root) w.pack(side=side,expand=YES,fill=BOTH) return w def button(root,side,text,command=None): w=Button(root,text=text,command=command) w.pack(side=side,expand=YES,fill=BOTH)...

by yiteng - Python - 2009-08-02 15:26:00 阅读(9920) 回复(10)

相关讨论

root@user-desktop:~/linux_test_new/maketest# g2p.py --train train.lex --devel 5% --write-model model-1 Traceback (most recent call last): File "/usr/local/bin/g2p.py", line 38, in <module> import SequiturTool File "/usr/local/lib/python2.5/site-packages/SequiturTool.py", line 34, in <module> from sequitur import Sequitur, ModelTemplate, DefaultDiscountAdjuster, StaticDiscounts, FixedDi...

by cooloves - Python - 2009-08-04 11:24:11 阅读(1561) 回复(2)

我在公司安装zope,启动实例时提示“importerror: No module named requestmethod”,是哪出了问题啊?各位CU有知道的吗?帮帮我! 个人猜测可能是安装python方面没做好,系统默认安装的是2.3的,我编译安装了个2.4.4的,就是两个共存了,是不是还要对2.4.4的做些设置啊?

by titus0719 - Python - 2008-04-13 09:48:01 阅读(1700) 回复(0)

Traceback (most recent call last): File "D:\Python25\Scripts\newtest\manage.py", line 11, in module> execute_manager(settings) File "D:\Python25\Lib\site-packages\django\core\management.py", line 1672, in execute_manager execute_from_command_line(action_mapping, argv) File "D:\Python25\Lib\site-packages\django\core\management.py", line 1571, in execute_from_command_line action_m...

by yukunming - Python文档中心 - 2008-04-22 00:05:57 阅读(1723) 回复(0)

大家好: 刚开始学python, 安装了一个module,想测试一下,windows上,结果出现了下列错误。 python version : 2.51 Traceback (most recent call last): File "openxcap", line 12, in <module> from application.process import process, ProcessError File "C:\Program Files\python2\Lib\site-packages\application\process.py", lin 12, in <module> from application import log File "C:\Program Files\pyt...

by hunter006 - Python - 2007-12-11 15:57:37 阅读(2358) 回复(1)

脚本里面调用paramiko进行ssh远程登陆. 我现在想用cxfreeze把文件转为elf可执行格式. 打包过程中有这样提示: [code] Missing modules: ? Crypto.PublicKey._fastmath imported from Crypto.PublicKey ? Crypto.Util.Counter imported from Crypto.Util ? Crypto.Util.winrandom imported from Crypto.Util.randpool ? ctypes imported from paramiko.win_pageant ? r_hmac imported from paramiko.packet ? vms_lib imported from...

by ddb521 - Python - 2009-09-03 11:21:37 阅读(1866) 回复(1)

atexit的参数是一个函数指针, 参数函数无需任何参数和返回. void fun1() { printf("fun1() done!!!\n"); } int fun2(int i) { printf("fun2() done!!! %d\n", i); return i+2; } int main(void) { printf("Main Start!!!!\n"); atexit(fun1); atexit(fun2(2)); /* 当不给参数时, 两个函数都可以正常执行*/ printf("Main End!!!!\n"); exit(0); } 下面是执行...

by Mao_jzh - C/C++ - 2006-03-23 19:40:03 阅读(1968) 回复(2)

如题,写了下面这个小程序来研究3者的关系: [kg@localhost ~]$ gcc a.cpp -lstdc++ [kg@localhost ~]$ ./a.out ctor i=1 dtor i=1 ctor i=2 after g() a ctor dtor i=2 f() count=2 f() count=2 [kg@localhost ~]$ cat a.cpp #include #include class a{ int ii; public: explicit a(int i){ ++count; ii=i; printf("ctor i=%d\n",ii); atexit(f); } ~a(){printf("dtor i=%d\n",ii);}...

by jeanlove - C/C++ - 2009-02-02 15:20:59 阅读(1738) 回复(3)

弄Sql Server好半天了,sqlcmd通过named pipe就是连不上,具体查查它到底是干什么的。 在Win32下提供的进程间通信方式有以下几种: 剪贴板Clipboard:在16位时代常使用的方式,CWnd类中提供了支持。 COM/DCOM:通过COM系统的代理存根方式进行进程间数据交换,但只能够表现在对接口函数的调用时传送数据,通过DCOM可以在不同主机间传送数据。 Dynamic Data Exchange(DDE):在16位时代常使用的方式。 File ...

by zrl1986 - 网络技术文档中心 - 2008-04-18 17:06:55 阅读(567) 回复(0)

[root@dbserver etc]# named -g May 11 13:58:37.232 starting BIND 9.2.4 -g May 11 13:58:37.233 using 1 CPU May 11 13:58:37.319 loading configuration from '/etc/named.conf' May 11 13:58:37.332 no IPv6 interfaces found May 11 13:58:37.405 listening on IPv4 interface lo, 127.0.0.1#53 May 11 13:58:37.406 binding TCP socket: address in use May 11 13:58:37.448 listening on IPv4 interface eth0, 10.4.9.38#5...

by liudan - 服务器架设 - 2006-05-11 15:45:36 阅读(915) 回复(2)

我配置好named服务后起动service named start 检测我定义的主机名可是出现如下: connection time out; no servers could be reached 请问这是怎么回事。

by 西装笔挺 - Linux论坛 - 2005-09-11 09:15:59 阅读(445) 回复(1)