using Winpdb in an embedded python interpreter

A

Adrian Genaid

Hi there,

I have a problem using Winpdb in Pythonscripts running in a program
which uses an embedded Python interpreter. After linking all needed
modules statically to python, "import rpdb2" can be done and leads to
no error.
But on using the next line "rpdb2.start_embedded_debugger('password')".
an error occurs:

Exception in thread ioserver:
Traceback (most recent call last):
File "C:\Program Files\Python30\lib\threading.py", line 507, in
_bootstrap_inn er
self.run()
File "S:\dev\adge\build\r3804\Debug_Win32\py\rpdb2.py", line 4570, in
run threading.Thread.run(self)
File "C:\Program Files\Python30\lib\threading.py", line 462, in run
self._target(*self._args, **self._kwargs)
File "S:\dev\adge\build\r3804\Debug_Win32\py\rpdb2.py", line 9639, in
run (self.m_port, self.m_server) = self.__StartXMLRPCServer()
File "S:\dev\adge\build\r3804\Debug_Win32\py\rpdb2.py", line 9730, in
__StartX MLRPCServer
server = CXMLRPCServer((host, port), logRequests = 0)
File "C:\Program Files\Python30\lib\xmlrpc\server.py", line 530, in
__init__ socketserver.TCPServer.__init__(self, addr, requestHandler,
bind_and_activat e)
File "C:\Program Files\Python30\lib\socketserver.py", line 400, in
__init__ self.server_bind()
File "C:\Program Files\Python30\lib\socketserver.py", line 411, in
server_bind

self.socket.bind(self.server_address)
LookupError: unknown encoding: idna

Does someone have an idea why this error occurs?

Funny thing is that module "socketserver" is taken from "C:\Program
Files\Python30\lib\xmlrpc\server.py", although the module search path
does not contain "C:\Program Files\Python30\lib". Maybe this has
something to do with the problem...

Thanks,
Adrian
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top