Skip to content

Python 3 problems with versions > 1.1.6 #485

@kwilcox

Description

@kwilcox

Appending to a file using a context manager seems to close the Dataset (or it gets garbaged collected) before completing, usually resulting in a segfault.

This may have to do with #251.

I've used 1.1.6 for a long awhile now (it "just works" for me) and I was trying to upgrade things to 1.2.1 (so I can use the now built-in get_variables_by_attributes).

Here is a simple script to demonstrate. File to go along with script (looks in the same directory for it). Everything works fine with Python 2.7, but fails with Python 3.4 when the netcdf4-python version is above 1.1.6. I didn't test 1.1.7 because that release never made it to conda.

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