AIOS icon indicating copy to clipboard operation
AIOS copied to clipboard

[Usage] Facing issues while setting up AIOS SDK [Cerebrum]

Open SJ4949 opened this issue 6 months ago • 3 comments

Checked other resources

  • [x] I added a very descriptive title to this issue.
  • [x] I am sure the issue hasn't been already addressed by searching through https://github.com/agiresearch/AIOS/issues.
  • [x] The usage issue is not resolved by updating to the latest stable version in the main branch.

Your current environment

I was really impressed with the idea and wanting to do a hands on trial of this AIOS framework.

I was able to set up AIOS server but my AIOS SDK was failing to install, bellow is the error:

    Using Python 3.10.12 environment at: cerebrum-env
      x Failed to build `aios-agent-sdk @ file:///home/test/Saurabh/AIOS-main/Cerebrum`
      |-> The build backend returned an error
      `-> Call to `hatchling.build.build_editable` failed (exit status: 1)
    
          [stderr]
          Traceback (most recent call last):
            File "<string>", line 11, in <module>
            File "/home/test/.cache/uv/builds-v0/.tmpbdBZh8/lib/python3.10/site-packages/hatchling/build.py", line 83, in build_editable
              return os.path.basename(next(builder.build(directory=wheel_directory, versions=['editable'])))
            File "/home/test/.cache/uv/builds-v0/.tmpbdBZh8/lib/python3.10/site-packages/hatchling/builders/plugin/interface.py", line 90, in build
              self.metadata.validate_fields()
            File "/home/test/.cache/uv/builds-v0/.tmpbdBZh8/lib/python3.10/site-packages/hatchling/metadata/core.py", line 266, in validate_fields
              self.core.validate_fields()
            File "/home/test/.cache/uv/builds-v0/.tmpbdBZh8/lib/python3.10/site-packages/hatchling/metadata/core.py", line 1366, in validate_fields
              getattr(self, attribute)
            File "/home/test/.cache/uv/builds-v0/.tmpbdBZh8/lib/python3.10/site-packages/hatchling/metadata/core.py", line 700, in license
              raise OSError(message)
          OSError: License file does not exist: LICENSE
    
          hint: This usually indicates a problem with the package or the build environment.

As per the docs, I am using python 3.10.XX but still I am getting this error. DO we have to get any License? Please help.

How would you like to use aios

I want to run aios with the llm endpoint: mistral-7b for agent: College_techFest_Grievances_chat_support.

SJ4949 avatar Jul 01 '25 03:07 SJ4949

Same for me: Debian 12, Python 3.11.2

The error occurs during: pip install -r requirements.txt

(upgrade, not a clean installation)

andrewhack avatar Jul 10 '25 13:07 andrewhack

quick fix:

  1. git clone https://github.com/agiresearch/Cerebrum.git
  2. add a README, you can copy from dev branch
  3. pip install -e .

JianlongCao avatar Jul 28 '25 09:07 JianlongCao

same for me ; this issue is caused by intalling Cerebrum with using requirement.txt; the key cmd is : git+https://github.com/agiresearch/Cerebrum.git

so i deleted this line ,then installed Cerebrum manually ;

cerebrum installing

  1. git clone https://github.com/agiresearch/Cerebrum.git
  2. cd Cerebrum
  3. pip install -e .

and you may also encounter "LICENSE" problem , that's ok, you can create LICENSE ,by flowing cmd : curl -sL https://raw.githubusercontent.com/license-matcher/master/templates/mit.txt > LICENSE

reference https://github.com/agiresearch/Cerebrum/issues/60

Raostu avatar Jul 28 '25 15:07 Raostu