RenqiChen / Social_Science

Multi-Agent System for Science of Science
https://renqichen.github.io/Social_Science/
Apache License 2.0
27 stars 11 forks source link

ollama serve #4

Closed fda1zt closed 1 month ago

fda1zt commented 1 month ago

Sorry to bother you. I followed the link you provided, used the ollama serve command, then in another terminal, I entered ollama run llama3.1, and finally, in a third terminal, I ran python run.py. However, I encountered the same issue as before. Could you kindly provide a more detailed step-by-step guide whenever you have the time? Thank you for your help. 图片 图片 图片

RenqiChen commented 1 month ago

Please follow this website and try to run the example code successfully first.

KuKuKuKuKuKurisu commented 1 month ago

Try pip uninstall agentscope? It seems the program is trying to load agentscope in the environment.

ztlsky commented 1 month ago

I have completed the example from the link. Could you provide a detailed tutorial?

RenqiChen commented 1 month ago

Try pip uninstall agentscope? It seems the program is trying to load agentscope in the environment.

Maybe you can try this?

ztlsky commented 1 month ago

I have tried, but it returned this error. image

KuKuKuKuKuKurisu commented 1 month ago

The agentscope module is located in agentscope-main/src/agentscope. Just make sure this path is included in your working directory or in your Python path to resolve the ModuleNotFound error.

fda1zt commented 1 month ago

I have confirmed that the path is correct, and my error occurred because I uninstalled agentscope using pip uninstall agentscope. However, I still can't get it to run. Do you have a more detailed guide?

KuKuKuKuKuKurisu commented 1 month ago

I recommend testing if you can run agentscope, as agentscope-main was cloned directly from the AgentScope GitHub Repo. Navigate to cd agentscope-main, then create a test file containing the example provided in AgentScope's documentation and try running it.