malkemit / namizun

Asymmetric upload and download
https://t.me/ExplainLikeIam5
613 stars 99 forks source link

Error in Installation #74

Open hawshemi opened 1 year ago

hawshemi commented 1 year ago

OS: Debian 11

When I run sudo curl https://raw.githubusercontent.com/malkemit/namizun/master/else/setup.sh | sudo bash, after installing wheel package, it returns:

Installing collected packages: wheel
Successfully installed wheel-0.40.0
Processing ./namizun_core
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [14 lines of output]
      error: Multiple top-level modules discovered in a flat-layout: ['database', 'ip', 'time', 'log', 'udp', 'network'].

      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 modules
      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]

  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.
Dependencies doesn't installed correctly
NetCodZ commented 11 months ago

pip uninstall setuptools pip install setuptools==60.0.0