google / temporian

Temporian is an open-source Python library for preprocessing ⚡ and feature engineering 🛠 temporal data 📈 for machine learning applications 🤖
https://temporian.readthedocs.io
Apache License 2.0
663 stars 43 forks source link

Build error at pip install - Mac Intel #361

Open qynikos opened 7 months ago

qynikos commented 7 months ago

Building wheels for collected packages: temporian Building wheel for temporian (pyproject.toml) ... error error: subprocess-exited-with-error

× Building wheel for temporian (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [56 lines of output] fatal: not a git repository (or any of the parent directories): .git A setup.py file already exists. Using it. running build running bazel_build

I saw there was a similar issue reported earlier but couldnt find anywhere the steps to resolve. Any chance there are anywhere some steps to follow to resolve? Mac Intel, Python 3.10

ianspektor commented 7 months ago

Hey @qynikos!

How are you installing it? Mac intel wheel for py3.10 is on PyPI (see temporian-0.7.0-cp310-cp310-macosx_12_0_x86_64.whl here), you shouldn't be needing to build it yourself.

qynikos commented 7 months ago

Στιγμιότυπο οθόνης 2024-01-30, 10 01 49 μμ Στιγμιότυπο οθόνης 2024-01-30, 10 02 24 μμ Ian, thanks for getting back so quickly! See my 2 screenshots, have been trying pip install from 3.10 (and 3.11 as well) but always getting this error. Tried few workarounds from StackOverflow on that error for other libs but no luck.

ianspektor commented 7 months ago

No worries! Strange that it's pulling the tarball from PyPI instead of the built wheel. What's your exact MacOS version, Macbook model, python version?

@rstz any ideas?

qynikos commented 7 months ago

Mac mini 2018 @ Sonoma 14.2.1 & Python version 3.10.13 (was getting same for 3.11.5).

rstz commented 7 months ago

You can force building from a wheel in Python with pip install temporian --only-binary :all:. Does this work?

qynikos commented 7 months ago

It does install v0.0.0: Found existing installation: temporian 0.0.0

import temporian as tp / ModuleNotFoundError: No module named 'temporian'

rstz commented 7 months ago

What's the output of

from packaging.tags import sys_tags
print(list(sys_tags()))
qynikos commented 7 months ago

a pretty long list, anything specific I should look for there to give you?

rstz commented 7 months ago

I imagine cp310-cp310-macosx_12_0_x86_64 is not on the list, but maybe cp310-cp310-macosx_10_15_x86_64 is?

qynikos commented 7 months ago

both are there: <cp310-cp310-macosx_12_0_x86_64 @ 140514561832512>, <cp310-cp310-macosx_10_15_x86_64 @ 140514561918912>