question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Python && python3

See original GitHub issue

Bonsoir, c’est difficile de mettre ce léon en place, mais je vais y arriver. J’ai un petit problème avec ce python et python3, léon ne detecte pas mon python3 (lors du check) car sur la derniere version derbian la version 2 est toujours utilisé. (Je ne suis pas un pro de linux). Donc suivant les forums on deconseil de remplacer python2 par python3 par defaut. Pourquoi est-ce que léon ne va pas chercher lui meme sa version lorsque les deux sont installés sur la machine? (c’est un detail, voir au mieux une idee). Bon je pense que je peux laisser python (python2) sur mon systeme et configurer léon pour qu’il utilise python3 a la place. Quel est le finchier de conf a modifier pour faire ca, si c’est possible

.: CHECKING :.

➡ /bin/sh -c node --version ✔ v11.13.0

➡ /bin/sh -c npm --version ✔ 6.7.0

➡ /bin/sh -c pipenv --version ✔ pipenv, version 2018.11.26

➡ /bin/sh -c pipenv --where ✔ /home/odroid/leon

➡ /bin/sh -c pipenv run python --version ✖ The Python version must be 3.6.x. Please install it: https://www.python.org/downloads

➡ /bin/sh -c pipenv run python bridges/python/main.py en leon randomnumber “Give me a random number” ✖ Error: Command failed: /bin/sh -c pipenv run python bridges/python/main.py en leon randomnumber “Give me a random number” Traceback (most recent call last): File “bridges/python/main.py”, line 4, in <module> import utils File “/home/odroid/leon/bridges/python/utils.py”, line 6, in <module> from pathlib import Path ImportError: No module named pathlib

odroid@odroid:~$ python --version
Python 2.7.15rc1
odroid@odroid:~$ python3 --version
Python 3.6.7

Merci pour ton aide et ton projet que j’ai franchement hâte de tester.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:24 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
marrodeurcommented, Apr 4, 2019

Juste ces deux machines la. Merci je reviendrais faire un rapporta ce sujet. ;D

0reactions
louistiticommented, Oct 23, 2022

Hi, this month we have been working on compiling all Python stuff related upfront. Meaning, Leon does not need Python at runtime anymore.

Please try the three following commands and let’s see how it goes and paste the report URL:

# Install the beta version of the Leon CLI
npm install --global @leon-ai/cli@beta

# Create a Leon instance based on the develop GitHub branch
leon create birth --develop

# Create a report
leon check
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to make 'python' program command execute Python 3?
The python program command executes Python 2. Python 3 can be executed using the python3 command. How can Python 3 be executed using...
Read more >
Python 3.0 Release
Python 3.0 is end-of-lifed with the release of Python 3.1. All users of Python 3.0.x should upgrade to the most recent version of...
Read more >
Download Python
Download the latest Python 3 source. Read more. Alternative Implementations. This site hosts the "traditional" implementation of Python (nicknamed CPython). A ...
Read more >
Porting Python 2 Code to Python 3 — Python 3.11.1 ...
With Python 3 being the future of Python while Python 2 is still in active use, it is good to have your project...
Read more >
What's New In Python 3.0 — Python 3.11.1 documentation
Author, Guido van Rossum,. This article explains the new features in Python 3.0, compared to 2.6. Python 3.0, also known as “Python 3000”...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found