Bug 3407 - unknown exception encountered during a 'hg incoming'
Summary: unknown exception encountered during a 'hg incoming'
Status: RESOLVED FIXED
Alias: None
Product: Mercurial
Classification: Unclassified
Component: Mercurial (show other bugs)
Version: unspecified
Hardware: All All
: normal bug
Assignee: Bugzilla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-28 08:45 UTC by Dorin Marinca
Modified: 2016-02-01 03:27 UTC (History)
4 users (show)

See Also:
Python Version: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dorin Marinca 2012-04-28 08:45 UTC
windows xp sp3 / tortoisehg 2.3.1 -> mercurial 2.1.1

> hg incoming
** unknown exception encountered, please report by visiting
**  http://mercurial.selenic.com/wiki/BugTracker
** Python 2.6.6 (r266:84297, Aug 24 2010, 18:46:32) [MSC v.1500 32 bit (Intel)]
** Mercurial Distributed SCM (version 2.1.1)
** Extensions loaded: extdiff, graphlog, fetch, purge, transplant, mq,
patchbomb, children, progress, relink, keyword, mercurial
_keyring, eol, convert, record, churn, rebase
Traceback (most recent call last):
  File "hg", line 42, in <module>
  File "mercurial\dispatch.pyo", line 27, in run
  File "mercurial\dispatch.pyo", line 64, in dispatch
  File "mercurial\dispatch.pyo", line 87, in _runcatch
  File "mercurial\dispatch.pyo", line 683, in _dispatch
  File "mercurial\dispatch.pyo", line 465, in runcommand
  File "mercurial\dispatch.pyo", line 737, in _runcommand
  File "mercurial\dispatch.pyo", line 691, in checkargs
  File "mercurial\dispatch.pyo", line 680, in <lambda>
  File "mercurial\util.pyo", line 456, in check
  File "mercurial\extensions.pyo", line 139, in wrap
  File "mercurial\util.pyo", line 456, in check
  File "hgext\mq.pyo", line 3337, in mqcommand
  File "mercurial\util.pyo", line 456, in check
  File "mercurial\extensions.pyo", line 139, in wrap
  File "mercurial\util.pyo", line 456, in check
  File "hgext\graphlog.pyo", line 397, in graph
  File "mercurial\util.pyo", line 456, in check
  File "mercurial\commands.pyo", line 3681, in incoming
  File "mercurial\hg.pyo", line 499, in incoming
  File "mercurial\hg.pyo", line 451, in _incoming
  File "mercurial\hg.pyo", line 104, in peer
  File "mercurial\hg.pyo", line 93, in repository
  File "mercurial\httprepo.pyo", line 236, in instance
  File "mercurial\httprepo.pyo", line 57, in _fetchcaps
  File "mercurial\httprepo.pyo", line 169, in _call
  File "mercurial\httprepo.pyo", line 117, in _callstream
  File "urllib2.pyo", line 397, in open
  File "urllib2.pyo", line 510, in http_response
  File "urllib2.pyo", line 429, in error
  File "urllib2.pyo", line 369, in _call_chain
  File "urllib2.pyo", line 1048, in http_error_401
  File "mercurial\url.pyo", line 405, in http_error_auth_reqed
  File "hgext\mercurial_keyring.pyo", line 340, in digest_http_error_auth_reqed
  File "urllib2.pyo", line 933, in http_error_auth_reqed
  File "urllib2.pyo", line 938, in retry_http_digest_auth
  File "urllib2.pyo", line 973, in get_authorization
  File "hgext\mercurial_keyring.pyo", line 326, in find_user_password
  File "hgext\mercurial_keyring.pyo", line 177, in find_auth
  File "hgext\mercurial_keyring.pyo", line 59, in get_http_password
  File "mercurial\demandimport.pyo", line 86, in __getattribute__
  File "mercurial\demandimport.pyo", line 58, in _load
  File "keyring\__init__.pyo", line 9, in <module>
  File "mercurial\demandimport.pyo", line 114, in _demandimport
  File "keyring\core.pyo", line 161, in <module>
  File "keyring\core.pyo", line 51, in init_backend
  File "keyring\core.pyo", line 121, in load_config
  File "keyring\util\platform.pyo", line 12, in _data_root_Windows
  File "os.pyo", line 423, in __getitem__
KeyError: 'LOCALAPPDATA'

>hg --version
Mercurial Distributed SCM (version 2.1.1)
(see http://mercurial.selenic.com for more information)

Copyright (C) 2005-2012 Matt Mackall and others
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

I'll try to upgrade tortoisehg, probably this will fix the issue
Comment 1 Dorin Marinca 2012-04-28 08:46 UTC
the remote repo is private on bitbucket.org
Comment 2 Pascal Quantin 2012-04-28 09:01 UTC
You are running a buggy version of python keyring lib on Windows XP. This
issue was fixed in version 0.8.1. The code can be found here:
https://bitbucket.org/kang/python-keyring-lib/
This has nothing to do with mercurial itself. Either upgrade your TortoiseHg
installation (hopping that they upgraded the embedded python keyring lib) or
deactivate the keyring extension to work around the issue. If TortoiseHg
2.3.2 still packages the wrong python keyring lib version, I suggest you to
add a comment in this bug report:
https://bitbucket.org/tortoisehg/thg/issue/1764/localappdata-error-in-tortoisehg-231-under
Comment 3 Dorin Marinca 2012-04-28 09:26 UTC
I've just upgraded tortoisehg from 2.3.1 to 2.3.2, log off and on and the
bug is no more there... correct processing of 'hg incoming'.
Comment 4 Bugzilla 2012-05-12 09:30 UTC

--- Bug imported by bugzilla@serpentine.com 2012-05-12 09:30 EDT  ---

This bug was previously known as _bug_ 3406 at http://mercurial.selenic.com/bts/issue3406