maxint / kuaipan

Fuse file system for http://kuaipan.cn
15 stars 5 forks source link

Fuse not working under OS X #2

Closed evianzhow closed 9 years ago

evianzhow commented 9 years ago

It may related to a problem of fuse on OS X. Fuse on OS X doesn't have a option named nonempty.

fuse: unknown option `nonempty' [E] kpfuse - kpfuse command failed Traceback (most recent call last): File "/usr/local/opt/pyenv/versions/2.7.8/lib/python2.7/site-packages/kpfuse/command.py", line 111, in main launch(vars(args)) File "/usr/local/opt/pyenv/versions/2.7.8/lib/python2.7/site-packages/kpfuse/command.py", line 82, in launch ro=False) # readonly File "/usr/local/opt/pyenv/versions/2.7.8/lib/python2.7/site-packages/fuse.py", line 399, in init** raise RuntimeError(err) RuntimeError: 1 mount_osxfusefs: failed to mount /Users/Yifei/KuaiBox@/dev/osxfuse0: Socket is not connected

pyenv + python 2.7.8 + OS X Yosemite

maxint commented 9 years ago

Hi Austin,

Thanks for reporting this issue with so much detail! I have disable the "nonempty" option. You could have a try.

B. R. maxint

evianzhow commented 9 years ago

Thanks for the quick response. I've tried reinstall(upgrade) kpfuse on my system, and there is another problem and I pasted the traceback below. I'm not sure whether this problem is cause by pyenv on my system or something else. Please have a look.

Traceback (most recent call last): File "/usr/local/opt/pyenv/versions/2.7.8/bin/kpfs", line 9, in load_entry_point('kpfuse==0.4.1', 'console_scripts', 'kpfs')() File "/usr/local/opt/pyenv/versions/2.7.8/lib/python2.7/site-packages/pkg_resources/init.py", line 552, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/usr/local/opt/pyenv/versions/2.7.8/lib/python2.7/site-packages/pkg_resources/init.py", line 2672, in load_entry_point return ep.load() File "/usr/local/opt/pyenv/versions/2.7.8/lib/python2.7/site-packages/pkg_resources/init.py", line 2345, in load return self.resolve() File "/usr/local/opt/pyenv/versions/2.7.8/lib/python2.7/site-packages/pkg_resources/init.py", line 2351, in resolve module = import(self.module_name, fromlist=['name'], level=0) ImportError: No module named command

maxint commented 9 years ago

Hi Austin,

It's a bug after I rename the module name :cry: . Please check the latest version for bug fix. May be more unit tests is needed to make the script more robust.

Thanks again for your report!

B. R. maxint

evianzhow commented 9 years ago

Yes. Latest version works.

But under OS X, FUSE doesn't operate so well. If you are using OS X, please have a try. Sometimes I can't sync with the remote, get stuck when creating files. I doubt that these behaviors are related to OSXFuse itself.

maxint commented 9 years ago

It may be a bug, I just fix some bugs related with file creating and uploading (v0.5.2). More tests are needed seriously before making it work well for all cases. According to tests by myself, read-only operations has better experiences.