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

Error while installing autogen in editable version #5591

Closed
Vidit-Ostwal opened this issue Feb 18, 2025 · 4 comments
Closed

Error while installing autogen in editable version #5591

Vidit-Ostwal opened this issue Feb 18, 2025 · 4 comments

Comments

@Vidit-Ostwal
Copy link

What happened?

I am trying to install autogen in editable version.
But it's throwing this error.

  error: subprocess-exited-with-error
  
  × Getting requirements to build editable did not run successfully.
  │ exit code: 1
  ╰─> [14 lines of output]
      error: Multiple top-level packages discovered in a flat-layout: ['samples', 'packages', 'templates'].
      
      To avoid accidental inclusion of unwanted files or directories,
      setuptools will not proceed with this build.
      
      If you are trying to create a single distribution with multiple packages
      on purpose, you should not rely on automatic discovery.
      Instead, consider the following options:
      
      1. set up custom discovery (`find` directive with `include` or `exclude`)
      2. use a `src-layout`
      3. explicitly set `py_modules` or `packages` with a list of names
      
      To find more information, look for "package discovery" on setuptools docs.
      [end of output]

I believe this is file structuring problem.
I have never came acros this error, can someone share some resources to understand this well?

Thanks

What did you expect to happen?

Normal installation of autogen in editable version

How can we reproduce it (as minimally and precisely as possible)?

Just try to clone the repo and install it in editable version
with pip install -e .

AutoGen version

0.7.4

Which package was this bug in

Core

Model used

Python version

3.10

Operating system

MacOS

Any additional info you think would be helpful for fixing this bug

None

@jackgerrits
Copy link
Member

There are multiple packages, you'll need to install each of them. It looks like you ran pip install -e . in the python dir, you need to do it in each package for example python/packages/autogen-core

@jackgerrits jackgerrits added awaiting-op-response Issue or pr has been triaged or responded to and is now awaiting a reply from the original poster and removed needs-triage labels Feb 18, 2025
@Vidit-Ostwal
Copy link
Author

Vidit-Ostwal commented Feb 18, 2025

Is there any other way around, to clone the autogen repo, use it in a env as well as able to modify and edit it.
@jackgerrits

@github-actions github-actions bot removed the awaiting-op-response Issue or pr has been triaged or responded to and is now awaiting a reply from the original poster label Feb 18, 2025
@jackgerrits
Copy link
Member

@Vidit-Ostwal
Copy link
Author

This works.
Thanks @jackgerrits Closing this for now.

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