Skip to content

python-boilerpipe setup.py fails using Python3 #27

Description

@rhmccullough

setup.py fails due to changes in urllib package and unicode() function.
With the following changes, build succeeds on Windows8.1/Cygwin and Mac OS X 10.9.5.
Other software: Oracle JDK 8u20, latest build of JPype1-py3.
Python3 changes to python-boilerpipe-master/src/boilerpipe/extract/init.py
import urllib.request # line 2
request = urllib.request.Request(kwargs['url'], headers=self.headers) # line 35
connection = urllib.request.urlopen(request) # line 36
self.data = str(self.data, encoding) # line 41
self.data = str(self.data, charade.detect(self.data)['encoding']) # line 45

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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