Problems mounting filesystem in Windows

xiao_s_yuan xiao_s_yuan at 163.com
Sat Mar 15 09:21:29 UTC 2014


use dokan0.5

from fs.contrib.tahoelafs import TahoeLAFS, Connection
from fs.expose import dokan
dircap='???????'
webapi='???????????'
fs = TahoeLAFS(dircap, webapi)
mp = dokan.mount(fs,"Q")

At 2014-03-14 10:32:50,"samps okholm" <sampsokholm at gmail.com> wrote:

//I'm having some trouble trying to mount a TahoeLAFS filesystem on Windows, using Dokan and //pyFilesystem and the instructions found at 
//https://tahoe-lafs.org/trac/tahoe-lafs/wiki/pyFilesystem


//Dokan is v0.6.0 and pyFilesystem v0.4.0, both installed without error, in C:\Program //Files\Dokan\DokanLibrary and c:\fuse\fs-0.4.0 respectively
//TahoeLAFS is v1.10.0 and at the time of testing this 23 of 157 storage servers were connected


//--------------


//Here's what I do:


//Start python:


python 




python>>> from fs.contrib.tahoelafs import TahoeLAFS   
//no errors


python>>> from fs.expose import dokan    
//no errors


python>>> fs = TahoeLAFS('URI:DIR2:ilhsig36mfsrvtkj6f6dztptwu:2bdkdjowwlmfwcmknfke244onoq3j662gd7z7jqb3l67dw7wipea')   
//still no errors
//the URI is a known working directory writecap with a single file in the directory


//Mount the filesystem to Windows drive F:


python>>> mp = dokan.mount(fs, "f")


//Windows explorer shows a new drive, called Local Disk (F:), the Properties of which shows that //100Gb of free space and 100Gb is used (accurate to the bit)
//but the drive is not accessible for writing, nor does it show the file that is known to be residing //in it.




//The python console keeps spitting out messages like this:


Traceback (most recent call last):
  File "_ctypes/callbacks.c", line 314, in 'calling callback function'
  File "c:\python27\lib\site-packages\fs\expose\dokan\__init__.py", line 256, in
 wrapper
    return func(self,*args)
  File "c:\python27\lib\site-packages\fs\expose\dokan\__init__.py", line 173, in
 wrapper
    res = func(*args,**kwds)
  File "c:\python27\lib\site-packages\fs\errors.py", line 191, in wrapper
    return func(*args,**kwds)
  File "c:\python27\lib\site-packages\fs\expose\dokan\__init__.py", line 446, in
 OpenDirectory
    if not self.fs.isdir(path):
  File "c:\python27\lib\site-packages\fs\remote.py", line 598, in isdir
    info = self.getinfo(path)
  File "c:\python27\lib\site-packages\fs\remote.py", line 626, in getinfo
    info = super(CacheFSMixin,self).getinfo(path)
  File "c:\python27\lib\site-packages\fs\contrib\tahoelafs\__init__.py", line 84
, in wrapper
    return func(self, *args, **kwds)
  File "c:\python27\lib\site-packages\fs\contrib\tahoelafs\__init__.py", line 38
8, in getinfo
    info = self.tahoeutil.info(self.dircap, path)
  File "c:\python27\lib\site-packages\fs\contrib\tahoelafs\util.py", line 47, in
 info
    meta = json.load(self.connection.get(u'/uri/%s%s' % (dircap, path), {u't': u
'json'}))
  File "c:\python27\lib\json\__init__.py", line 290, in load
    **kw)
  File "c:\python27\lib\json\__init__.py", line 338, in loads
    return _default_decoder.decode(s)
  File "c:\python27\lib\json\decoder.py", line 365, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "c:\python27\lib\json\decoder.py", line 383, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded






//What am I doing wrong?


//I should probably mention that my Python skills are negligible


regards
Samps
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tahoe-lafs.org/pipermail/tahoe-dev/attachments/20140315/2500d643/attachment.html>


More information about the tahoe-dev mailing list