Skip to content

Strict dependencies could be problematic for larger projectΒ #1147

@benoit-cty

Description

@benoit-cty

Hi there!

I really enjoy OpenFisca, but I recently encountered an issue.

Here is what I did:

import plotly to made a plot in a project using OpenFisca-France.

Here is what I expected to happen:

Importing work.

Here is what actually happened:

TypeError: <class 'numpy.typing._dtype_like._SupportsDType'> is not a generic class

Here is data (or links to it) that can help you reproduce this issue:

This is not directly an OpenFisca issue as it comes from xarray (See pydata/xarray#6818) that as a problem with NumPy 1.20.

But it is due to the OpenFisca directive 'numpy >= 1.11, < 1.21', resulting to installation of 1.20.3 from may 2021.

I understand that fixing version is safer for OpenFisca, but when using it

There is no emergency as I solved my problem by downgrading xarray. I just want to let the team know that it can cause problem.

Context

I identify more as a:

  • Developer (I create tools that use the existing OpenFisca code).

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