leon-ai / leon-cli

⌨️ Command-line interface (CLI) for a better use of Leon, your open-source personal assistant. GNU/Linux, macOS and Windows supported.
https://getleon.ai
MIT License
176 stars 21 forks source link

[Bug] ```Leon create birth``` error:```× Installing python 3.9.10 Error: Could not install python 3.9.10``` in CLI #201

Closed Slient1802 closed 1 year ago

Slient1802 commented 1 year ago

Steps To Reproduce

(Im current use Win 10)

  1. Step 1:Install node.js, npm, pipenv and python: Node.js version: v19.4.0 Npm version: v9.2.0 Python version: v3.10.7 pipenv version: 2022.12.19
  2. Step 2:
    • npm install --global @leon-ai/cli and it's run successfully:
      changed 213 packages in 27s
      72 packages are looking for funding
      run `npm fund` for details
  3. Step 3:
    • run leon create birth in CLI

The current behavior:

Bug pop up when I run leon create birth or leon create birth --develop in CLI:

× Installing python 3.9.10
Error: Could not install python 3.9.10
For further information, look at the log file located at C:\Users\Admin\AppData\Roaming\@leon-ai\cli\Config\log-errors.txt

The expected behavior

Give birth to Leon successfully

Extra rss:

"C:\Users\Admin\AppData\Roaming\@leon-ai\cli\Config\log-errors.txt" log:

[Fri Jan 20 2023 20:46:45 GMT+0700 (Indochina Time)] [leon create birth] Could not install python 3.9.10
Error: Command failed with exit code 1: pyenv install 3.9.10
'pyenv' is not recognized as an internal or external command,
operable program or batch file.

And I try to install pyenv pip manually but error pop up:

pip install pyenv
Collecting pyenv
  Using cached pyenv-0.0.1.tar.gz (1.4 kB)
  Preparing metadata (setup.py) ... done
Building wheels for collected packages: pyenv
  Building wheel for pyenv (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [14 lines of output]
      running bdist_wheel
      running build
      C:\Users\Admin\anaconda3\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
        warnings.warn(
      installing to build\bdist.win-amd64\wheel
      running install
      ############################ NOTE ############################
      We are sorry, but this package is not installable with pip.

      Please read the installation instructions at:

      https://github.com/pyenv/pyenv#installation
      ##############################################################

      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for pyenv
  Running setup.py clean for pyenv
Failed to build pyenv
Installing collected packages: pyenv
  Running setup.py install for pyenv ... error
  error: subprocess-exited-with-error

  × Running setup.py install for pyenv did not run successfully.
  │ exit code: 1
  ╰─> [11 lines of output]
      running install
      C:\Users\Admin\anaconda3\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
        warnings.warn(
      ############################ NOTE ############################
      We are sorry, but this package is not installable with pip.

      Please read the installation instructions at:

      https://github.com/pyenv/pyenv#installation
      ##############################################################

      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> pyenv

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.