Skip to content

Installation fails with python3 #91

Description

@nicovillanueva

Currently, installing either from github, or from pip, fails with a TypeError

➤ sudo pip3 install -e git+https://github.com/bwhite/hadoopy#egg=hadoopy
Obtaining hadoopy from git+https://github.com/bwhite/hadoopy#egg=hadoopy
  Cloning https://github.com/bwhite/hadoopy to ./src/hadoopy
  Running setup.py (path:/home/nico/devel/workplace/feed-processing/src/hadoopy/setup.py) egg_info for package hadoopy
    Traceback (most recent call last):
      File "<string>", line 17, in <module>
      File "/home/nico/devel/workplace/feed-processing/src/hadoopy/setup.py", line 72, in <module>
        glibc_version = get_glibc_version()
      File "/home/nico/devel/workplace/feed-processing/src/hadoopy/setup.py", line 51, in get_glibc_version
        match = re.search('([0-9]+)\.([0-9]+)\.?[0-9]*', out)
      File "/usr/lib/python3.4/re.py", line 170, in search
        return _compile(pattern, flags).search(string)
    TypeError: can't use a string pattern on a bytes-like object
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

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

  File "/home/nico/devel/workplace/feed-processing/src/hadoopy/setup.py", line 72, in <module>

    glibc_version = get_glibc_version()

  File "/home/nico/devel/workplace/feed-processing/src/hadoopy/setup.py", line 51, in get_glibc_version

    match = re.search('([0-9]+)\.([0-9]+)\.?[0-9]*', out)

  File "/usr/lib/python3.4/re.py", line 170, in search

    return _compile(pattern, flags).search(string)

TypeError: can't use a string pattern on a bytes-like object

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /home/nico/devel/workplace/feed-processing/src/hadoopy
Storing debug log for failure in /home/nico/.pip/pip.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions