ollama-python
ollama-python copied to clipboard
AttributeError: partially initialized module 'ollama' has no attribute 'chat' (most likely due to a circular import)
how to fix this error: AttributeError: partially initialized module 'ollama' has no attribute 'chat' (most likely due to a circular import)
I think I did the same thing and found a resolution.
Is your file named ollama.py? Rename it and try again.
I think I did the same thing and found a resolution.
Is your file named ollama.py? Rename it and try again.
yes,you are right
Yes I got it ,thinks
when i run "ollama serve" in terminal ,and then i open another terminal to import ollma , i meet the error
and my ollama-python version is 0.1.3 , is there any suggestions?Thanks