Development and Programming Fixes

Running a python or jython module pydoc produces an ImportError: No module named xxx

This is likely related to the -m option terminating the option list. If you are trying to run pydoc like this

python -m pydoc -p 8800

and getting the import error, then run it like this instead:

python -c "import pydoc; pydoc.cli()" -p 8800

This is what the "pydoc" command from the pything distro is in fact fixing. You could also run it like this:

python /usr/lib/python2.6/pydoc.pyc -p 8800 Address already in use. connect

Max connections on Windows The TCP/IP layer has a default maximum connections allowed in the TIMED_WAIT state. To remedy this, modify or create the following registry keys:


(sets TIME_WAIT parameter to 30 seconds, default is 240)


(sets maximum open ports to 65534, default is 5000)

For more details see: List of TCP/IP Windows Registry Elements including MaxUserPort & TcpTimedWaitDelay.

Java UI (swing) does not work under Compiz


export AWT_TOOLKIT=MToolkit

to the batch that starts java the program

@Troubleshooting @Development