nomic-ai / pygpt4all

Official supported Python bindings for llama.cpp + gpt4all
https://nomic-ai.github.io/pygpt4all/
MIT License
1.02k stars 162 forks source link

Missing dependency numpy #97

Closed leoncente closed 1 year ago

leoncente commented 1 year ago

When attempting to use the library, I receive an error message indicating that the numpy module is missing. However, numpy is not listed as a dependency and doesn't install automatically. Screenshot (76)

abdeladim-s commented 1 year ago

thanks @leoncente for letting me know.

I will add it to the dependencies on the next release.

you can just install it manually for now

pip install numpy
kentative commented 1 year ago

also need to import in model.py

import numpy as np

abdeladim-s commented 1 year ago

@kentative, you do not need to import anything! It should be fixed by now anyway, just try to update the package!

Free-Radical commented 1 year ago

FYI just tried, not fixed so far, tried updating as well, no go.

import numpy as np

doesnt work either

here my versions-

python, 3.11.2

abdeladim-s commented 1 year ago

Thanks @Free-Radical for letting me know. Please update pygptj to 2.0.3 and give it another try ?