google-research / timesfm

TimesFM (Time Series Foundation Model) is a pretrained time-series foundation model developed by Google Research for time-series forecasting.
https://research.google/blog/a-decoder-only-foundation-model-for-time-series-forecasting/
Apache License 2.0
3.03k stars 227 forks source link

Installation conflict (praxis / lingvo) #1

Open x775 opened 1 month ago

x775 commented 1 month ago

Hi!

Thanks for sharing; looks interesting!

Attempting to install conda env create --file=environment_cpu.yml yields:

Collecting fiddle-config (from praxis->-r /Users/x775/dev/google/timesfm/condaenv.onqwchk0.requirements.txt (line 10))
  Downloading fiddle_config-0.2.2-py3-none-any.whl.metadata (2.0 kB)

The conflict is caused by:
    praxis 1.4.0 depends on lingvo==0.12.7
    praxis 1.3.1 depends on lingvo
    praxis 1.3.0 depends on lingvo
    praxis 1.2.0 depends on lingvo
    praxis 1.1.0 depends on lingvo==0.12.7
    praxis 1.0.0 depends on lingvo==0.12.6
    praxis 0.4.0 depends on lingvo
    praxis 0.3.0 depends on lingvo
    praxis 0.2.1 depends on lingvo
    praxis 0.2.0 depends on lingvo
    praxis 0.1 depends on lingvo

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

Pip subprocess error:
  Running command git clone --filter=blob:none --quiet https://github.com/awslabs/gluon-ts.git /private/var/folders/rx/3ng5q4ld33n6ks7mm8nrqmrm0000gq/T/pip-req-build-f10csovl
  Running command git clone --filter=blob:none --quiet https://github.com/amazon-science/chronos-forecasting.git /private/var/folders/rx/3ng5q4ld33n6ks7mm8nrqmrm0000gq/T/pip-req-build-a6gv6ye5
ERROR: Cannot install -r /Users/x775/dev/google/timesfm/condaenv.onqwchk0.requirements.txt (line 10) because these package versions have conflicting dependencies.
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts

failed

CondaEnvException: Pip failed

running conda 24.4.0 on MacOS Sonoma 14.4.1 w/ M1 Max.

Attempting to install with pip directly yields

INFO: pip is looking at multiple versions of paxml to determine which version is compatible with other requirements. This could take a while.
ERROR: Ignored the following versions that require a different python version: 1.6.2 Requires-Python >=3.7,<3.10; 1.6.3 Requires-Python >=3.7,<3.10; 1.7.0 Requires-Python >=3.7,<3.10; 1.7.1 Requires-Python >=3.7,<3.10; 1.8.0 Requires-Python >=3.11
ERROR: Could not find a version that satisfies the requirement lingvo==0.12.7 (from paxml) (from versions: none)
ERROR: No matching distribution found for lingvo==0.12.7
sitic commented 1 month ago

lingvo only supports python 3.8, 3.9 and 3.10.

conda env create python=3.10 --file=environment_cpu.yml should work.

x775 commented 1 month ago

lingvo only supports python 3.8, 3.9 and 3.10.

conda env create python=3.10 --file=environment_cpu.yml should work.

environment_cpu.yml already specifies python=3.10, see https://github.com/google-research/timesfm/blob/master/environment_cpu.yml#L10. Specifically, the environment created is 3.10.14.

sarusso commented 1 month ago

To reproduce the issue (today) you can use the following Dockerfile (on an ARM cpu or with hardware emulation):

FROM continuumio/miniconda3@sha256:2016f249cdae34692a20d90fdb17432d07cf312992345d0e1e492bc36a12a35b
COPY environment_cpu.yml /tmp
RUN conda env create --file=/tmp/environment_cpu.yml
siriuz42 commented 1 month ago

Looks like lingvo lacks pip support on macOS https://github.com/tensorflow/lingvo/issues/195

eha88 commented 1 month ago

Also experiencing this on Windows 10, conda 4.12.0, when running conda env create --file=environment_cpu.yml

patricktimmons commented 1 month ago

Looks like lingvo lacks pip support on macOS tensorflow/lingvo#195

More than that, it seems to be an issue with lingvo on ARM64. google/paxml#30

luoolu commented 1 month ago

same issue, ubuntu23.10,conda env ,python=3.10.14@sitic

cbroker1 commented 1 month ago

Same issue, Windows 11: conda env create python=3.10.14 --file=environment.yml

Conda ver:

  current version: 23.1.0

Produces:

The conflict is caused by:
    praxis 1.4.0 depends on lingvo==0.12.7
    praxis 1.3.1 depends on lingvo
    praxis 1.3.0 depends on lingvo
    praxis 1.2.0 depends on lingvo
    praxis 1.1.0 depends on lingvo==0.12.7
    praxis 1.0.0 depends on jaxlib==0.4.7
    praxis 0.4.0 depends on lingvo
    praxis 0.3.0 depends on lingvo
    praxis 0.2.1 depends on lingvo
    praxis 0.2.0 depends on lingvo
    praxis 0.1 depends on lingvo

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

Pip subprocess error:
ERROR: Cannot install -r C:\Users\carlb\Downloads\timesfm-master\timesfm-master\condaenv.jfz4djp8.requirements.txt (line 3) because these package versions have conflicting dependencies.
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts
matsuobasho commented 1 month ago

Same issue on Windows 10, conda version 24.4.0

tigermask1978 commented 1 month ago

Does anyone solve this problem?

skdhod commented 1 month ago

same issue

alexmarmaliuk commented 1 month ago

same issue on windows 11. conda version:

