本文介绍了winpdb不能使用python 3.3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我不能得到rpdb2运行与python 3.3,而这应该可以根据几个来源。 $ rpdb2 -d myscript.py 应设置密码以安全调试客户端 - 服务器通信。 请输入密码:x 已设置密码。 追溯(最近的最后一次呼叫):文件/ usr / local / bin / rpdb2,第31行,< module> rpdb2.main()文件/usr/local/lib/python3.3/dist-packages/rpdb2.py,第14470行,主要 StartServer(_rpdb2_args,fchdir, _rpdb2_pwd,fAllowUnencrypted,fAllowRemote,secret)文件/usr/local/lib/python3.3/dist-packages/rpdb2.py,第14212行,在StartServer g_module_main = -1 文件/usr/local/lib/python3.3/dist-packages/rpdb2.py,行14212,在StartServer g_module_main = -1 文件/ usr / local / lib / python3 .3 / dist-packages / rpdb2.py,第7324行,trace_dispatch_init self .__ set_signal_handler()文件/usr/local/lib/python3.3/dist-packages/rpdb2.py ,第7286行,__set_signal_handler handler = signal.getsignal(value)文件/usr/local/lib/python3.3/dist-packages/rpdb2.py,第13682行,__getsignal handler = g_signal_handlers.get(signum,g_signal_getsignal(signum)) ValueError:信号号超出范围 rpdb2的版本是 RPDB 2.4.8 - T ychod 。 我通过运行 pip-3.3安装winpdb 来安装它。 任何线索?解决方案今天有同样的问题是我为此做的工作。 仍然我不太确定这样做是否正确。 From: def __getsignal(signum): handler = g_signal_handlers.get(signum,g_signal_getsignal(signum)) 返回处理程序 To: def __getsignal(signum): try:#问题来自于0. g_signal_getsignal (signum)除了ValueError:返回无处理程序= g_signal_handlers.get(signum,g_signal_getsignal(signum))返回处理程序 此功能应为 13681 或类似的 I can't get rpdb2 to run with python 3.3, while that should be possible according to several sources.$ rpdb2 -d myscript.pyA password should be set to secure debugger client-server communication.Please type a password:xPassword has been set.Traceback (most recent call last): File "/usr/local/bin/rpdb2", line 31, in <module> rpdb2.main() File "/usr/local/lib/python3.3/dist-packages/rpdb2.py", line 14470, in main StartServer(_rpdb2_args, fchdir, _rpdb2_pwd, fAllowUnencrypted, fAllowRemote, secret) File "/usr/local/lib/python3.3/dist-packages/rpdb2.py", line 14212, in StartServer g_module_main = -1 File "/usr/local/lib/python3.3/dist-packages/rpdb2.py", line 14212, in StartServer g_module_main = -1 File "/usr/local/lib/python3.3/dist-packages/rpdb2.py", line 7324, in trace_dispatch_init self.__set_signal_handler() File "/usr/local/lib/python3.3/dist-packages/rpdb2.py", line 7286, in __set_signal_handler handler = signal.getsignal(value) File "/usr/local/lib/python3.3/dist-packages/rpdb2.py", line 13682, in __getsignal handler = g_signal_handlers.get(signum, g_signal_getsignal(signum))ValueError: signal number out of rangeThe version of rpdb2 is RPDB 2.4.8 - Tychod.I installed it by running pip-3.3 install winpdb.Any clues? 解决方案 Got the same problem today here is what i've done for it to work.Still i'm not too sure if this is correct to do it this way.From:def __getsignal(signum): handler = g_signal_handlers.get(signum, g_signal_getsignal(signum)) return handlerTo:def __getsignal(signum): try: # The problems come from the signum which was 0. g_signal_getsignal(signum) except ValueError: return None handler = g_signal_handlers.get(signum, g_signal_getsignal(signum)) return handlerThis function shall be at line 13681 or something like. 这篇关于winpdb不能使用python 3.3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 06-05 20:27