globaldothealth / InsightBoard

A dashboard to upload and manage data and generate reports.
MIT License
2 stars 1 forks source link

Python 3.13 launch issues #37

Open jsbrittain opened 4 days ago

jsbrittain commented 4 days ago

Python 3.13 compatibility issues:

  1. pyarrow does not build binaries for the platform (https://github.com/apache/arrow/issues/ 43519); because of this InsightBoard is taking a long time to install as it needs to build the binaries, and this appears to have caused an installation to fail on another machine (no logs available) where developer tools were likely not available. The pyarrow issue linked above states that v18 binaries for py3.13 are imminent and should resolve the problem.

  2. Attempting to parse a file in 3.13 produces the error: cannot inherit frozen dataclass from a non-frozen one. This is actually not due to InsightBoard, but due to the adtl parser importing pint, which is not 3.13 compliant yet (see https://github.com/globaldothealth/adtl/issues/97).

jsbrittain commented 4 days ago

Note: We are currently only testing 3.12 in CI. Adopting nox and testing across 3.11 (min supported version) and 3.13 (currently release) would be recommended.

edit: done in #43

jsbrittain commented 4 days ago

Further observation: Testing in 3.13 produces: There was an error processing the file: cannot inherit frozen dataclass from a non-frozen one when attempting to parse a data file. As a result InsightBoard does not currently support python 3.13.

update: this is due to adtl importing pint, which is not 3.13 compliant yet, see https://github.com/globaldothealth/adtl/issues/97

jsbrittain commented 4 days ago

Python 3.13 tests fail in CI, see https://github.com/globaldothealth/InsightBoard/actions/runs/11261412066/job/31314794050?pr=44 in PR #44 as they cannot build pyarrow

jsbrittain commented 4 days ago

Added version compatiblity badges to alert the user while this issue is being resolved #47