conda 23.9.0
The conflict is caused by:
    praxis 1.4.0 depends on lingvo==0.12.7
    praxis 1.3.1 depends on lingvo
    praxis 1.3.0 depends on lingvo
    praxis 1.2.0 depends on lingvo
    praxis 1.1.0 depends on lingvo==0.12.7
    praxis 1.0.0 depends on jaxlib==0.4.7
    praxis 0.4.0 depends on lingvo
    praxis 0.3.0 depends on lingvo
    praxis 0.2.1 depends on lingvo
    praxis 0.2.0 depends on lingvo
    praxis 0.1 depends on lingvo

python version (tried two):

Python 3.10.14
Python 3.9.19
susanameiras commented 1 month ago

Same issue found!

The conflict is caused by:
    praxis 1.4.0 depends on lingvo==0.12.7
    praxis 1.3.1 depends on lingvo
    praxis 1.3.0 depends on lingvo
    praxis 1.2.0 depends on lingvo
    praxis 1.1.0 depends on lingvo==0.12.7
    praxis 1.0.0 depends on jaxlib==0.4.7
    praxis 0.4.0 depends on lingvo
    praxis 0.3.0 depends on lingvo
    praxis 0.2.1 depends on lingvo
    praxis 0.2.0 depends on lingvo
    praxis 0.1 depends on lingvo

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict
nxfi777 commented 1 month ago

I also have this issue on Windows, using the CPU environment. Works fine with the GPU environment on Ubuntu.

infiniti47 commented 1 month ago

Same error! tried almost everything. Please fix it. Thanks.

chenking2020 commented 1 month ago

Same error! Mac M1 Pro. Please fix it. Thanks.

nxfi777 commented 1 month ago

Same error! Mac M1 Pro. Please fix it. Thanks.

The dependency lingvo does not support pip install for macOS. For now you can manually install it from the source following these instructions.

sarusso commented 1 month ago

The dependency lingvo does not support pip install for macOS.

You might want to specify that it does not support ARM, and consequentially Apple silicon (M1/M2 etc.). On older Intel Macs it should work fine, and it will not work on ARM servers. It's the architecture that is not supported, not the OS.

(Sorry this message was more for the authors/maintainers than for you!)

pdfour commented 1 month ago

the issue is that, as specified in lingvo github source file, lingvo run only on python 3.10 and 3.9 My python version was 3.12 so the package lingvo was not available (no lingvo version found when pip install lingvo is executed)

TO bypass this issue you can : remove the following lines from the environnement file :

do conda env create --file=environment_cpu.yml then conda activate tfm_env

this ensure you have the correct python version installed (3.10) and not the one on your machine (first you install python 3.10 then you use pip with python 3.10,)

you can check if you have the correct python version with python --version

then you can do pip install lingvo and since its only available on python 3.10 it should work

Update : no it still doesn't work idk why, if anyone has insight

blackcat1402 commented 1 month ago

This issue is the killer

lhw828 commented 1 month ago

This mistake discouraged 99% of people.

abhidas commented 1 month ago

(As sarusso pointed out in their earlier comment) TimesFM has a lingvo dependency. lingvo unfortunately does not support ARM, and consequentially Apple silicon (M1/M2 etc.). We are working to find a way around this issue

benjaminchensz commented 1 month ago

pip only have the lingvo linux dist. And tried to install it from source, then we will face the issue of "tensorflow-text~=2.13.0" because tensorflow discontinue their dist on windows after 2.11.0 release. Seems the only way is to move to Linux..

lhw828 commented 1 month ago

This program has been successfully run in Ubuntu.

https://github.com/lhw828/timesfm

Blochergroup commented 1 month ago

Solved it using WSL with Ubuntu 22.04 on Windows 11

KillrBee commented 1 month ago

This won't run in a windows environment because a number of the repos are for linux only.

SpirosM10 commented 1 month ago

just as @Blochergroup said, this is solved using WSL with Ubuntu on windows.

BrutishGuy commented 1 month ago

I don't think using WSL with Ubuntu on Windows is an 'acceptable' solution - in the short-term while this is worked on, sure. It unfortunately makes the repository 1) difficult to get started with and to integrate into other code and 2) ties it to the OS, making it inaccessible to non-Ubuntu Linux distro users, and OSX users.

I think another solution or workaround needs to be found here.

juneedpk commented 1 month ago

ERROR: Could not find a version that satisfies the requirement lingvo==0.12.7 (from paxml) (from versions: none) ERROR: No matching distribution found for lingvo==0.12.7 PS E:\times_fm>

man0819 commented 1 month ago

windows 下的Ubuntu 安裝成功

matsuobasho commented 1 month ago

ERROR: Could not find a version that satisfies the requirement lingvo==0.12.7 (from paxml) (from versions: none) ERROR: No matching distribution found for lingvo==0.12.7 PS E:\times_fm>

@BrutishGuy completely agree. In the current state, the maintainers should write explicitly in the Readme: 'Doesn't run on Windows or OSX' to avoid wasting people's time.

juneedpk commented 1 month ago

lingvo only supports python 3.8, 3.9 and 3.10.

conda env create python=3.10 --file=environment_cpu.yml should work.

it doesnt work on python 3.10 either

sundaymemo commented 1 month ago

They never care about windows users.

enzoyes commented 1 month ago

Any movement here? mac M1 meets the problem.

ChengEast commented 2 weeks ago

windows 下的Ubuntu 安裝成功 Solved it using WSL with Ubuntu 22.04 on Windows 11

我也是用WINDOW11的WSL安装的,但是我也卡在lingvo这了,请麻烦指导 一下,谢谢! 我的python是3.10,ubuntu是22.04,conda是24.1.2