How to update the packages?
See original GitHub issueHow can I test my packages?
I am trying to add some modules in the Existing package. I have added the quotes module in the leon package.
I added this in leon/data/expressions/en.json
"quote": [
"Tell me a Quote",
"Give me a Quote",
]
Then I have updated the below in ` leon/data/expressions/en.json
"quote":{
"quotes":
[
"Design is the silent ambassador of your brand. ",
"If there is one word I’d like to remove from any conversation about design, it’s “pretty.",
]
}
Then I create a new python file named quote.py
. Please see the below code.
import utils
def quote(string):
"""Leon says some quote"""
return utils.output('end', 'quotes', utils.translate('quotes'))
I also created a new test python file in the test folder.
But it seems it breaks leon. Wheneve I ask question it gives reply as “Sorry, I don’t work correctly!”
How can I test the modules? Do I need to add anything else?
Issue Analytics
- State:
- Created 5 years ago
- Comments:15 (4 by maintainers)
Top Results From Across the Web
How To Update All Packages On Ubuntu
Method 2: Update using Package Updater: ... Go to the menu and in the search bar type “Software Updater.”. Now run it. It...
Read more >How to update Linux packages with command - NoviceDev
Step 1: Run "sudo apt update" to resynchronize package index · Step 2: Run "apt-get upgrade" to download available package updates.
Read more >update.packages function
new.packages looks for (suitable) packages on the repositories that are not already installed, and optionally offers them for installation.
Read more >Linux Update All Packages Command Using the CLI
Explains how to update all installed packages on the Linux based system with just one command to patch security and get updates.
Read more >How to update a package in R?
packages is not the package name, but the library location to check. If you only want to update one package, use install.packages ....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yes, I Built. I figured out the issue. The Issue is with the JSON file. Thanks for your time @louistiti 😃
Hello @menporulporiayalan,
First of all, thanks for contributing by creating a Leon’s module.
It’s normal you have these errors as you are using Python 2.7 outside of Docker. Try to do a
docker logs -f <CONTAINER>
, with the ID of your running container, that will show you a log in real time.