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

[bug] pip install fails due to multiple packages #366

Closed
parasj opened this issue May 25, 2022 · 0 comments · Fixed by #369
Closed

[bug] pip install fails due to multiple packages #366

parasj opened this issue May 25, 2022 · 0 comments · Fixed by #369

Comments

@parasj
Copy link
Contributor

parasj commented May 25, 2022

From @milesturin

Installing collected packages: skyplane
  Attempting uninstall: skyplane
    Found existing installation: skyplane 0.0.1
    Uninstalling skyplane-0.0.1:
      Successfully uninstalled skyplane-0.0.1
  Running setup.py develop for skyplane
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/pingu/github/skyplane/setup.py'"'"'; __file__='"'"'/home/pingu/github/skyplane/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'

))' develop --no-deps --user --prefix=
         cwd: /home/pingu/github/skyplane/
    Complete output (14 lines):
    error: Multiple top-level packages discovered in a flat-layout: ['skyplane', 'profiles'].

    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.
    ----------------------------------------
  Rolling back uninstall of skyplane
  Moving to /home/pingu/.local/lib/python3.8/site-packages/skyplane-0.0.1.dist-info/
   from /home/pingu/.local/lib/python3.8/site-packages/~kyplane-0.0.1.dist-info
ERROR: Command errored out with exit status 1: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/pingu/github/skyplane/setup.py'"'"'; __file__='"'"'/home/pingu/github/skyplane/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps --user --prefix= Check the logs for full command output.
p
parasj added a commit that referenced this issue Jun 1, 2022
parasj added a commit that referenced this issue Jun 3, 2022
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

Successfully merging a pull request may close this issue.

1 participant