Dokan with Python - Error find libdokan

244 views
Skip to first unread message

Eduardo Godoy

unread,
Aug 7, 2016, 3:55:41 PM8/7/16
to Dokan
Hi Guys.

I have a problem using dokan library with python on Windows.

The simplest test doesn't work.

I install python 3.5 and dokany 1.0.0 RC4. After this, i install pyfilesystem with command: pip install fs.

All with success.

When i try run this test a get a error:

>>> from fs.memoryfs import MemoryFS
>>> from fs.expose import dokan
>>> fs = MemoryFS()
>>> mp = dokan.mount(fs,"Q")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Program Files\Python35\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
Anyone can help me?

Adrien JUND

unread,
Aug 7, 2016, 3:59:03 PM8/7/16
to do...@googlegroups.com

Hi Eduardo,

Pyfilesystem is currently only compatible with dokan 0.5.3

There is a pending pull request that add compatibility to dokany 1.0.0

https://github.com/PyFilesystem/pyfilesystem/pull/258
Issue: https://github.com/PyFilesystem/pyfilesystem/issues/256

I would appreciate if you could make some feedback on the issue after testing :) !

--
You received this message because you are subscribed to the Google Groups "Dokan" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dokan+un...@googlegroups.com.
To post to this group, send email to do...@googlegroups.com.
Visit this group at https://groups.google.com/group/dokan.
For more options, visit https://groups.google.com/d/optout.

Eduardo Godoy

unread,
Aug 7, 2016, 4:24:39 PM8/7/16
to Dokan
Hi Liryna..

Thanks for reply... I'm new in here and in python dev.

How can i get this version os pyfilesistem that you changed? I see your changes in here :https://github.com/PyFilesystem/pyfilesystem/pull/258/files, but how do i download and install?

Yeah, i'm a newbie... rsrs

Apreciate your help

Adrien JUND

unread,
Aug 7, 2016, 4:46:39 PM8/7/16
to do...@googlegroups.com

git clone https://github.com/Liryna/pyfilesystem.git
cd pyfilesystem
python setup.py install

Pyfs doc http://docs.pyfilesystem.org/en/latest/getting_started.html#installing

You will probably need to remove package previously installed with pip.

Eduardo Godoy

unread,
Aug 7, 2016, 6:00:51 PM8/7/16
to Dokan
Ok, nice...

Now dokan seems to be found and ok.

Do you have a other sample of how use this?

I want mount a folder "C:\\My Apss" into a new virtual driver (letter G for example).

Adrien JUND

unread,
Aug 8, 2016, 2:22:22 AM8/8/16
to do...@googlegroups.com

I don't think pyfs made a mirror like sample :(

Andreas Gnau

unread,
Aug 8, 2016, 5:58:28 AM8/8/16
to do...@googlegroups.com
I never tested pyfilesystem, but you should be able to create an
OSFS-object and then mount it using fs.expose.dokan.

For such simple tasks there is even a command-line helper, that does
this for you.
fsmount mem:// M: # mount memory-backed fs to M:
fsmount . L # mirror the current dir to L:
fsmount zip://foo.zip C:\mountzip # mount zip to dir C:\mountzip
fsmount zip://foo.zip foo.zip.mnt # mount zip to dir foo.zip.mnt
fsmount ftp://ftp.mozilla.org/pub O: # mount Mozilla FTP to O:


On 2016-08-08 08:22, Adrien JUND wrote:
> I don't think pyfs made a mirror like sample :(
>
>
> Le 08/08/2016 à 00:00, Eduardo Godoy a écrit :
>> Ok, nice...
>>
>> Now dokan seems to be found and ok.
>>
>> Do you have a other sample of how use this?
>>
>> I want mount a folder "C:\\My Apss" into a new virtual driver (letter
>> G for example).
>>
>>
>> Em domingo, 7 de agosto de 2016 17:46:39 UTC-3, Liryna escreveu:
>>
>> git clone https://github.com/Liryna/pyfilesystem.git
>> <https://github.com/Liryna/pyfilesystem.git>
>> cd pyfilesystem
>> python setup.py install
>>
>> Pyfs doc
>> http://docs.pyfilesystem.org/en/latest/getting_started.html#installing
>> <http://docs.pyfilesystem.org/en/latest/getting_started.html#installing>
>>
>> You will probably need to remove package previously installed with
>> pip.
>>
>>
>> Le 07/08/2016 à 22:24, Eduardo Godoy a écrit :
>>> Hi Liryna..
>>>
>>> Thanks for reply... I'm new in here and in python dev.
>>>
>>> How can i get this version os pyfilesistem that you changed? I
>>> see your changes in here
>>> :https://github.com/PyFilesystem/pyfilesystem/pull/258/files

>>> <https://github.com/PyFilesystem/pyfilesystem/pull/258/files>,

>>>> <https://groups.google.com/group/dokan>. For more options,
>>>> visit https://groups.google.com/d/optout
>>>> <https://groups.google.com/d/optout>.


>>>
>>> -- You received this message because you are subscribed to the
>>> Google Groups "Dokan" group. To unsubscribe from this group and
>>> stop receiving emails from it, send an email to

>>> dokan+un...@googlegroups.com <javascript:>. To post to this
>>> group, send email to do...@googlegroups.com <javascript:>. Visit

>>> <https://groups.google.com/group/dokan>. For more options, visit
>>> https://groups.google.com/d/optout
>>> <https://groups.google.com/d/optout>.


>>
>> -- You received this message because you are subscribed to the Google
>> Groups "Dokan" group. To unsubscribe from this group and stop
>> receiving emails from it, send an email to
>> dokan+un...@googlegroups.com

>> <mailto:dokan+un...@googlegroups.com>. To post to this group,
>> send email to do...@googlegroups.com <mailto:do...@googlegroups.com>.


>> Visit this group at https://groups.google.com/group/dokan. For more
>> options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Dokan" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to dokan+un...@googlegroups.com

> <mailto:dokan+un...@googlegroups.com>.


> To post to this group, send email to do...@googlegroups.com

> <mailto:do...@googlegroups.com>.


> Visit this group at https://groups.google.com/group/dokan.
> For more options, visit https://groups.google.com/d/optout.

----------------------------------------------------------------------
Intel Sweden AB
Registered Office: Isafjordsgatan 30B, 164 40 Kista, Stockholm, Sweden
Registration Number: 556189-6027

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.

Reply all
Reply to author
Forward
0 new messages