yoda-pa / yoda Goto Github PK
View Code? Open in Web Editor NEWWise and powerful personal assistant, available in your nearest terminal
Home Page: https://manparvesh.com/project/yoda/
License: MIT License
Wise and powerful personal assistant, available in your nearest terminal
Home Page: https://manparvesh.com/project/yoda/
License: MIT License
In the vocabulary
module, a new word is chosen at random, but I want it to analyze the previous accuracy results of the words and get a word accordingly.
For example, we can set the weights for the words used, and sometimes words are chosen from there and sometimes new words are shown.
update to 0.2.0
and release
*I am new to open source and have found this error when trying to run my local copy of "yoda". I am posting partly to see if there are mistakes in my running of this and also because I would be happy to work on this issue.
Reproduce the bug:
============
The console outputs an error "ImportError: No module named modules".
The console says this happens in:
File "/home/akhil/open_source/yoda/venv/local/lib/python2.7/site-packages/yoda.py", line 4, in
from modules import *
Possible solution:
So I think the issue here is that when Python searches for a file it only looks with in the current directory, and the "yoda.py" that is being run is not in the top most directory in the repository. It exists within the "/venv/local/lib/python2.7/site-packages/" directory; however, the "modules" sub-directory needs be accessed from the "yoda" main directory.
Using: version 0.1.0 on Ubuntu 16.04
Option to add a note which is kind of an article, with title and content, and the user can add notes to it.
yoda money exp
specdt 30 dollars on icecream
yoda money exps
to show the expenseA stacktrace will be shown
No stacktrace should be shown.
This invalid expense shouldn't have been added to the expense list in the first place. Just show an error while adding this expense.
Operating System: Ubuntu 16.04
just type yoda chat how are you or something
What happens?
yoda answers just with html (error code).
here it is
Yoda speaks:
<!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta charset="utf-8"> <title>Application Error</title> <style media="screen"> html,body,iframe { margin: 0; padding: 0; } html,body { height: 100%; overflow: hidden; } iframe { width: 100%; height: 100%; border: 0; } </style> </head> <body> <iframe src="//www.herokucdn.com/error-pages/application-error.html"></iframe> </body> </html>
What versions of software are you using?
macOS 10.12.6
Feature description:
showing quote to the user which will be inspirational
Any ideas on how to implement it?
using https://forismatic.com/en/api/
dude vocabulary word
It can't find the text file containing words and their meanings.
Should display a word
Operating System: Ubuntu 16.04.02 LTS
On installation, save the resources folder to local and access from there later.
For installing yoda as mentioned in 'contribution.md'
operating system - ubuntu 16.04
Similar to #39 the dev module also makes requests to several API calls in its commands. None of these have error handling around the API call.
In this issue I would like to fix all of them by adding error handling and simple user friendly response in case the user is offline.
chalk
to outputNothing is displayed
Operating System: Ubuntu 16.04
Find a different library to output colored text or just use print statements (in this case, click.echo would be better than print statements)
An encrypted list where one can store their ideas, with descriptions. For more ideas that can be added to this list, one can take a look at this repository.
Analysis of the current month's tasks
yoda url shorten <some url>
. This works fineyoda url expand <shortened url>
. Doesn't workyoda url shorten <some url>
. Doesn't workIt says command doesn't exist.
The tests are also failing because of this.
To shorten/expand URLs
Operating System: Ubuntu 16.04
yoda
according to the steps mentioned in README (without using --editable while installing)Traceback (most recent call last):
File "/home/mp/Desktop/github_repos/yoda/venv/bin/yoda", line 11, in <module>
load_entry_point('yoda==0.1.0', 'console_scripts', 'yoda')()
File "/home/mp/Desktop/github_repos/yoda/venv/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 570, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/home/mp/Desktop/github_repos/yoda/venv/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2751, in load_entry_point
return ep.load()
File "/home/mp/Desktop/github_repos/yoda/venv/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2405, in load
return self.resolve()
File "/home/mp/Desktop/github_repos/yoda/venv/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2411, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/home/mp/Desktop/github_repos/yoda/venv/local/lib/python2.7/site-packages/yoda.py", line 6, in <module>
from modules import *
File "/home/mp/Desktop/github_repos/yoda/modules/learn.py", line 30, in <module>
for line in pkgutil.get_data('yoda', 'resources/vocab-words.txt').split('\n'):
File "/usr/lib/python2.7/pkgutil.py", line 591, in get_data
return loader.get_data(resource_name)
File "/usr/lib/python2.7/pkgutil.py", line 255, in get_data
return open(pathname, "rb").read()
IOError: [Errno 2] No such file or directory: '/home/mp/Desktop/github_repos/yoda/venv/local/lib/python2.7/site-packages/resources/vocab-words.txt'
Should work properly
Operating System: Ubuntu 16.04
yoda: 0.1.0
Unable to install this in Windows. Error during installation of pycrypto
in Windows.
The existing tests are okay, but not very thorough. Some of the parts of the modules still lack tests.
Related to: #16
Cool project. It seems that requirements.txt doesn't have pinned version of the libraries and this could result in a build that might behave differently at different points of time since latest versions are always installed. I think it's better to have pinned versions. I tried installing it and did a pip freeze
. I will raise a new PR.
I could also see different a setup.py that seems to have slightly different dependencies compared to requirements.txt . A note on README on how to build and test it will be helpful.
Thanks.
Add functionality to view notes from previous days by simply writing yoda diary notes yesterday
or something similar
There should be a feature to get and search keybindings for different software packages and tools, like eclipse
, vim
, etc.
User should be able to save their config somewhere online so that they can sync their data over different devices.
Possible solution can be creating a github repository and saving the data to it after the user enters a command.
I was able to initialize a repo inside the config file, stage the changes and commit to the file using dulvich, but I was not able to connect it to github. I tried PyGithub, but no luck.
If I try to use the yoda chat
feature when my system is offline, it hits me with a big python error message about socket error
socket.gaierror: [Errno -2] Name or service not known
There is no error checking at response = request.getresponse().read()
, so when it does not get a proper response it throws the error.
We can easily solve this issue by using try catch blocks to encapsulate the part where we make the request. So when ever the request fails we can give the user a friendly reminder to go online instead of the error message.
I would love to implement this and contribute to the project.
Prints "Command does not exist!"
Select study set and print "Selected study set: english"
Operating System: โฆ
Ubuntu 16.04
It works perfectly with the command "yoda flashcards sets select english". I'm not sure whether it works as intended right now or should work as described in the docs. I can make the fix if it should indeed behave that way
yoda setup
$ yoda setup new
Tell me your name, yoda:
sensible text
Operating System: Ubuntu 16.04
I forked, cloned, and followed the steps of making the venv and installing requirements with pip. There were no errors reported during the installation of requirements. When I run yoda I get an ImportError stating that there is no config module. I had to copy config.py(c) from the project root into the site-packages\modules
folder. I then had the same issue with util.py(c). After that I was able to run yoda successfully.
As an aside, I find it unusual to see a package like this where you install the 'production' code and execute it i.e. pip install .
I think it would be an improvement to move the dependencies to requirements.txt and have the instructions simply call out pip install -r requirements.txt
. The problem this causes for me anyway, maybe I'm missing something obvious, is that when i make a change to the project code, I do not see that reflected by running yoda
. It is also not obvious to me where the entry point of the app is if, for example, i wanted to run it from within my IDE or from the command line with python <filename>.py
.
pip install .
yoda
File "c:\users\barry\pycharmprojects\yoda\venv\yoda\lib\site-packages\modules\setup.py", line 13, in <module> from config import get_config_file_paths ImportError: No module named config
For yoda to run normally
Operating System: Windows 7 Ultimate 64 bit
Python version: 2.7
Instead of using an external service (api.ai), we can make our own models specific to our needs.
This can be used in:
money
chat
keybindings
(not yet implemented)Not yet
Add option to set the location of config directory
I need to make a logo that shows a command prompt with the dude's face.
Since there are many features in yoda, it'll be better to have gif demos in the readme showing all the features.
keys to remove:
Functionality to search in previous notes (using something like fuzzy search, maybe?)
whoosh seems like a good library to be tried.
Feature to add a reading list, where the user can add articles, books, etc to their lists, and read whenever they want in the future.
The program crashes and generate a very unpleasant error message stating index out of range.
It should have presented the error in nice way like re-ask for the same task number by displaying messages like "You had input a wrong task number before" or something like that!
Operating System: Ubuntu Gnome 16.04.02
NA
You can make a conditional check for the input to be less than the maximum task number. Loop to prompt for the input by displaying proper error message!
Very nice and interesting project
Continue? [press-"y"]
News-- 7/575
Title-- A Taxonomy of Technical Debt | Hacker News
Traceback (most recent call last):
File "/Users/joey/Environments/yoda3.6_env/bin/yoda", line 11, in <module>
load_entry_point('yoda', 'console_scripts', 'yoda')()
File "/Users/joey/Environments/yoda3.6_env/lib/python3.6/site-packages/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/Users/joey/Environments/yoda3.6_env/lib/python3.6/site-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/Users/joey/Environments/yoda3.6_env/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/Users/joey/Environments/yoda3.6_env/lib/python3.6/site-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/Users/joey/Environments/yoda3.6_env/lib/python3.6/site-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/Users/joey/Projects/yoda/modules/dev.py", line 137, in hackernews
click.echo('Description-- ' + result['articles'][index]['description'])
TypeError: must be str, not NoneType
This only occurs when the description = null (confirmed by crosschecking https://newsapi.org/v2/everything?sources=hacker-news&apiKey=534594afc0d64a11819bb83ac1df4245)
Expected command to continue to run as intended.
Operating System:
Mac OS 10.13.4
Allow the bot to understand any format of language:
Current:
'yoda speedtest'
New:
'yoda do a speedtest'
'yoda can you please do a speed test'
Current:
'yoda define amazing'
New:
'yoda find the definition for amazing'
Just generally allowing versatility for language.
yoda
Traceback (most recent call last):
File "/home/mp/Desktop/github_repos/yoda/venv/bin/yoda", line 11, in <module>
load_entry_point('yoda', 'console_scripts', 'yoda')()
File "/home/mp/Desktop/github_repos/yoda/venv/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 570, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/home/mp/Desktop/github_repos/yoda/venv/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2755, in load_entry_point
return ep.load()
File "/home/mp/Desktop/github_repos/yoda/venv/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2409, in load
return self.resolve()
File "/home/mp/Desktop/github_repos/yoda/venv/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2415, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/home/mp/Desktop/github_repos/yoda/yoda.py", line 6, in <module>
from modules import *
File "/home/mp/Desktop/github_repos/yoda/modules/life.py", line 217
task.append((task_name, desc)) # a new entry created
^
IndentationError: unindent does not match any outer indentation level
yoda
yoda speedtest
Stacktrace is shown and it says that server is not found
Get speedtest
Operating System: Ubuntu 18.04
After changing chalk.<color>
to click.echo(chalk.<color>)
, some tests are failing because of difference in the outputs
Add automated tests to the project. Currently, the Travis build simply runs pytest, but since there are no tests, it passes.
This task will take a considerable effort.
yoda
$ yoda ideas add --task "demo text" --project "demo project" --inside "demo inside" Brief desc of the current task :
something and something else
Traceback (most recent call last):
File "/home/mp/Desktop/github_repos/yoda/venv/bin/yoda", line 11, in <module>
load_entry_point('yoda', 'console_scripts', 'yoda')()
File "/home/mp/Desktop/github_repos/yoda/venv/local/lib/python2.7/site-packages/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/home/mp/Desktop/github_repos/yoda/venv/local/lib/python2.7/site-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/home/mp/Desktop/github_repos/yoda/venv/local/lib/python2.7/site-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/mp/Desktop/github_repos/yoda/venv/local/lib/python2.7/site-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/mp/Desktop/github_repos/yoda/venv/local/lib/python2.7/site-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/home/mp/Desktop/github_repos/yoda/modules/life.py", line 346, in ideas
sub_commands[subcommand]((project or inside), task)
File "/home/mp/Desktop/github_repos/yoda/modules/life.py", line 253, in add_task
with open(IDEA_CONFIG_FILE_PATH, 'w') as f:
IOError: [Errno 2] No such file or directory: '/home/mp/.yoda/life/ideaconfig.txt'
It would be better if code be pep8/pyflakes compliant
either run autopep8 on the code or manually fix the errors.
I would like to take this up.
The project looks cool.
dude vocabulary accuracy
before dude vocabulary word
Error trace is shown
A simplified message should be shown
Operating System: Ubuntu 16.04.02 LTS
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.