Git Product home page Git Product logo

Comments (12)

benonilearns avatar benonilearns commented on May 11, 2024 2

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.

louistiti avatar louistiti commented on May 11, 2024 1

As the error mentions: This is related to npm not being able to find a file.

  1. Are you sure you correctly upgraded to npm >= 5? (try maybe to see with a npm --version)
  2. 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:

  1. Clean npm cache: npm cache clean
  2. Update npm sudo npm install -g npm@latest
  3. Retry npm install

from leon.

louistiti avatar louistiti commented on May 11, 2024 1

Hello @benonilearns,

Thanks for that. Your solve will be added to the FAQ once it'll be there.

from leon.

louistiti avatar louistiti commented on May 11, 2024

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.

menporulporiayalan avatar menporulporiayalan commented on May 11, 2024

@louistiti thanks, I have updated the python again and generated but still the same.

from leon.

nto4 avatar nto4 commented on May 11, 2024

from leon.

louistiti avatar louistiti commented on May 11, 2024

@menporulporiayalan, please paste the full content of your npm run check.

from leon.

menporulporiayalan avatar menporulporiayalan commented on May 11, 2024

@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.

menporulporiayalan avatar menporulporiayalan commented on May 11, 2024

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.

menporulporiayalan avatar menporulporiayalan commented on May 11, 2024

@louistiti Never Mind! I have installed with the docker 👍 As I installed successfully I am closing this issue.

from leon.

louistiti avatar louistiti commented on May 11, 2024

📝 FAQ in docs

from leon.

menporulporiayalan avatar menporulporiayalan commented on May 11, 2024

Thanks mate! @benonilearns

from leon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.