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

Failing install fix #4

Open
davidkvcs opened this issue May 3, 2022 · 0 comments
Open

Failing install fix #4

davidkvcs opened this issue May 3, 2022 · 0 comments

Comments

@davidkvcs
Copy link

When doing pip install -e . I had to add py_modules=[], in the setup.py file to avoid the error below.

ERROR: Command errored out with exit status 1:
command: /homes/kovacs/anaconda3/envs/tureckova_dgk1_vnet/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/homes/kovacs/project_scripts/hnc_segmentation/tureckova_vnet/Abdomen-CT-Image-Segmentation/setup.py'"'"'; file='"'"'/homes/kovacs/project_scripts/hnc_segmentation/tureckova_vnet/Abdomen-CT-Image-Segmentation/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-yjk8gz6f
cwd: /homes/kovacs/project_scripts/hnc_segmentation/tureckova_vnet/Abdomen-CT-Image-Segmentation/
Complete output (14 lines):
error: Multiple top-level packages discovered in a flat-layout: ['nnunet', 'plans_files'].

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.
----------------------------------------

WARNING: Discarding file:///homes/kovacs/project_scripts/hnc_segmentation/tureckova_vnet/Abdomen-CT-Image-Segmentation. Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

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

1 participant