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
173 stars 21 forks source link

[Bug] Conflicting virtualenv version #190

Closed pySec710 closed 2 years ago

pySec710 commented 2 years ago

Steps To Reproduce

  1. have a conflicting version of virtualenv already installed on the computer
  2. install leon

The current behavior

The bug is first noticed from initially sending a message to Leon and you get the reply: "Sorry, I've got an error with the "Greeting" module of my "Leon" package!".

The CLI error states: ".: LEON :. ✖ 'pipenv' is not recognized as an internal or external command, operable program or batch file.

C:\Users\maria.leon\server\dist\core\brain.js:243 obj: new Error(data), ^

Error: 'pipenv' is not recognized as an internal or external command, operable program or batch file.

at Socket.<anonymous> (C:\Users\maria\.leon\server\dist\core\brain.js:243:18)
at Socket.emit (node:events:527:28)
at addChunk (node:internal/streams/readable:315:12)
at readableAddChunk (node:internal/streams/readable:289:9)
at Socket.Readable.push (node:internal/streams/readable:228:10)
at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)

Error: Command failed with exit code 1: npm start"

The expected behavior

leon should respond "Hello There!"

pySec710 commented 2 years ago

To fix the bug I just uninstalled pipenv and virtualenv then reinstalled pipenv. I would recommend checking the system for other virtualenv versions on install. If found simply removing the package before install fixes it (and installing pipenv installs virtualenv as a dependency so the end user still has its virtualenv projects functional).

theoludwig commented 2 years ago

Hey! @pySec710 Thanks for your report!

Closing, as this seems to be resolved, please reopen if the issue still persists.