[tahoe-dev] [tahoe-lafs] #761: "tahoe cp $DIRCAP/$PATH $LOCAL" raises AttributeError

tahoe-lafs trac at allmydata.org
Tue Jul 14 21:46:09 PDT 2009


#761: "tahoe cp $DIRCAP/$PATH $LOCAL" raises AttributeError
-------------------------------+--------------------------------------------
 Reporter:  zooko              |           Owner:            
     Type:  defect             |          Status:  new       
 Priority:  major              |       Milestone:  eventually
Component:  code-frontend-cli  |         Version:  1.4.1     
 Keywords:                     |   Launchpad_bug:            
-------------------------------+--------------------------------------------
 {{{tahoe cp --help}}} suggests that I try:

 {{{
 You can also use a dircap as either FROM or TO target:

 tahoe cp
 URI:DIR2-RO:j74uhg25nwdpjpacl6rkat2yhm:kav7ijeft5h7r7rxdp5bgtlt3viv32yabqajkrdykozia5544jqa/wiki.html
 ./ # copy Zooko's wiki page to a local file
 }}}

 But when I try it, I get an exception:

 {{{
 $ time ~/playground/allmydata/tahoe/trunk-hashedformat/bin/tahoe cp -r
 --node-url http://testgrid.allmydata.org:3567
 URI:DIR2-RO:j74uhg25nwdpjpacl6rkat2yhm:kav7ijeft5h7r7rxdp5bgtlt3viv32yabqajkrdykozia5544jqa/wiki.html
 foo
 Traceback (most recent call last):
   File "/data2/homezooko/playground/allmydata/tahoe/trunk-
 hashedformat/support/bin/tahoe", line 8, in <module>
     load_entry_point('allmydata-tahoe==1.4.1-r3989', 'console_scripts',
 'tahoe')()
   File "/data2/homezooko/playground/allmydata/tahoe/trunk-
 hashedformat/src/allmydata/scripts/runner.py", line 91, in run
     rc = runner(sys.argv[1:])
   File "/data2/homezooko/playground/allmydata/tahoe/trunk-
 hashedformat/src/allmydata/scripts/runner.py", line 78, in runner
     rc = cli.dispatch[command](so)
   File "/data2/homezooko/playground/allmydata/tahoe/trunk-
 hashedformat/src/allmydata/scripts/cli.py", line 429, in cp
     rc = tahoe_cp.copy(options)
   File "/data2/homezooko/playground/allmydata/tahoe/trunk-
 hashedformat/src/allmydata/scripts/tahoe_cp.py", line 759, in copy
     return Copier().do_copy(options)
   File "/data2/homezooko/playground/allmydata/tahoe/trunk-
 hashedformat/src/allmydata/scripts/tahoe_cp.py", line 444, in do_copy
     self.try_copy()
   File "/data2/homezooko/playground/allmydata/tahoe/trunk-
 hashedformat/src/allmydata/scripts/tahoe_cp.py", line 501, in try_copy
     return self.copy_to_directory(sources, target)
   File "/data2/homezooko/playground/allmydata/tahoe/trunk-
 hashedformat/src/allmydata/scripts/tahoe_cp.py", line 661, in
 copy_to_directory
     self.copy_files_to_target(self.targetmap[target], target)
   File "/data2/homezooko/playground/allmydata/tahoe/trunk-
 hashedformat/src/allmydata/scripts/tahoe_cp.py", line 692, in
 copy_files_to_target
     self.copy_file_into(source, name, target)
   File "/data2/homezooko/playground/allmydata/tahoe/trunk-
 hashedformat/src/allmydata/scripts/tahoe_cp.py", line 737, in
 copy_file_into
     target.put_file(name, f)
   File "/data2/homezooko/playground/allmydata/tahoe/trunk-
 hashedformat/src/allmydata/scripts/tahoe_cp.py", line 163, in put_file
     pathname = os.path.join(self.pathname, name)
   File "/usr/lib/python2.5/posixpath.py", line 60, in join
     if b.startswith('/'):
 AttributeError: 'NoneType' object has no attribute 'startswith'
 }}}

-- 
Ticket URL: <http://allmydata.org/trac/tahoe/ticket/761>
tahoe-lafs <http://allmydata.org>
secure decentralized file storage grid


More information about the tahoe-dev mailing list