Giter Site home page Giter Site logo

Comments (10)

MaximeAgez avatar MaximeAgez commented on June 7, 2024

Hi!. Code seems to be running fine on numpy 1.21.0, so it must not be the root of the issue. I'll keep looking into it.

from openio-canada.

MaximeAgez avatar MaximeAgez commented on June 7, 2024

I think the problem would probably come from the Python version you have installed? I can't see it in your package list. But I see you have matplotlib 3.8.3, which does not work with Python 3.9 I believe.

Can you try to downgrade Python to 3.9.7 and so matplotlib to whatever version that works with that Python distribution? And then tell me if it solves the issue or not.

from openio-canada.

hha-mm avatar hha-mm commented on June 7, 2024

Hi! Thanks for looking into this.

This was on Python 3.9.7:
image

I've tested again with matplotlib on an older version (3.7.0) and numpy changed to the recommended version (1.20.3), still on Python 3.9.7:
image
And I get the same error as before:
image

By the way, matplotlib 3.8.3 does support Python 3.9.X:
image
(taken from: https://matplotlib.org/devdocs/devel/min_dep_policy.html)

from openio-canada.

hha-mm avatar hha-mm commented on June 7, 2024

Could it be an issue with the Statcan/Exiobase datasets?
I used the 2019 versions, copying the demo, but I have the same issue with the 2022 and 2020 versions.

Specifically, I used these files:
https://www150.statcan.gc.ca/n1/pub/15-602-x/15-602-x2017001-eng.htm
image

and
https://zenodo.org/records/5589597
image

from openio-canada.

MaximeAgez avatar MaximeAgez commented on June 7, 2024

These are the correct files.

Are you using the latest version of openIO-Canada?

from openio-canada.

hha-mm avatar hha-mm commented on June 7, 2024

Are you using the latest version of openIO-Canada?

Yes, the latest commit.

from openio-canada.

MaximeAgez avatar MaximeAgez commented on June 7, 2024

Could you try with the 2.8 release? Maybe I broke something on some machines with the latest commit.
If it's still does not work with the 2.8 release we could have a call if you want to look into it live.

from openio-canada.

hha-mm avatar hha-mm commented on June 7, 2024

Just tried the 2.8 release; same issue.

from openio-canada.

hha-mm avatar hha-mm commented on June 7, 2024

I think I found the cause of the issue.

Turns out it only works if you use forward slashes in the filepath for the folder_path param. I was using backslashed file-paths (system default on Windows using os.sep and os.path functions); switching to forward slashes fixed it.
See: https://github.com/CIRAIG/OpenIO-Canada/blob/master/openIO.py#L56

from openio-canada.

MaximeAgez avatar MaximeAgez commented on June 7, 2024

Perfect. Thanks for the modification :)

from openio-canada.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.