[MacPorts] #27196: hg-forest @20090409 +attribute error httprepository object has no attribute do_read

MacPorts noreply at macports.org
Sun Nov 7 14:18:53 PST 2010


#27196: hg-forest @20090409 +attribute error httprepository object has no attribute
do_read
------------------------------------+---------------------------------------
 Reporter:  nhoj.patrick@…          |       Owner:  macports-tickets@…                   
     Type:  defect                  |      Status:  new                                  
 Priority:  Normal                  |   Milestone:                                       
Component:  ports                   |     Version:  1.9.2                                
 Keywords:  mercurial extension     |        Port:  hg-forest                            
------------------------------------+---------------------------------------
Changes (by jmr@…):

  * keywords:  hg-forest mercurial forest extension => mercurial extension
  * priority:  High => Normal


Old description:

> I've just installed mercurial and hg-forest and get the following error
> when trying to use it.
>
> $ hg fclone http://hg.openjdk.java.net/bsd-port/bsd-port
> ** unknown exception encountered, please report by visiting
> **  http://mercurial.selenic.com/wiki/BugTracker
> ** Python 2.6.6 (r266:84292, Sep  4 2010, 23:04:14) [GCC 4.2.1 (Apple
> Inc. build 5664)]
> ** Mercurial Distributed SCM (version 1.7)
> ** Extensions loaded: fetch, forest
> Traceback (most recent call last):
>   File "/opt/local/bin/hg", line 38, in <module>
>     mercurial.dispatch.run()
>   File
> "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6
> /site-packages/mercurial/dispatch.py", line 16, in run
>     sys.exit(dispatch(sys.argv[1:]))
>   File
> "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6
> /site-packages/mercurial/dispatch.py", line 36, in dispatch
>     return _runcatch(u, args)
>   File
> "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6
> /site-packages/mercurial/dispatch.py", line 58, in _runcatch
>     return _dispatch(ui, args)
>   File
> "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6
> /site-packages/mercurial/dispatch.py", line 590, in _dispatch
>     cmdpats, cmdoptions)
>   File
> "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6
> /site-packages/mercurial/dispatch.py", line 401, in runcommand
>     ret = _runcommand(ui, options, cmd, d)
>   File
> "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6
> /site-packages/mercurial/dispatch.py", line 641, in _runcommand
>     return checkargs()
>   File
> "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6
> /site-packages/mercurial/dispatch.py", line 595, in checkargs
>     return cmdfunc()
>   File
> "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6
> /site-packages/mercurial/dispatch.py", line 588, in <lambda>
>     d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
>   File
> "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6
> /site-packages/mercurial/util.py", line 427, in check
>     return func(*args, **kwargs)
>   File "/Users/john/projects/opensource/bitbucket.org/hgforest-
> crew/forest.py", line 858, in clone
>     forests = toprepo.forests(walkhgenabled(ui, opts['walkhg']))
>   File "/Users/john/projects/opensource/bitbucket.org/hgforest-
> crew/forest.py", line 277, in _httprepo_forests
>     data = self.do_read("forests", walkhg=("", "True")[walkhg])
> AttributeError: 'httprepository' object has no attribute 'do_read'
> $

New description:

 I've just installed mercurial and hg-forest and get the following error
 when trying to use it.
 {{{
 $ hg fclone http://hg.openjdk.java.net/bsd-port/bsd-port
 ** unknown exception encountered, please report by visiting
 **  http://mercurial.selenic.com/wiki/BugTracker
 ** Python 2.6.6 (r266:84292, Sep  4 2010, 23:04:14) [GCC 4.2.1 (Apple Inc.
 build 5664)]
 ** Mercurial Distributed SCM (version 1.7)
 ** Extensions loaded: fetch, forest
 Traceback (most recent call last):
   File "/opt/local/bin/hg", line 38, in <module>
     mercurial.dispatch.run()
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6
 /site-packages/mercurial/dispatch.py", line 16, in run
     sys.exit(dispatch(sys.argv[1:]))
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6
 /site-packages/mercurial/dispatch.py", line 36, in dispatch
     return _runcatch(u, args)
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6
 /site-packages/mercurial/dispatch.py", line 58, in _runcatch
     return _dispatch(ui, args)
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6
 /site-packages/mercurial/dispatch.py", line 590, in _dispatch
     cmdpats, cmdoptions)
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6
 /site-packages/mercurial/dispatch.py", line 401, in runcommand
     ret = _runcommand(ui, options, cmd, d)
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6
 /site-packages/mercurial/dispatch.py", line 641, in _runcommand
     return checkargs()
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6
 /site-packages/mercurial/dispatch.py", line 595, in checkargs
     return cmdfunc()
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6
 /site-packages/mercurial/dispatch.py", line 588, in <lambda>
     d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6
 /site-packages/mercurial/util.py", line 427, in check
     return func(*args, **kwargs)
   File "/Users/john/projects/opensource/bitbucket.org/hgforest-
 crew/forest.py", line 858, in clone
     forests = toprepo.forests(walkhgenabled(ui, opts['walkhg']))
   File "/Users/john/projects/opensource/bitbucket.org/hgforest-
 crew/forest.py", line 277, in _httprepo_forests
     data = self.do_read("forests", walkhg=("", "True")[walkhg])
 AttributeError: 'httprepository' object has no attribute 'do_read'
 $
 }}}

--

Comment:

 Please remember to preview and use WikiFormatting (or better, use an
 attachment for lengthy output). As per the ticket guidelines, the High
 priority is reserved for the use of MacPorts team members.

-- 
Ticket URL: <https://trac.macports.org/ticket/27196#comment:1>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list