Skip to content

get_config_var("EXT_SUFFIX") returns None with Python 3.2 #174

Closed
@morwel

Description

@morwel

I'm running Debian Wheezy with Python 3.2.3.
In iptc/util.py in function _find_library(*names): get_config_var("EXT_SUFFIX") gets called and returns None and so the import fails
Calling get_config_var("SO") is valid until python 3.3 and returns '.cpython-32mu.so'. So I think get_contig_var("SO") should be used instead if version_info <= (3, 3).

The pice of code i'm taking about.

def _find_library(*names):
    if version_info > (3, ):
        ext = get_config_var("EXT_SUFFIX")
    else:
        ext = get_config_var('SO')

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