Skip to content

Script does not work in Python 3 #12

@mchesterkadwell

Description

@mchesterkadwell

The following lines don't work in Python 3:
https://github.com/BritishMuseumDH/britishMuseumFacesDetection/blob/master/britishMuseumFaces.py#L259
https://github.com/BritishMuseumDH/britishMuseumFacesDetection/blob/master/britishMuseumFaces.py#L290

I think this is because the synax for using urllib changed from Python 2:
urllib.urlretrieve()
to Python 3:
urllib.request.urlretrieve()

If you have the images downloaded already you won't see this error when testing with Python 3 because it's only necessary to use urllib when fetching the images for the first time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions