Comments (12)
So i had this issue as well and wanted to provide a solution. This error occurs when you install pip/pipenv in a way that your pip and pipenv installation goes nuts(PATH issues). First:
sudo python3 -m pip uninstall pip && sudo apt install python3-pip --reinstall
sudo python -m pip uninstall pip && sudo apt install python3-pip --reinstall
Then follow this guide step by step:
https://phoikoi.io/2018/04/03/bootstrap-pipenv-debian.html
Lastly:
cd leon (wherever you cloned it)
pipenv --python 3.6.7
npm install
npm run check
npm run build
npm start
Then navigate to localhost:1337 in your browser.
Moral of the story: Never pip install pipenv. Use python3 -m pip install --user pipenv.
from leon.
As the error mentions: This is related to npm not being able to find a file
.
- Are you sure you correctly upgraded to npm >=
5
? (try maybe to see with anpm --version
) - Are you sure you are in the right path? According to your current path
/home/emperoreby/sideprojects/package.json
I'm wondering if you should not be in a path like/home/emperoreby/sideprojects/leon/package.json
If 1. and 2. does not match the issue, then:
- Clean npm cache:
npm cache clean
- Update npm
sudo npm install -g npm@latest
- Retry
npm install
from leon.
Hello @benonilearns,
Thanks for that. Your solve will be added to the FAQ once it'll be there.
from leon.
Hello @menporulporiayalan,
Thanks for opening this issue. Could you please use this issue template to have a better understanding of the problem you are facing to?
Moreover, you are using Python 2.7.15
, whereas Leon needs Python 3.6
to work today for the 1.0.0-beta.0
version.
from leon.
@louistiti thanks, I have updated the python again and generated but still the same.
from leon.
from leon.
@menporulporiayalan, please paste the full content of your npm run check
.
from leon.
@louistiti I got this message.
npm ERR! path /home/emperoreby/sideprojects/package.json
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open '/home/emperoreby/sideprojects/package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! /home/emperoreby/.npm/_logs/2019-02-22T13_34_33_959Z-debug.log
from leon.
Yes, I am sorry. I ran the npm run check
in different path. Here is the error content
> [email protected] check /home/emperoreby/sideprojects/leon
> babel-node scripts/run-check.js
⠋
---
.: CHECKING :.
➡ /bin/sh -c node --version
✔ v11.10.0
➡ /bin/sh -c npm --version
✔ 6.8.0
➡ /bin/sh -c pipenv --version
✔ pipenv, version 2018.11.26
✖ Error: Command failed: /bin/sh -c pipenv run python --version
Traceback (most recent call last):
File "/usr/local/bin/pipenv", line 11, in <module>
sys.exit(cli())
File "/usr/local/lib/python2.7/dist-packages/pipenv/vendor/click/core.py", line 764, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/pipenv/vendor/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python2.7/dist-packages/pipenv/vendor/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python2.7/dist-packages/pipenv/vendor/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python2.7/dist-packages/pipenv/vendor/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/pipenv/vendor/click/decorators.py", line 64, in new_func
return ctx.invoke(f, obj, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/pipenv/vendor/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/pipenv/cli/command.py", line 408, in run
command=command, args=args, three=state.three, python=state.python, pypi_mirror=state.pypi_mirror
File "/usr/local/lib/python2.7/dist-packages/pipenv/core.py", line 2310, in do_run
three=three, python=python, validate=False, pypi_mirror=pypi_mirror,
File "/usr/local/lib/python2.7/dist-packages/pipenv/core.py", line 574, in ensure_project
pypi_mirror=pypi_mirror,
File "/usr/local/lib/python2.7/dist-packages/pipenv/core.py", line 494, in ensure_virtualenv
python = ensure_python(three=three, python=python)
File "/usr/local/lib/python2.7/dist-packages/pipenv/core.py", line 397, in ensure_python
path_to_python = find_a_system_python(python)
File "/usr/local/lib/python2.7/dist-packages/pipenv/core.py", line 350, in find_a_system_python
from .vendor.pythonfinder import Finder
File "/usr/local/lib/python2.7/dist-packages/pipenv/vendor/pythonfinder/__init__.py", line 14, in <module>
from .pythonfinder import Finder
File "/usr/local/lib/python2.7/dist-packages/pipenv/vendor/pythonfinder/pythonfinder.py", line 6, in <module>
from .models import SystemPath
File "/usr/local/lib/python2.7/dist-packages/pipenv/vendor/pythonfinder/models/__init__.py", line 11, in <module>
from ..utils import KNOWN_EXTS, unnest
File "/usr/local/lib/python2.7/dist-packages/pipenv/vendor/pythonfinder/utils.py", line 27, in <module>
from backports.functools_lru_cache import lru_cache
ImportError: No module named functools_lru_cache
from leon.
@louistiti Never Mind! I have installed with the docker 👍 As I installed successfully I am closing this issue.
from leon.
from leon.
Thanks mate! @benonilearns
from leon.
Related Issues (20)
- Hotword offline setup error
- Can't start leon after a successful check HOT 3
- After I turn on STT in .env, the server can not be started up HOT 3
- How to get the Female voice in text-to-speech? HOT 1
- create birth with docker - fails because of missing python
- cannot start the TCP server - GLIBC_2.35 not found HOT 1
- Alternate TTS engine HOT 1
- Unable to Startup Error: Cannot find module 'C:\Users\User\.leon\server\dist\pre-check.js'
- Load your personal data into leon? PDFs etc?
- error run-setup-hotword.js HOT 2
- How to disable telemetry before running `leon create birth` / How to disable the creation of the report at the end
- Design and create Aurora UI components HOT 2
- Introducing Widgets HOT 1
- Music Skill HOT 1
- Forecast Skill HOT 1
- Add providers level to skills HOT 1
- Leon crash cyrillic chars
- Can't talk to leon, no skills work.
- Using different projects to offload work
- AI
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from leon.