dsoprea / GDriveFS

An innovative FUSE wrapper for Google Drive.
GNU General Public License v2.0
662 stars 96 forks source link

pip install gdrivefs fails due to fusepy==2.0.2 #209

Open pirofti opened 4 years ago

pirofti commented 4 years ago

Hi,

First of all congratulations on this awesome project!

I am currently trying to install it on OpenBSD and I get an error from pip when it tries to install fusepy (see log at the end).

If I manually try to install fusepy it works, but it installs the much newer version 3.0.1. If I use pip install fusepy=2.0.2 it fails. This happens with both python2 and python3 (so don't mind the pip3.7 command, I tried with both).

Is there any chance you could switch to a newer fusepy version?

Thank you, Paul Irofti

`$ doas pip3.7 install gdrivefs Collecting gdrivefs Using cached https://files.pythonhosted.org/packages/ed/59/6fe369dc22fb9dc3b1b6be3277d7c82cd869a0ebe3a21e0263e4abb40cc4/gdrivefs-0.14.12.tar.gz Collecting google-api-python-client>=1.2 (from gdrivefs) Using cached https://files.pythonhosted.org/packages/5e/19/9fd511734c0dee8fa3d49f4109c75e7f95d3c31ed76c0e4a93fbba147807/google-api-python-client-1.7.11.tar.gz Requirement already satisfied: six>=1.7.3 in /usr/local/lib/python3.7/site-packages (from gdrivefs) (1.13.0) Collecting fusepy==2.0.2 (from gdrivefs) Using cached https://files.pythonhosted.org/packages/0f/4d/26a937988e2633aa9f1d5268aa3782afaee9a482c6c6f221fc1e1ae58862/fusepy-2.0.2.tar.gz ERROR: Complete output from command python setup.py egg_info: ERROR: error in fusepy setup command: 'use_2to3_exclude_fixers' must be a list of strings (got {'lib2to3.fixes.fix_paren', 'lib2to3.fixes.fix_methodattrs', 'lib2to3.fixes.fix_set_literal', 'lib2to3.fixes.fix_basestring', 'lib2to3.fixes.fix_ws_comma', 'lib2to3.fixes.fix_raise', 'lib2to3.fixes.fix_raw_input', 'lib2to3.fixes.fix_has_key', 'lib2to3.fixes.fix_tuple_params', 'lib2to3.fixes.fix_intern', 'lib2to3.fixes.fix_reload', 'lib2to3.fixes.fix_print', 'lib2to3.fixes.fix_zip', 'lib2to3.fixes.fix_exitfunc', 'lib2to3.fixes.fix_xreadlines', 'lib2to3.fixes.fix_imports', 'lib2to3.fixes.fix_types', 'lib2to3.fixes.fix_input', 'lib2to3.fixes.fix_next', 'lib2to3.fixes.fix_execfile', 'lib2to3.fixes.fix_sys_exc', 'lib2to3.fixes.fix_itertools', 'lib2to3.fixes.fix_itertools_imports', 'lib2to3.fixes.fix_funcattrs', 'lib2to3.fixes.fix_xrange', 'lib2to3.fixes.fix_imports2', 'lib2to3.fixes.fix_idioms', 'lib2to3.fixes.fix_map', 'lib2to3.fixes.fix_apply', 'lib2to3.fixes.fix_long', 'lib2to3.fixes.fix_import', 'lib2to3.fixes.fix_getcwdu', 'lib2to3.fixes.fix_asserts', 'lib2to3.fixes.fix_buffer', 'lib2to3.fixes.fix_exec', 'lib2to3.fixes.fix_filter', 'lib2to3.fixes.fix_urllib', 'lib2to3.fixes.fix_repr', 'lib2to3.fixes.fix_dict', 'lib2to3.fixes.fix_standarderror', 'lib2to3.fixes.fix_renames', 'lib2to3.fixes.fix_metaclass', 'lib2to3.fixes.fix_ne', 'lib2to3.fixes.fix_nonzero', 'lib2to3.fixes.fix_throw', 'lib2to3.fixes.fix_reduce', 'lib2to3.fixes.fix_unicode', 'lib2to3.fixes.fix_operator', 'lib2to3.fixes.fix_isinstance'})

ERROR: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-15s99os1/fusepy/ `

pirofti commented 4 years ago

For the record, this patch fixes fusefs for me.

$OpenBSD$

Index: setup.py
--- setup.py.orig
+++ setup.py
@@ -29,11 +29,11 @@ setup(

     use_2to3 = True,
     # only use the following fixers (everything else is already compatible)
-    use_2to3_exclude_fixers = fixers - set([
+    use_2to3_exclude_fixers = list(fixers - set([
         'lib2to3.fixes.fix_except',
         'lib2to3.fixes.fix_future',
         'lib2to3.fixes.fix_numliterals',
-    ]),
+    ])),

     classifiers = [
         'Intended Audience :: Developers',
pirofti commented 4 years ago

Same question for greenlet==0.4.2. Does it need to be that strict? That does not build. greenlet-0.4.15 (latest) does.