ActivityWatch / aw-import-ical

16 stars 4 forks source link

Issue: Unable to Install `typed-ast` with Poetry on Ubuntu 24.04.1 LTS #7

Open EDLLT opened 3 weeks ago

EDLLT commented 3 weeks ago

System Information

Error Description

Attempting to install dependencies with Poetry results in a build error for typed-ast (1.4.3). The error appears to be related to a missing code.h file during compilation.

Steps to Reproduce

  1. Run poetry install on a project that includes typed-ast==1.4.3.
  2. Encounter the following error during the installation of typed-ast:

Error Log

Backend subprocess exited when trying to invoke build_wheel

  running bdist_wheel
  running build
  ...
  In file included from ast27/Custom/typed_ast.c:3:
  ast27/Custom/../Include/compile.h:5:10: fatal error: code.h: No such file or directory
      5 | #include "code.h"
        |          ^~~~~~~~
  compilation terminated.
  error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1

Fixes?

Is there a recommended version or workaround to install it?

Thank you for your assistance!

ErikBjare commented 3 weeks ago

Simply bumping python = "^3.7" to python = "^3.8" or higher in pyproject.toml, and then running poetry update should fix it.