Comments (10)
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.
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.
Hi! Thanks for looking into this.
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:
And I get the same error as before:
By the way, matplotlib 3.8.3 does support Python 3.9.X:
(taken from: https://matplotlib.org/devdocs/devel/min_dep_policy.html)
from openio-canada.
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
and
https://zenodo.org/records/5589597
from openio-canada.
These are the correct files.
Are you using the latest version of openIO-Canada?
from openio-canada.
Are you using the latest version of openIO-Canada?
Yes, the latest commit.
from openio-canada.
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.
Just tried the 2.8 release; same issue.
from openio-canada.
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.
Perfect. Thanks for the modification :)
from openio-canada.
Related Issues (20)
- International imports HOT 1
- Classifications available
- Industry by industry with final demand disaggregated
- Water use to water consumption
- Land use data
- Special Session Open Source IO at IIOA 2023 HOT 2
- Use for independent project HOT 3
- data loading error in 2019 at Balancing inter-provincial trade HOT 11
- if you please write the tables names as written in demo what are these tables it will help. Thanks HOT 1
- consumption emissions (MtCO2eq) HOT 9
- Getting error when endogenizing_capitals=True with 2017 run only, 2018 and 2019 works fine. HOT 4
- How I can call and use this function. Please help. thanks HOT 2
- Inter-provincial trade emmisions HOT 3
- production and consumption comparision HOT 2
- error on version 2.8 HOT 2
- Currency question HOT 4
- Consumption Approach Validation HOT 2
- Zero emission sectors HOT 4
- Model does not run properly for years prior to 2016 (included) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openio-canada.