PyPSA / pypsa-usa

PyPSA-USA: An Open-Source Energy System Optimization Model for the United States
https://pypsa-usa.readthedocs.io
MIT License
35 stars 15 forks source link

Fix pyarrow version for build_cost_data #308

Closed ktehranchi closed 2 months ago

ktehranchi commented 2 months ago

Checklist

Issue exisits on what branch

Master

The Issue

A new user who just downloaded the repo had pyarrow version 14.0.0, and he got an error on build_cost_data

Solution: pip installed back to pyarrow==13.0.0

Steps To Reproduce

No response

Expected Behavior

No response

Error Message

No response

Anything else?

No response

trevorb1 commented 2 months ago

@ktehranchi; I am having trouble recreating this issue! :(

I did a clean install of the pypsa-usa environment and everything worked fine. I am running pandas 2.2.2 and pyarrow 15.0.2 (the default install versions) and successfully ran build_demand on the master branch. Additionally, I tried with pyarrow versions 13.0.0, 14.0.0, and 14.0.2 and did not run into an issue. I ensured I was running EFS data, as this uses the pyarrow engine. Perhaps it is an issue with the pandas/pyarrow versions. Do you know the version of pandas the user was running?

ktehranchi commented 2 months ago

Okay weird.... I guess this was a different issue with the users conda environment then. Ill close. Thanks for checking!