From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: <7d3530220908110937u5531ebb2x694612602c8d4a3b@mail.gmail.com> Date: Fri, 21 May 2010 03:10:25 -0300 Message-ID: From: "Federico G. Benavento" To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [9fans] Plan 9 hg with private repositories Topicbox-Message-UUID: 28cc21ba-ead6-11e9-9d60-3106f5b1d025 I gave you the work around 2 months ago... the python code is broken, their default doesn't default... echo 'getpass =3D default_getpass' >> /sys/lib/python/getpass.py > Ow, that hurt, did it not? > > Basically, it found getpass, did not find termios, then went looking > for some MS VC runtime. Yuck. > > The code (getpass.py): > # Bind the name getpass to the appropriate function > try: > =C2=A0 =C2=A0import termios > =C2=A0 =C2=A0# it's possible there is an incompatible termios from the > =C2=A0 =C2=A0# McMillan Installer, make sure we have a UNIX-compatible te= rmios > =C2=A0 =C2=A0termios.tcgetattr, termios.tcsetattr > except (ImportError, AttributeError): > =C2=A0 =C2=A0try: > =C2=A0 =C2=A0 =C2=A0 =C2=A0import msvcrt > =C2=A0 =C2=A0except ImportError: > =C2=A0 =C2=A0 =C2=A0 =C2=A0try: > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0from EasyDialogs import AskPassw= ord > =C2=A0 =C2=A0 =C2=A0 =C2=A0except ImportError: > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0getpass =3D default_getpass > =C2=A0 =C2=A0 =C2=A0 =C2=A0else: > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0getpass =3D AskPassword > =C2=A0 =C2=A0else: > =C2=A0 =C2=A0 =C2=A0 =C2=A0getpass =3D win_getpass > else: > =C2=A0 =C2=A0getpass =3D unix_getpass > > Wow, that hurt too. > > So, it's trying to get a password, as it is an https import, so it > pulls in getpass, which pulls in termios, and it's failing, and the > only reasonable thing to do when you can't find a unix package is to > try to use an MS VC runtime package and, when that fails, bail out > with one of the worst error messages one can imagine. > > Wow, GRRoss. > > Anyway, that is why you get that utterly useless error message: > because you're not unix. It just tells you that the error is that you > are not windows. Clear? > > ron > > --=20 Federico G. Benavento