latitude-dev / latitude

Developer-first embedded analytics
https://latitude.so
GNU Lesser General Public License v3.0
674 stars 27 forks source link

Issue when installing with python 3.12 #302

Closed carlosseru closed 1 month ago

carlosseru commented 1 month ago

Steps To Reproduce

Run npm install -g @latitude-data/cli Installation is fine. But when running latitude start it returns error due to python package distutils

Environment

Expected Behavior

Installation success

Actual Behaviour

Failed at import gyp. npm ERR! ModuleNotFoundError: No module named 'distutils'

Workarounds

The library distutils has been removed in python 3.12 I fixed it by running pip3 install setuptools (https://stackoverflow.com/questions/69919970/no-module-named-distutils-but-distutils-installed)

andresgutgon commented 1 month ago

Maybe it is related to this issue https://github.com/duckdb/duckdb/issues/9301

Thanks for reporting!

geclos commented 1 month ago

Adding the workaround to docs until we have a longterm fix