gpt-engineer icon indicating copy to clipboard operation
gpt-engineer copied to clipboard

docker install get a error Multiple top-level packages discovered in a flat-layout: ['docker', 'projects', 'gpt_engineer'].

Open xjspace opened this issue 1 year ago • 2 comments

` => ERROR [8/9] RUN sudo pip install -e . 4.1s

[8/9] RUN sudo pip install -e .: 0.442 Looking in indexes: https://pypi.doubanio.com/simple 0.442 Obtaining file:///app 0.448 Installing build dependencies: started 3.772 Installing build dependencies: finished with status 'done' 3.773 Checking if build backend supports build_editable: started 3.904 Checking if build backend supports build_editable: finished with status 'done' 3.905 Getting requirements to build editable: started 4.019 Getting requirements to build editable: finished with status 'error' 4.024 error: subprocess-exited-with-error 4.024 4.024 × Getting requirements to build editable did not run successfully. 4.024 │ exit code: 1 4.024 ╰─> [14 lines of output] 4.024 error: Multiple top-level packages discovered in a flat-layout: ['docker', 'projects', 'gpt_engineer']. 4.024 4.024 To avoid accidental inclusion of unwanted files or directories, 4.024 setuptools will not proceed with this build. 4.024 4.024 If you are trying to create a single distribution with multiple packages 4.024 on purpose, you should not rely on automatic discovery. 4.024 Instead, consider the following options: 4.024 4.024 1. set up custom discovery (find directive with include or exclude) 4.024 2. use a src-layout 4.024 3. explicitly set py_modules or packages with a list of names 4.024 4.024 To find more information, look for "package discovery" on setuptools docs. 4.024 [end of output] 4.024 4.024 note: This error originates from a subprocess, and is likely not a problem with pip. 4.025 error: subprocess-exited-with-error 4.025 4.025 × Getting requirements to build editable did not run successfully. 4.025 │ exit code: 1 4.025 ╰─> See above for output. 4.025 4.025 note: This error originates from a subprocess, and is likely not a problem with pip.


Dockerfile:16

14 | RUN sudo pip install --upgrade pip 15 | 16 | >>> RUN sudo pip install -e . 17 | 18 | RUN pwd

ERROR: failed to solve: process "/bin/sh -c sudo pip install -e ." did not complete successfully: exit code: 1 ·

xjspace avatar Dec 22 '23 08:12 xjspace

@xjspace It is likely that this error occurred because "editable" was installed via "pip" using "sudo".

k1lgor avatar Apr 03 '24 15:04 k1lgor

@k1lgor, if you have nothing against it, I'd like to proceed and close this issue early next week if there are no additional updates or changes. Does that sound good to you?

viborc avatar May 04 '24 09:05 viborc