Closed HongyiZhouCN closed 1 year ago
I solved this by adding py_modules=[]
as a keyword argument to the setup() function in setup.py following the discussion here
https://stackoverflow.com/questions/72294299/multiple-top-level-packages-discovered-in-a-flat-layout
Hi, I was trying to install the package on my local machine following the basic installation guide in the readme. After executing
pip install -e .
I encounter the following error. I want to ask if you have any insight on how to fix this?Obtaining file:///home/hongyi/workspace/play_ground/policydissect Preparing metadata (setup.py) ... error error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [19 lines of output] error: Multiple top-level packages discovered in a flat-layout: ['play', 'policydissect'].
note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed
× Encountered error while generating package metadata. ╰─> See above for output.
note: This is an issue with the package mentioned above, not pip. hint: See above for details.