timesfm
timesfm copied to clipboard
Installation conflict (praxis / lingvo)
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
lingvo only supports python 3.8, 3.9 and 3.10.
conda env create python=3.10 --file=environment_cpu.yml
should work.
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
.
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
Looks like lingvo lacks pip support on macOS https://github.com/tensorflow/lingvo/issues/195
Also experiencing this on Windows 10, conda 4.12.0, when running conda env create --file=environment_cpu.yml
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
same issue, ubuntu23.10,conda env ,python=3.10.14@sitic
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
Same issue on Windows 10, conda version 24.4.0
Does anyone solve this problem?
same issue
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
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
I also have this issue on Windows, using the CPU environment. Works fine with the GPU environment on Ubuntu.
Same error! tried almost everything. Please fix it. Thanks.
Same error! Mac M1 Pro. Please fix it. Thanks.
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.
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!)
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 :
- pip:
- huggingface_hub[cli]
- utilsforecast
- praxis
- paxml
- jax[cpu]
- einshape
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
This issue is the killer
This mistake discouraged 99% of people.
(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
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..
This program has been successfully run in Ubuntu.
https://github.com/lhw828/timesfm
Solved it using WSL with Ubuntu 22.04 on Windows 11
This won't run in a windows environment because a number of the repos are for linux only.
just as @Blochergroup said, this is solved using WSL with Ubuntu on windows.
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.
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>
windows 下的Ubuntu 安裝成功