Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation conflict (praxis / lingvo) #1

Open
x775 opened this issue May 8, 2024 · 40 comments
Open

Installation conflict (praxis / lingvo) #1

x775 opened this issue May 8, 2024 · 40 comments

Comments

@x775
Copy link

x775 commented May 8, 2024

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
Copy link
Contributor

sitic commented May 8, 2024

lingvo only supports python 3.8, 3.9 and 3.10.

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

@x775
Copy link
Author

x775 commented May 9, 2024

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
Copy link

sarusso commented May 9, 2024

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
Copy link
Collaborator

siriuz42 commented May 9, 2024

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

@eha88
Copy link

eha88 commented May 10, 2024

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

@patricktimmons
Copy link

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
Copy link

luoolu commented May 11, 2024

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

@cbroker1
Copy link

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
Copy link

Same issue on Windows 10, conda version 24.4.0

@tigermask1978
Copy link

Does anyone solve this problem?

@skdhod
Copy link

skdhod commented May 13, 2024

same issue

@alexmarmaliuk
Copy link

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
Copy link

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
Copy link

nxfi777 commented May 13, 2024

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

@infiniti47
Copy link

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

@chenking2020
Copy link

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

@nxfi777
Copy link

nxfi777 commented May 14, 2024

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
Copy link

sarusso commented May 14, 2024

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
Copy link

pdfour commented May 15, 2024

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

@blackcat1402
Copy link

This issue is the killer

@lhw828
Copy link

lhw828 commented May 17, 2024

This mistake discouraged 99% of people.

@abhidas
Copy link
Collaborator

abhidas commented May 17, 2024

(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
Copy link

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
Copy link

lhw828 commented May 20, 2024

This program has been successfully run in Ubuntu.

https://github.com/lhw828/timesfm

@Blochergroup
Copy link

Solved it using WSL with Ubuntu 22.04 on Windows 11

@KillrBee
Copy link

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

@SpirosM10
Copy link

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

@BrutishGuy
Copy link

BrutishGuy commented May 22, 2024

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
Copy link

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
Copy link

man0819 commented May 22, 2024

windows 下的Ubuntu 安裝成功

@matsuobasho
Copy link

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
Copy link

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
Copy link

They never care about windows users.

@enzoyes
Copy link

enzoyes commented Jun 2, 2024

Any movement here? mac M1 meets the problem.

@ChengEast
Copy link

ChengEast commented Jun 20, 2024

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

@uzairnz
Copy link

uzairnz commented Jul 21, 2024

They should properly mention supported OS like Ubuntu 22.04. I tried all the methods above but still no success.
Anyone find a proper solution to run this on Mac, Windows using Conda please do update here.

@uzairnz
Copy link

uzairnz commented Jul 21, 2024

Solution for running this on google colab

Since I use time series models for stock forecasting. I wanted to use this new tool. Tried to install this on my local mac & windows but no success.
Then I thought made by google must run on a google powered env. So tried this on google collabs I will add link to my gist so you can try for yourself as well.

I used these mentioned techniques to run this on CPU

  • Set Environment Variable for JAX:

  • The os.environ['JAX_PLATFORMS'] = 'cpu' line is included to ensure that if any part of the code uses JAX, it defaults to the CPU.

  • Switch Backend to 'cpu':

  • The backend='cpu' parameter in the TimesFm initialization ensures that cpu is used as the backend.

You can visit this public Gist I am adding for reference.
timesfm_stock_forecasting_example
Happy Codding 😃

@zeinabsobhani
Copy link

Mac M3 same issue here!

@uzairnz
Copy link

uzairnz commented Jul 29, 2024

Mac M3 same issue here!

#1 (comment)

@tarushagarwal
Copy link

(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

Has there been any progress on supporting ARM based Macs?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests