[tahoe-dev] Mount tahoe-lafs with pyfilesystem and Dokan on Windows XP

Shu Lin linshu at gmail.com
Wed Aug 31 13:42:45 UTC 2011


Ovcacik,

I can mount tahoe through Dokan on one Windows 7 32bit system. But, when I tried the same script on another Windows XP or a Windows 7 64 bit. I always got "dokan library is not available problem". I did check the library path and found the dokan library I have just installed through "python setup.py install". Below is the output of my try. Could you please help me find out what's wrong?

Thanks a lot,
-Shu

===

C:\Program Files\tahoe>c:\Python27\python.exe win_mount.py -d u -u URI:DIR2:dypbn47dtnwmxujkvcawm3ok34:hcgpvxcj4er2mocnccuc75bsnccenhatlcbqo42o3mxdajdbpt2a
Traceback (most recent call last):
  File "win_mount.py", line 11, in <module>
    mp = dokan.mount(fs, options.drive)
  File "c:\Python27\lib\site-packages\fs\expose\dokan\__init__.py", line 887, in mount
    raise OSError("the dokan library is not available")
OSError: the dokan library is not available

C:\Program Files\tahoe>dir c:\Python27\Lib\site-packages\fs\expose\dokan
 Volume in drive C has no label.
 Volume Serial Number is F86B-A68F

 Directory of c:\Python27\Lib\site-packages\fs\expose\dokan

08/14/2011  05:22 PM    <DIR>          .
08/14/2011  05:22 PM    <DIR>          ..
10/12/2010  03:14 AM             6,634 libdokan.py
08/14/2011  05:22 PM             5,003 libdokan.pyc
04/24/2011  04:46 AM            37,823 __init__.py
08/14/2011  05:22 PM            35,662 __init__.pyc
               4 File(s)         85,122 bytes
               2 Dir(s)  84,984,393,728 bytes free

C:\Program Files\tahoe>type win_mount.py
from optparse import OptionParser
from fs.contrib.tahoelafs import TahoeLAFS
from fs.expose import dokan

parser = OptionParser()
parser.add_option("-d", "--drive", dest="drive", help="Filesystem Drive Name")
parser.add_option("-u", "--uri", dest="uri", help="File Cap URI")
(options, args) = parser.parse_args()

fs = TahoeLAFS(options.uri)
mp = dokan.mount(fs, options.drive)





On Aug 30, 2011, at 2:55 PM, Vlastimil Ovčáčík wrote:

> Hi,
> 
> I was asked to let you know how mounting tahoe-lafs with pyfilesystem
> + dokan lib worked for me. I have to say it was quite easy to get it
> working, but it would take me a lot more time if google would not find
> me mounting script for pyfilesystem. As of performance it is as fast
> as I would expect, but I am new to tahoe-lafs so its hard to compare.
> Anyway it got me excited and I am looking forward to test tahoe in
> depth and eventually use it for backups. This brings me to a question
> - is there a public grid for backup purposes?
> 
> Hoping google will stumble upon this email I will include how to mount
> tahoe-lafs with pyfilesystem and Dokan on Windows:
> 
> 1) Get and install Dokan lib at http://dokan-dev.net/en/download/#dokan
> 
> 2) Get pyfilesystem at http://code.google.com/p/pyfilesystem/downloads/list
> 
> 3) Install pyfilesystem:
> cmd> python setup.py build
> cmd> python setup.py install
> 
> 4) Verify that pyfilesystem is installed:
> cmd> python
> python>>> import fs
> python>>> fs.__version__
> 
> 5) Mount test/public grid to F:\ letter
> cmd> python
> python>>> from fs.contrib.tahoelafs import TahoeLAFS
> python>>> from fs.expose import dokan
> python>>> fs = TahoeLAFS('URI:DIR2:ctmtx2awdo4xt77x5xxaz6nyxm:n5t546ddvd6xlv4v6se6sjympbdbvo7orwizuzl42urm73sxazqa')
> python>>> mp = dokan.mount(fs, "f", foreground=True)
> 
> ---
> Ovcacik
> _______________________________________________
> tahoe-dev mailing list
> tahoe-dev at tahoe-lafs.org
> http://tahoe-lafs.org/cgi-bin/mailman/listinfo/tahoe-dev




More information about the tahoe-dev mailing list