GDriveFS icon indicating copy to clipboard operation
GDriveFS copied to clipboard

support building on Python 3.4

Open bjmgeek opened this issue 11 years ago • 2 comments

I followed the instructions to get the latest mercurial version of google-api-python-client, but still got Unicode errors when building.

bminton@bminton:~$ sudo pip install gdrivefs
Downloading/unpacking gdrivefs
  Downloading gdrivefs-0.14.1.tar.gz (59kB): 59kB downloaded
  Running setup.py (path:/tmp/pip_build_root/gdrivefs/setup.py) egg_info for package gdrivefs
    Traceback (most recent call last):
      File "<string>", line 17, in <module>
      File "/tmp/pip_build_root/gdrivefs/setup.py", line 11, in <module>
        long_description = f.read()
      File "/usr/lib/python3.4/encodings/ascii.py", line 26, in decode
        return codecs.ascii_decode(input, self.errors)[0]
    UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 8532: ordinal not in range(128)
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 17, in <module>

  File "/tmp/pip_build_root/gdrivefs/setup.py", line 11, in <module>

    long_description = f.read()

  File "/usr/lib/python3.4/encodings/ascii.py", line 26, in decode

    return codecs.ascii_decode(input, self.errors)[0]

UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 8532: ordinal not in range(128)

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_root/gdrivefs
Storing debug log for failure in /root/.pip/pip.log

bjmgeek avatar Dec 10 '14 20:12 bjmgeek

I don't make any claims to be Python3 compatible, but I'd be happy to support you if you were to fork and start working on a pull-request for it. It'd be awesome, if you would.

dsoprea avatar Dec 12 '14 05:12 dsoprea

I've created pull request https://github.com/dsoprea/GDriveFS/pull/118

bjmgeek avatar Dec 12 '14 14:12 bjmgeek