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

On fedora 41 and latest git manual version numpy dependency issues #33

Open
yodatak opened this issue Sep 11, 2024 · 3 comments
Open

On fedora 41 and latest git manual version numpy dependency issues #33

yodatak opened this issue Sep 11, 2024 · 3 comments

Comments

@yodatak
Copy link

yodatak commented Sep 11, 2024

Hi thanks for this awesome project, i just try to follow manual install in fedora and i'm stuck on this issue

ERROR: Cannot install -r Ubuntu_requirements.txt (line 105), -r Ubuntu_requirements.txt (line 15), -r Ubuntu_requirements.txt (line 2), -r Ubuntu_requirements.txt (line 24), -r Ubuntu_requirements.txt (line 29), -r Ubuntu_requirements.txt (line 42), -r Ubuntu_requirements.txt (line 58), -r Ubuntu_requirements.txt (line 71), -r Ubuntu_requirements.txt (line 89), -r Ubuntu_requirements.txt (line 95), -r Ubuntu_requirements.txt (line 96) and numpy==1.26.4 because these package versions have conflicting dependencies.

The conflict is caused by:
The user requested numpy==1.26.4
accelerate 0.24.1 depends on numpy>=1.17
blis 0.7.11 depends on numpy>=1.19.0; python_version >= "3.9"
clean-fid 0.1.35 depends on numpy>=1.14.3
contourpy 1.2.0 depends on numpy<2.0 and >=1.20
encodec 0.1.1 depends on numpy
gruut 2.2.3 depends on numpy<2.0.0 and >=1.19.0
imageio 2.32.0 depends on numpy
librosa 0.10.0 depends on numpy>=1.20.3
matplotlib 3.7.3 depends on numpy<2 and >=1.20
moviepy 1.0.3 depends on numpy>=1.17.3
moviepy 1.0.3 depends on numpy
numba 0.57.0 depends on numpy<1.25 and >=1.21

To fix this, you could try to:

  1. loosen the range of package versions you've specified
  2. remove package versions to allow pip to attempt to solve the dependency conflict

How could fix this ?

@yodatak
Copy link
Author

yodatak commented Sep 11, 2024

As a workaround i unset the version of numpy in Ubunturequirement.txt

@DrewThomasson
Copy link
Owner

DrewThomasson commented Sep 11, 2024

Thanks for bringing this up actually,

I haven't checked on the linux manual install in a while,

I'll go back in and double check to make sure everything installs smoothly later.

And probably create an auto-installer for Fedora linux as well cause why not.

In the mean time, here's the chunk that does the pip installs from the auto-Ubuntu installer script for if you ever have any other pip dependency issues that might be missing in the manual install instructions:

    # Install necessary Python packages
    pip install styletts2 
    pip install tts==0.21.3
    pip install booknlp==1.0.7.1
    pip install bs4
    pip install -r Ubuntu_requirements.txt
    pip install ebooklib==0.18
    pip install epub2txt==0.1.6
    pip install pygame==2.6.0
    pip install moviepy==1.0.3

    # Download the spaCy language model
    pip install spacy
    python -m spacy download en_core_web_sm

@DrewThomasson
Copy link
Owner

Oh forgot to ask but when you unset the numpy version, what version of numpy ended up installing on your computer?

pip show numpy

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

2 participants