ggeop / python-ai-assistant Goto Github PK
View Code? Open in Web Editor NEWPython AI assistant ๐ง
License: MIT License
Python AI assistant ๐ง
License: MIT License
Failed to start mongod.service: Unit mongod.service not found.
run_jarvis.sh: line 10: ./jarvis_virtualenv/bin/python: No such file or directory
Failed to stop mongod.service: Unit mongod.service not loaded.
why this happens, i tried another issue that has been fixed, but still
i am on kali linux
It looks like that the youtube skill doesn't work. The skill is executed but the tags aren't extracted correctly so the script doesn't go into. It just skips that
tags = cls._extract_tags(voice_transcript, skill['tags']) # printing that gives me set()
for tag in tags:
reg_ex = re.search(tag + '([a-zA-Z]+)', voice_transcript)
try:
if reg_ex:
search_text = reg_ex.group(1)
base = "https://www.youtube.com/results?search_query=" + "&orderby=viewCount"
r = requests.get(base + search_text.replace(' ', '+'))
page = r.text
soup = bs(page, 'html.parser')
vids = soup.findAll('a', attrs={'class': 'yt-uix-tile-link'})
video = 'https://www.youtube.com' + vids[0]['href']
subprocess.Popen(["python", "-m", "webbrowser", "-t", video], stdout=subprocess.PIPE, shell=False)
except Exception as e:
logging.debug(e)
cls.response("I can't find what do you want in Youtube..")
I'm currently trying to find a solution
EDIT1: It you may need to edit your tags because I splited the tags into :
'tags': {'open in', 'youtube', 'find in youtube', 'play in', 'on youtube'}
and now I'm triggering the exception. Ah before I forget I needed to remove tag from:
reg_ex = re.search(tag + '([a-zA-Z]+)', voice_transcript)
EDIT2: I did a few changes now jarvis will open a tab in the web browser as intended I think. Here are the changes I did:
def open_in_youtube(cls, voice_transcript, skill):
"""
Open a video in youtube.
:param voice_transcript: string (e.g 'about google')
:param skill: dict (e.g
"""
print(cls._extract_tags(voice_transcript, skill['tags']))
tags = cls._extract_tags(voice_transcript, skill['tags'])
print(tags)
for tag in tags:
transcript = str(voice_transcript.replace(tag, ''))
#transcript = voice_transcript
print(transcript)
#reg_ex = re.search('([a-zA-Z]+)', transcript.replace(' ', ''))
try:
if reg_ex:
'''search_text = reg_ex.group(1)
base = "https://www.youtube.com/results?search_query=" + "&orderby=viewCount"
r = requests.get(base + search_text.replace(' ', '+'))
page = r.text
soup = bs(page, 'html.parser')
vids = soup.findAll('a', attrs={'class': 'yt-uix-tile-link'})
video = 'https://www.youtube.com' + vids[0]['href']
subprocess.Popen(["python", "-m", "webbrowser", "-t", video], stdout=subprocess.PIPE, shell=False)
video = 'https://www.youtube.com/results?search_query=' + transcript + "&orderby=viewCount"'''
r = requests.get( "https://www.youtube.com/results?search_query=" + transcript + "&orderby=viewCount")
page = r.text
soup = bs(page, 'html.parser')
vids = soup.findAll('a', attrs={'class': 'yt-uix-tile-link'})
video = 'https://www.youtube.com' + vids[0]['href']
subprocess.Popen(["python", "-m", "webbrowser", "-t", video], stdout=subprocess.PIPE, shell=False)
except Exception as e:
logging.debug(e)
cls.response("I can't find what do you want in Youtube..")
Hopefully I could help you or someone with that :)
There is a issue coming host down please help me
โโโ โโโโโโ โโโโโโโ โโโ โโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโ
โโ โโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ
โโโโโโโโโโโ โโโโโโ โโโ โโโโโโโ โโโโโโโโโโโ
โโโโโโ โโโ โโโโโโ โโโ โโโโโ โโโโโโโโโโโ
- Voice Assistant Platform v1.0.0-beta -
NOTE: CTRL + C If you want to Quit.
====================================================== GENERAL INFO ======================================================
RESPONSE IN SPEECH: NOT ENABLED
INPUT MODE: TEXT
========================================================= SYSTEM =========================================================
RAM USAGE: 0.10 GB
====================================== LOG -/var/log/jarvis.log (Total Lines: 343) ======================================
2022-01-17 17:40:57,069 - root - INFO - Wait a second for startup checks..
2022-01-17 17:40:57,126 - root - INFO - Checking internet connection..
2022-01-17 17:40:57,439 - root - INFO - Internet connection passed!
2022-01-17 17:40:57,490 - root - INFO - Application started
2022-01-17 17:40:57,540 - root - INFO - I'm ready! Say something :-)
======================================================= ASSISTANT =======================================================
:-$ Jarvis open youtube
Traceback (most recent call last):
File "./src/jarvis/start.py", line 26, in <module>
main()
File "./src/jarvis/start.py", line 22, in main
processor.run()
File "/home/preet/Python-ai-assistant-develop/src/jarvis/jarvis/core/processor.py", line 51, in run
response = self.response_creator.create_positive_response(transcript)
File "/home/preet/Python-ai-assistant-develop/src/jarvis/jarvis/core/nlp.py", line 91, in create_positive_response
positive_response = self._create_response(sentence)
File "/home/preet/Python-ai-assistant-develop/src/jarvis/jarvis/core/nlp.py", line 106, in _create_response
parts_of_speech = self.create_parts_of_speech(sentence)
File "/home/preet/Python-ai-assistant-develop/src/jarvis/jarvis/core/nlp.py", line 43, in create_parts_of_speech
tokens = nltk.word_tokenize(text)
File "/home/preet/Python-ai-assistant-develop/jarvis_virtualenv/lib/python3.8/site-packages/nltk/tokenize/__init__.py", line 144, in word_tokenize
sentences = [text] if preserve_line else sent_tokenize(text, language)
File "/home/preet/Python-ai-assistant-develop/jarvis_virtualenv/lib/python3.8/site-packages/nltk/tokenize/__init__.py", line 105, in sent_tokenize
tokenizer = load('tokenizers/punkt/{0}.pickle'.format(language))
File "/home/preet/Python-ai-assistant-develop/jarvis_virtualenv/lib/python3.8/site-packages/nltk/data.py", line 868, in load
opened_resource = _open(resource_url)
File "/home/preet/Python-ai-assistant-develop/jarvis_virtualenv/lib/python3.8/site-packages/nltk/data.py", line 993, in _open
return find(path_, path + ['']).open()
File "/home/preet/Python-ai-assistant-develop/jarvis_virtualenv/lib/python3.8/site-packages/nltk/data.py", line 701, in find
raise LookupError(resource_not_found)
LookupError:
**********************************************************************
Resource punkt not found.
Please use the NLTK Downloader to obtain the resource:
>>> import nltk
>>> nltk.download('punkt')
For more information see: https://www.nltk.org/data.html
Attempted to load tokenizers/punkt/PY3/english.pickle
Searched in:
- '/root/nltk_data'
- '/home/preet/Python-ai-assistant-develop/jarvis_virtualenv/nltk_data'
- '/home/preet/Python-ai-assistant-develop/jarvis_virtualenv/share/nltk_data'
- '/home/preet/Python-ai-assistant-develop/jarvis_virtualenv/lib/nltk_data'
- '/usr/share/nltk_data'
- '/usr/local/share/nltk_data'
- '/usr/lib/nltk_data'
- '/usr/local/lib/nltk_data'
Help me please
I want to make a ordering skill and for that I need to take repeatedly input many times , how can I do that?
ERROR: Command errored out with exit status 1: /home/praveen/Jarvis/jarvis_virtualenv/bin/python /home/praveen/Jarvis/jarvis_virtualenv/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py prepare_metadata_for_build_wheel /tmp/tmpi03msa_5 Check the logs for full command output.
Install Python dependencies failed
Can you please help me ?
I would like to change response phrases to vocal commands but I can't find how to do this.
Any advice?
Thank you.
Could you provide a tutorial or something on how to make + use this? I am trying to build something similar and love your project. Thanks!
Cheers,
Akul
In multiple commands case, it needs to press 'enter' to execute the next command.
Following is a code snippet from controller.py
def _continue_listening(self):
"""
Checks if the assistant enable time (triggering time + enable period) has passed.
return: boolean
"""
if datetime.now() > self.execute_state['enable_time'] + timedelta(seconds=self.settings_['enable_period']):
self.execute_state = {'ready_to_execute': False,
'enable_time': None,
}
self.is_assistant_enabled = False
self.is_assistant_enabled = True
Here the logic sets the enable flag to False
if the now
time is greater than 300 seconds (default) from the enable time.
In the above snippet, the enable flag will be set to True
in any case before returning whether the enable time has passed or not. Should it be returning from the if
clause after setting the flag to False
?
Please let me know if I am missing something here.
virtualenv command not found
A user can execute a command without need to wake-up the application if the user is inside the wake-up period. The default value could be 30sec. (This parameter will be configurable in GENERAL_SETTINGS as wake_up_period)
GENERAL_SETTINGS={
...
'wake_up_period='30' # Wake-up period in seconds
}
this is when doing run_jarvis.sh
What are the possibilities of running this wizard in Windows? I would like to run this wizard in Windows, it is for a project that I am working on. I would greatly appreciate it.
Failed to start mongod.service: Unit mongod.service not found.
Traceback (most recent call last):
File "./src/jarvis/start.py", line 23, in
from jarvis import settings
File "/home/blackhat/Python-ai-assistant-master/src/jarvis/jarvis/init.py", line 46, in
configure_MongoDB(db, settings)
File "/home/blackhat/Python-ai-assistant-master/src/jarvis/jarvis/utils/startup.py", line 97, in configure_MongoDB
from jarvis.skills.registry import CONTROL_SKILLS, ENABLED_BASIC_SKILLS
File "/home/blackhat/Python-ai-assistant-master/src/jarvis/jarvis/skills/registry.py", line 38, in
from jarvis.skills.collection.math import MathSkills
File "/home/blackhat/Python-ai-assistant-master/src/jarvis/jarvis/skills/collection/math.py", line 23, in
from word2number import w2n
File "/home/blackhat/Python-ai-assistant-master/jarvis_virtualenv/lib/python3.7/site-packages/vext/gatekeeper/init.py", line 204, in load_module
raise ImportError("No module named %s" % modulename)
ImportError: No module named word2number
Failed to stop mongod.service: Unit mongod.service not loaded.
Traceback attached below:
Traceback (most recent call last):
File "start.py", line 23, in
from jarvis import settings
File "G:\Desktop\Python-ai-assistant-master\src\jarvis\jarvis_init_.py", line 46, in
configure_MongoDB(db, settings)
File "G:\Desktop\Python-ai-assistant-master\src\jarvis\jarvis\utils\startup.py", line 97, in configure_MongoDB
from jarvis.skills.registry import CONTROL_SKILLS, ENABLED_BASIC_SKILLS
File "G:\Desktop\Python-ai-assistant-master\src\jarvis\jarvis\skills\registry.py", line 40, in
from jarvis.skills.collection.configuration import ConfigurationSkills
File "G:\Desktop\Python-ai-assistant-master\src\jarvis\jarvis\skills\collection\configuration.py", line 32, in
input_mode = db.get_documents(collection='general_settings')[0]['input_mode']
TypeError: 'NoneType' object is not subscriptable
I have checked the configuration.py and can see the below so I would assume its either the key or the limit parameters?:
def get_documents(self, collection, key=None, limit=None):
Any help is greatly appreciated
This is my settings.py
:
DEFAULT_GENERAL_SETTINGS = {
'assistant_name': 'Jarvis',
'input_mode': InputMode.VOICE.value,
'response_in_speech': False,
'response_in_text:': True,
}
In Jarvis console:
========================================================================================================= GENERAL INFO =========================================================================================================
RESPONSE IN SPEECH: NOT ENABLED
INPUT MODE: VOICE
NOTE: Include 'JARVIS' in you command to enable assistant
============================================================================================================ SYSTEM ============================================================================================================
RAM USAGE: 0.11 GB
========================================================================================== LOG -/var/log/jarvis.log (Total Lines: 551) ==========================================================================================
2021-02-07 19:14:14,783 - root - INFO - Configuring Mic..
2021-02-07 19:14:14,926 - root - INFO - Microphone configured successfully!
2021-02-07 19:14:15,628 - root - INFO - Wait a second for startup checks..
2021-02-07 19:14:15,687 - root - INFO - Checking internet connection..
2021-02-07 19:14:16,024 - root - INFO - Internet connection passed!
2021-02-07 19:14:16,086 - root - INFO - Application started
2021-02-07 19:14:16,142 - root - INFO - I'm ready! Say something :-)
2021-02-07 19:14:39,224 - root - INFO - User said: jarvis what time is it
=============================================================
ASSISTANT
=====================================
Trying to get this running on Manjaro
Failed to start mongodb.service: Unit mongodb.service not found.
Traceback (most recent call last):
File "/home/alexp/Python-ai-assistant/./src/jarvis/start.py", line 23, in
from jarvis import settings
File "/home/alexp/Python-ai-assistant/src/jarvis/jarvis/init.py", line 27, in
from jarvis.utils.mongoDB import db
File "/home/alexp/Python-ai-assistant/src/jarvis/jarvis/utils/mongoDB.py", line 24, in
from pymongo import MongoClient, DESCENDING
ModuleNotFoundError: No module named 'pymongo'
Failed to stop mongodb.service: Unit mongodb.service not loaded.
Not sure if it's a problem with the setup.sh file, or with my instance of python. I pip installed pymongo, ran the setup.sh file, and got this error after running the run_jarvis.sh file.
Hi, I really liked your project and would like to contribute to this, but I want to clarify whether you accept the new skills pull requests. I have several ideas that I think are interesting and fun so i could share them with the community.
Thanks
except OSError as :e
^
SyntaxError: invalid syntax
yeah i tried all the versions of syntax im aware it changes over python versions nothing is working also dependency not installing correctly
usage: virtualenv [--version] [--with-traceback] [-v | -q] [--discovery {builtin}] [-p py] [--creator {builtin,cpython3-posix,venv}] [--seeder {app-data,pip}] [--no-seed] [--activators comma_separated_list] [--clear]
[--system-site-packages] [--symlinks | --copies] [--download | --no-download] [--extra-search-dir d [d ...]] [--pip version] [--setuptools version] [--wheel version] [--no-pip] [--no-setuptools] [--no-wheel]
[--clear-app-data] [--symlink-app-data] [--prompt prompt] [-h]
dest
virtualenv: error: unrecognized arguments: attemept/jarvis jarvis_virtual
Jarvis virtual env creation failed
Hey .. I installed jarvis on debian 10. I always get the error speech and console error message: can only concatenate str ( not "NoneType") to str. it does some things but mostly this error comes up. I thought I was doing something wrong when I made a lot of mistakes. I also start the program with start.py. if i start it with run_jarvis.sh i get pymongo error. NO module named 'pymongo' but its installed
I was trying to install this on a raspberry pi. Running Buster. here is the console:
Install Python dependencies succeeded!
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/pi/jarvis/Jarvis/jarvis_virtualenv/lib/python3.7/site-packages/nltk/__init__.py", line 143, in <module>
from nltk.chunk import *
File "/home/pi/jarvis/Jarvis/jarvis_virtualenv/lib/python3.7/site-packages/nltk/chunk/__init__.py", line 157, in <module>
from nltk.chunk.api import ChunkParserI
File "/home/pi/jarvis/Jarvis/jarvis_virtualenv/lib/python3.7/site-packages/nltk/chunk/api.py", line 13, in <module>
from nltk.parse import ParserI
File "/home/pi/jarvis/Jarvis/jarvis_virtualenv/lib/python3.7/site-packages/nltk/parse/__init__.py", line 100, in <module>
from nltk.parse.transitionparser import TransitionParser
File "/home/pi/jarvis/Jarvis/jarvis_virtualenv/lib/python3.7/site-packages/nltk/parse/transitionparser.py", line 22, in <module>
from sklearn.datasets import load_svmlight_file
File "/home/pi/jarvis/Jarvis/jarvis_virtualenv/lib/python3.7/site-packages/sklearn/__init__.py", line 82, in <module>
from .base import clone
File "/home/pi/jarvis/Jarvis/jarvis_virtualenv/lib/python3.7/site-packages/sklearn/base.py", line 17, in <module>
from .utils import _IS_32BIT
File "/home/pi/jarvis/Jarvis/jarvis_virtualenv/lib/python3.7/site-packages/sklearn/utils/__init__.py", line 23, in <module>
from .murmurhash import murmurhash3_32
File "sklearn/utils/murmurhash.pyx", line 1, in init sklearn.utils.murmurhash
ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 44 from C header, got 40 from PyObject
Install nltk dependencies failed
(jarvis) pi@HUD:~/jarvis/Jarvis $
I installed NLTK myself and it was successful, but when ran from your script this error occurs, any idea's?
hi Georgios , thank you for this great work and well organised codebase.
I noticed we cannot install mongoDB to raspberry pi devices (raspian debian based but there is no support foor arm based devices at mongo side)
it is possibble to install ubundu on raspberry but it consumes lots of process power.
i'm thinking to implement sqlite3 instead of mongoDB this weekend.
i'll create pull request than you can check and you can create another branch for arm based devices if you like.
Please help me
LOG ERROR:
Building wheels for collected packages: lxml, PyAudio, scikit-learn
Building wheel for lxml (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /home/otavio/Desktop/ProjectJulia/jarvis_virtualenv/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-gtjjp10k/lxml_637439183f7e42128567fd120ee54db2/setup.py'"'"'; file='"'"'/tmp/pip-install-gtjjp10k/lxml_637439183f7e42128567fd120ee54db2/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-urcft4qx
cwd: /tmp/pip-install-gtjjp10k/lxml_637439183f7e42128567fd120ee54db2/
Complete output (96 lines):
Building lxml version 4.3.4.
Building without Cython.
ERROR: b'/bin/sh: 1: xslt-config: not found\n'
** make sure the development packages of libxml2 and libxslt are installed **
Using build configuration of libxslt
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.8
creating build/lib.linux-x86_64-3.8/lxml
copying src/lxml/_elementpath.py -> build/lib.linux-x86_64-3.8/lxml
copying src/lxml/builder.py -> build/lib.linux-x86_64-3.8/lxml
copying src/lxml/init.py -> build/lib.linux-x86_64-3.8/lxml
copying src/lxml/usedoctest.py -> build/lib.linux-x86_64-3.8/lxml
copying src/lxml/cssselect.py -> build/lib.linux-x86_64-3.8/lxml
copying src/lxml/doctestcompare.py -> build/lib.linux-x86_64-3.8/lxml
copying src/lxml/pyclasslookup.py -> build/lib.linux-x86_64-3.8/lxml
copying src/lxml/sax.py -> build/lib.linux-x86_64-3.8/lxml
copying src/lxml/ElementInclude.py -> build/lib.linux-x86_64-3.8/lxml
creating build/lib.linux-x86_64-3.8/lxml/includes
copying src/lxml/includes/init.py -> build/lib.linux-x86_64-3.8/lxml/includes
creating build/lib.linux-x86_64-3.8/lxml/html
copying src/lxml/html/_diffcommand.py -> build/lib.linux-x86_64-3.8/lxml/html
copying src/lxml/html/_setmixin.py -> build/lib.linux-x86_64-3.8/lxml/html
copying src/lxml/html/builder.py -> build/lib.linux-x86_64-3.8/lxml/html
copying src/lxml/html/init.py -> build/lib.linux-x86_64-3.8/lxml/html
copying src/lxml/html/diff.py -> build/lib.linux-x86_64-3.8/lxml/html
copying src/lxml/html/usedoctest.py -> build/lib.linux-x86_64-3.8/lxml/html
copying src/lxml/html/_html5builder.py -> build/lib.linux-x86_64-3.8/lxml/html
copying src/lxml/html/formfill.py -> build/lib.linux-x86_64-3.8/lxml/html
copying src/lxml/html/html5parser.py -> build/lib.linux-x86_64-3.8/lxml/html
copying src/lxml/html/soupparser.py -> build/lib.linux-x86_64-3.8/lxml/html
copying src/lxml/html/clean.py -> build/lib.linux-x86_64-3.8/lxml/html
copying src/lxml/html/ElementSoup.py -> build/lib.linux-x86_64-3.8/lxml/html
copying src/lxml/html/defs.py -> build/lib.linux-x86_64-3.8/lxml/html
creating build/lib.linux-x86_64-3.8/lxml/isoschematron
copying src/lxml/isoschematron/init.py -> build/lib.linux-x86_64-3.8/lxml/isoschematron
copying src/lxml/etree.h -> build/lib.linux-x86_64-3.8/lxml
copying src/lxml/etree_api.h -> build/lib.linux-x86_64-3.8/lxml
copying src/lxml/lxml.etree.h -> build/lib.linux-x86_64-3.8/lxml
copying src/lxml/lxml.etree_api.h -> build/lib.linux-x86_64-3.8/lxml
copying src/lxml/includes/relaxng.pxd -> build/lib.linux-x86_64-3.8/lxml/includes
copying src/lxml/includes/tree.pxd -> build/lib.linux-x86_64-3.8/lxml/includes
copying src/lxml/includes/xinclude.pxd -> build/lib.linux-x86_64-3.8/lxml/includes
copying src/lxml/includes/xslt.pxd -> build/lib.linux-x86_64-3.8/lxml/includes
copying src/lxml/includes/schematron.pxd -> build/lib.linux-x86_64-3.8/lxml/includes
copying src/lxml/includes/init.pxd -> build/lib.linux-x86_64-3.8/lxml/includes
copying src/lxml/includes/etreepublic.pxd -> build/lib.linux-x86_64-3.8/lxml/includes
copying src/lxml/includes/uri.pxd -> build/lib.linux-x86_64-3.8/lxml/includes
copying src/lxml/includes/htmlparser.pxd -> build/lib.linux-x86_64-3.8/lxml/includes
copying src/lxml/includes/xmlschema.pxd -> build/lib.linux-x86_64-3.8/lxml/includes
copying src/lxml/includes/c14n.pxd -> build/lib.linux-x86_64-3.8/lxml/includes
copying src/lxml/includes/dtdvalid.pxd -> build/lib.linux-x86_64-3.8/lxml/includes
copying src/lxml/includes/xmlerror.pxd -> build/lib.linux-x86_64-3.8/lxml/includes
copying src/lxml/includes/config.pxd -> build/lib.linux-x86_64-3.8/lxml/includes
copying src/lxml/includes/xmlparser.pxd -> build/lib.linux-x86_64-3.8/lxml/includes
copying src/lxml/includes/xpath.pxd -> build/lib.linux-x86_64-3.8/lxml/includes
copying src/lxml/includes/lxml-version.h -> build/lib.linux-x86_64-3.8/lxml/includes
copying src/lxml/includes/etree_defs.h -> build/lib.linux-x86_64-3.8/lxml/includes
creating build/lib.linux-x86_64-3.8/lxml/isoschematron/resources
creating build/lib.linux-x86_64-3.8/lxml/isoschematron/resources/rng
copying src/lxml/isoschematron/resources/rng/iso-schematron.rng -> build/lib.linux-x86_64-3.8/lxml/isoschematron/resources/rng
creating build/lib.linux-x86_64-3.8/lxml/isoschematron/resources/xsl
copying src/lxml/isoschematron/resources/xsl/RNG2Schtrn.xsl -> build/lib.linux-x86_64-3.8/lxml/isoschematron/resources/xsl
copying src/lxml/isoschematron/resources/xsl/XSD2Schtrn.xsl -> build/lib.linux-x86_64-3.8/lxml/isoschematron/resources/xsl
creating build/lib.linux-x86_64-3.8/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_svrl_for_xslt1.xsl -> build/lib.linux-x86_64-3.8/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_message.xsl -> build/lib.linux-x86_64-3.8/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_abstract_expand.xsl -> build/lib.linux-x86_64-3.8/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_skeleton_for_xslt1.xsl -> build/lib.linux-x86_64-3.8/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_dsdl_include.xsl -> build/lib.linux-x86_64-3.8/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/readme.txt -> build/lib.linux-x86_64-3.8/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
running build_ext
building 'lxml.etree' extension
creating build/temp.linux-x86_64-3.8
creating build/temp.linux-x86_64-3.8/src
creating build/temp.linux-x86_64-3.8/src/lxml
x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DCYTHON_CLINE_IN_TRACEBACK=0 -Isrc -Isrc/lxml/includes -I/home/otavio/Desktop/ProjectJulia/jarvis_virtualenv/include -I/usr/include/python3.8 -c src/lxml/etree.c -o build/temp.linux-x86_64-3.8/src/lxml/etree.o -w
In file included from src/lxml/etree.c:692:
src/lxml/includes/etree_defs.h:14:10: fatal error: libxml/xmlversion.h: No such file or directory
14 | #include "libxml/xmlversion.h"
| ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Compile failed: command 'x86_64-linux-gnu-gcc' failed with exit status 1
creating tmp
cc -I/usr/include/libxml2 -c /tmp/xmlXPathInituz5w5_le.c -o tmp/xmlXPathInituz5w5_le.o
/tmp/xmlXPathInituz5w5_le.c:1:10: fatal error: libxml/xpath.h: No such file or directory
1 | #include "libxml/xpath.h"
| ^~~~~~~~~~~~~~~~
compilation terminated.
Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?
ERROR: Failed building wheel for PyAudio
Running setup.py clean for PyAudio
Building wheel for scikit-learn (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /home/otavio/Desktop/ProjectJulia/jarvis_virtualenv/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-gtjjp10k/scikit-learn_33b0942a51cf4b699f0fcf9d6799ac7e/setup.py'"'"'; file='"'"'/tmp/pip-install-gtjjp10k/scikit-learn_33b0942a51cf4b699f0fcf9d6799ac7e/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-9sxvwstv
cwd: /tmp/pip-install-gtjjp10k/scikit-learn_33b0942a51cf4b699f0fcf9d6799ac7e/
Complete output (100 lines):
Partial import of sklearn during the build process.
blas_opt_info:
blas_mkl_info:
customize UnixCCompiler
libraries mkl_rt not found in ['/home/otavio/Desktop/ProjectJulia/jarvis_virtualenv/lib', '/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
NOT AVAILABLE
blis_info:
customize UnixCCompiler
libraries blis not found in ['/home/otavio/Desktop/ProjectJulia/jarvis_virtualenv/lib', '/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
NOT AVAILABLE
openblas_info:
customize UnixCCompiler
customize UnixCCompiler
libraries openblas not found in ['/home/otavio/Desktop/ProjectJulia/jarvis_virtualenv/lib', '/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
NOT AVAILABLE
atlas_3_10_blas_threads_info:
Setting PTATLAS=ATLAS
customize UnixCCompiler
libraries tatlas not found in ['/home/otavio/Desktop/ProjectJulia/jarvis_virtualenv/lib', '/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu/atlas', '/usr/lib/x86_64-linux-gnu']
NOT AVAILABLE
atlas_3_10_blas_info:
customize UnixCCompiler
libraries satlas not found in ['/home/otavio/Desktop/ProjectJulia/jarvis_virtualenv/lib', '/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu/atlas', '/usr/lib/x86_64-linux-gnu']
NOT AVAILABLE
atlas_blas_threads_info:
Setting PTATLAS=ATLAS
customize UnixCCompiler
libraries ptf77blas,ptcblas,atlas not found in ['/home/otavio/Desktop/ProjectJulia/jarvis_virtualenv/lib', '/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu/atlas', '/usr/lib/x86_64-linux-gnu']
NOT AVAILABLE
atlas_blas_info:
customize UnixCCompiler
get_default_fcompiler: matching types: '['gnu95', 'intel', 'lahey', 'pg', 'absoft', 'nag', 'vast', 'compaq', 'intele', 'intelem', 'gnu', 'g95', 'pathf95', 'nagfor']'
customize Gnu95FCompiler
Found executable /usr/bin/gfortran
customize Gnu95FCompiler
customize Gnu95FCompiler using config
compiling '_configtest.c':
/* This file is generated from numpy/distutils/system_info.py */
void ATL_buildinfo(void);
int main(void) {
ATL_buildinfo();
return 0;
}
C compiler: x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC
compile options: '-c'
x86_64-linux-gnu-gcc: _configtest.c
x86_64-linux-gnu-gcc -pthread _configtest.o -lf77blas -lcblas -latlas -o _configtest
customize UnixCCompiler
customize UnixCCompiler
FOUND:
language = c
define_macros = [('HAVE_CBLAS', None), ('NO_ATLAS_INFO', -1)]
libraries = ['f77blas', 'cblas', 'atlas', 'f77blas', 'cblas']
library_dirs = ['/usr/lib/x86_64-linux-gnu']
accelerate_info:
NOT AVAILABLE
FOUND:
language = c
define_macros = [('HAVE_CBLAS', None), ('NO_ATLAS_INFO', -1)]
libraries = ['f77blas', 'cblas', 'atlas', 'f77blas', 'cblas']
library_dirs = ['/usr/lib/x86_64-linux-gnu']
ERROR: Failed building wheel for scikit-learn
Running setup.py clean for scikit-learn
Failed to build lxml PyAudio scikit-learn
Installing collected packages: scikit-learn, requests, pycairo, nltk, jaraco.itertools, geojson, beautifulsoup4, word2number, wolframalpha, wikipedia, web-cache, textblob, speedtest-cli, SpeechRecognition, sklearn, pyttsx3, pyowm, pymongo, pygobject, PyAudio, PTable, psutil, playsound, patch, mock, lxml, gTTS-token, google, colorize, Click, bs4, APScheduler, appdirs
Running setup.py install for scikit-learn ... error
ERROR: Command errored out with exit status 1:
command: /home/otavio/Desktop/ProjectJulia/jarvis_virtualenv/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-gtjjp10k/scikit-learn_33b0942a51cf4b699f0fcf9d6799ac7e/setup.py'"'"'; file='"'"'/tmp/pip-install-gtjjp10k/scikit-learn_33b0942a51cf4b699f0fcf9d6799ac7e/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-u7x7205l/install-record.txt --single-version-externally-managed --compile --install-headers /home/otavio/Desktop/ProjectJulia/jarvis_virtualenv/include/site/python3.8/scikit-learn
cwd: /tmp/pip-install-gtjjp10k/scikit-learn_33b0942a51cf4b699f0fcf9d6799ac7e/
Complete output (100 lines):
Partial import of sklearn during the build process.
blas_opt_info:
blas_mkl_info:
customize UnixCCompiler
libraries mkl_rt not found in ['/home/otavio/Desktop/ProjectJulia/jarvis_virtualenv/lib', '/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
NOT AVAILABLE
blis_info:
customize UnixCCompiler
libraries blis not found in ['/home/otavio/Desktop/ProjectJulia/jarvis_virtualenv/lib', '/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
NOT AVAILABLE
openblas_info:
customize UnixCCompiler
customize UnixCCompiler
libraries openblas not found in ['/home/otavio/Desktop/ProjectJulia/jarvis_virtualenv/lib', '/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
NOT AVAILABLE
atlas_3_10_blas_threads_info:
Setting PTATLAS=ATLAS
customize UnixCCompiler
libraries tatlas not found in ['/home/otavio/Desktop/ProjectJulia/jarvis_virtualenv/lib', '/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu/atlas', '/usr/lib/x86_64-linux-gnu']
NOT AVAILABLE
atlas_3_10_blas_info:
customize UnixCCompiler
libraries satlas not found in ['/home/otavio/Desktop/ProjectJulia/jarvis_virtualenv/lib', '/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu/atlas', '/usr/lib/x86_64-linux-gnu']
NOT AVAILABLE
atlas_blas_threads_info:
Setting PTATLAS=ATLAS
customize UnixCCompiler
libraries ptf77blas,ptcblas,atlas not found in ['/home/otavio/Desktop/ProjectJulia/jarvis_virtualenv/lib', '/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu/atlas', '/usr/lib/x86_64-linux-gnu']
NOT AVAILABLE
atlas_blas_info:
customize UnixCCompiler
get_default_fcompiler: matching types: '['gnu95', 'intel', 'lahey', 'pg', 'absoft', 'nag', 'vast', 'compaq', 'intele', 'intelem', 'gnu', 'g95', 'pathf95', 'nagfor']'
customize Gnu95FCompiler
Found executable /usr/bin/gfortran
customize Gnu95FCompiler
customize Gnu95FCompiler using config
compiling '_configtest.c':
/* This file is generated from numpy/distutils/system_info.py */
void ATL_buildinfo(void);
int main(void) {
ATL_buildinfo();
return 0;
}
C compiler: x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC
compile options: '-c'
x86_64-linux-gnu-gcc: _configtest.c
x86_64-linux-gnu-gcc -pthread _configtest.o -lf77blas -lcblas -latlas -o _configtest
customize UnixCCompiler
customize UnixCCompiler
FOUND:
language = c
define_macros = [('HAVE_CBLAS', None), ('NO_ATLAS_INFO', -1)]
libraries = ['f77blas', 'cblas', 'atlas', 'f77blas', 'cblas']
library_dirs = ['/usr/lib/x86_64-linux-gnu']
accelerate_info:
NOT AVAILABLE
FOUND:
language = c
define_macros = [('HAVE_CBLAS', None), ('NO_ATLAS_INFO', -1)]
libraries = ['f77blas', 'cblas', 'atlas', 'f77blas', 'cblas']
library_dirs = ['/usr/lib/x86_64-linux-gnu']
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-gtjjp10k/scikit-learn_33b0942a51cf4b699f0fcf9d6799ac7e/setup.py", line 290, in <module>
setup_package()
File "/tmp/pip-install-gtjjp10k/scikit-learn_33b0942a51cf4b699f0fcf9d6799ac7e/setup.py", line 286, in setup_package
setup(**metadata)
File "/home/otavio/Desktop/ProjectJulia/jarvis_virtualenv/lib/python3.8/site-packages/numpy/distutils/core.py", line 137, in setup
config = configuration()
File "/tmp/pip-install-gtjjp10k/scikit-learn_33b0942a51cf4b699f0fcf9d6799ac7e/setup.py", line 174, in configuration
config.add_subpackage('sklearn')
File "/home/otavio/Desktop/ProjectJulia/jarvis_virtualenv/lib/python3.8/site-packages/numpy/distutils/misc_util.py", line 1034, in add_subpackage
config_list = self.get_subpackage(subpackage_name, subpackage_path,
File "/home/otavio/Desktop/ProjectJulia/jarvis_virtualenv/lib/python3.8/site-packages/numpy/distutils/misc_util.py", line 1000, in get_subpackage
config = self._get_configuration_from_setup_py(
File "/home/otavio/Desktop/ProjectJulia/jarvis_virtualenv/lib/python3.8/site-packages/numpy/distutils/misc_util.py", line 942, in _get_configuration_from_setup_py
config = setup_module.configuration(*args)
File "sklearn/setup.py", line 66, in configuration
config.add_subpackage('utils')
File "/home/otavio/Desktop/ProjectJulia/jarvis_virtualenv/lib/python3.8/site-packages/numpy/distutils/misc_util.py", line 1034, in add_subpackage
config_list = self.get_subpackage(subpackage_name, subpackage_path,
File "/home/otavio/Desktop/ProjectJulia/jarvis_virtualenv/lib/python3.8/site-packages/numpy/distutils/misc_util.py", line 1000, in get_subpackage
config = self._get_configuration_from_setup_py(
File "/home/otavio/Desktop/ProjectJulia/jarvis_virtualenv/lib/python3.8/site-packages/numpy/distutils/misc_util.py", line 942, in _get_configuration_from_setup_py
config = setup_module.configuration(*args)
File "sklearn/utils/setup.py", line 8, in configuration
from Cython import Tempita
ModuleNotFoundError: No module named 'Cython'
----------------------------------------
ERROR: Command errored out with exit status 1: /home/otavio/Desktop/ProjectJulia/jarvis_virtualenv/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-gtjjp10k/scikit-learn_33b0942a51cf4b699f0fcf9d6799ac7e/setup.py'"'"'; file='"'"'/tmp/pip-install-gtjjp10k/scikit-learn_33b0942a51cf4b699f0fcf9d6799ac7e/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-u7x7205l/install-record.txt --single-version-externally-managed --compile --install-headers /home/otavio/Desktop/ProjectJulia/jarvis_virtualenv/include/site/python3.8/scikit-learn Check the logs for full command output.
Install Python dependencies failed
Hello, I would like to know if I can integrate this assistant with another application, that is, that I can send her a query and she will return a response after executing the respective skill. If this is possible, you could tell me how to do it and if I can develope it, what class or function from the code i can go to perform this procedure.
Hi,
it seems like the 'open_in_youtube'-Skill is not working (at least for me). So 'jarvis play mozart' will always tell you 'I can't find what do you want in Youtube..'.
I guess yt reworked their searchpage and the old implementation (2 years ago), using bs4 and trying to find the top video via class': 'yt-uix-tile-link'
is not working anymore.
I'm already working on a fix for that. However, i wanted to create this issue first, just to make sure its not a bug/problem only on my side.
So it would be nice if someone can actually confirm that 'jarvis play xyz' fails with 'I can't find what do you want in Youtube..'.
If so, i'll publish my fix and create a pullrequest.
Also, it's the first time for me, contributing to another ones project and providing pull requests. So if i miss anything or could improve something, please just let me know.
I'm quite new to the whole Python programming, so I'm sorry if my question is stupid or anything like that.
And sorry for bad English it's not my mother tongue.
I'm quite a fan of this project, but is it possible to add something like a different voice profile?
I found this project here on GitHub:
https://github.com/CorentinJ/Real-Time-Voice-Cloning
Is there any way to add this project or parts of it to make a custom voice profile for this ai assistant?
Is there any way to change that robotic voice to something better in text to speech?
voice command is not working. I am using this in ubuntu. but it does not recoginize any voice. please help
gnupg is already the newest version (2.2.19-3ubuntu2.1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Hit:1 http://in.archive.ubuntu.com/ubuntu focal InRelease
Hit:2 http://in.archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:3 http://security.ubuntu.com/ubuntu focal-security InRelease
Hit:4 https://dl.google.com/linux/chrome/deb stable InRelease
Hit:5 http://in.archive.ubuntu.com/ubuntu focal-backports InRelease
Get:6 https://repo.protonvpn.com/debian stable InRelease [2,519 B]
Err:6 https://repo.protonvpn.com/debian stable InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 71EB474019940E11
Reading package lists... Done
W: GPG error: https://repo.protonvpn.com/debian stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 71EB474019940E11
E: The repository 'https://repo.protonvpn.com/debian stable InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
System dependencies installation failed
When the start.py file runs i get this error
\Traceback (most recent call last):
File "c:\Users\pritg\Downloads\Python-ai-assistant-develop\Python-ai-assistant-develop\src\jarvis\start.py", line 3, in <module>
from jarvis import settings
File "c:\Users\pritg\Downloads\Python-ai-assistant-develop\Python-ai-assistant-develop\src\jarvis\jarvis\__init__.py", line 26, in
<module>
configure_MongoDB(db, settings)
File "c:\Users\pritg\Downloads\Python-ai-assistant-develop\Python-ai-assistant-develop\src\jarvis\jarvis\utils\startup.py", line 77, in configure_MongoDB
from jarvis.skills.registry import CONTROL_SKILLS, ENABLED_BASIC_SKILLS
File "c:\Users\pritg\Downloads\Python-ai-assistant-develop\Python-ai-assistant-develop\src\jarvis\jarvis\skills\registry.py", line
20, in <module>
from jarvis.skills.collection.configuration import ConfigurationSkills
File "c:\Users\pritg\Downloads\Python-ai-assistant-develop\Python-ai-assistant-develop\src\jarvis\jarvis\skills\collection\configuration.py", line 12, in <module>
input_mode = db.get_documents(collection='general_settings')[0]['input_mode']
TypeError: 'NoneType' object is not subscriptable
Please help me to fix this error
Having problem after installing Scipy-1.3.0.tar.gz. ?
Preparing wheel metadata ... error
I stumbled about this error:
DEBUG - Error with the execution of skill with message 'str' object has no attribute 'assistant_response'
@classmethod
def _create_skill_response(cls, response):
for skill_id, skill in enumerate(skills_registry.BASIC_SKILLS.values()):
response = response + '{0}'.format(skill_id + 1) + skill['description'] + '\n'
return response
@classmethod
def tell_the_skills(cls, **kwargs):
"""
Tells what he can do as assistant.
"""
response_base = 'I can do the following: \n\n'
response = cls._create_skill_response(response_base)
response.assistant_response(response)
But I'm unable to find a solution so far. I will try to find a solution:)
EDIT:
try:
response_base = 'I can do the following: \n\n'
response = cls._create_skill_response(response_base)
# response.assistant_response(response)
cls.response(response)
except Exception as e:
print("Error with the execution of skill with message {0}".format(e))
Seems to work
Hello!
Great project! I am trying to have a chain of skills.
For example, if the user asks what is the weather? the AI can respond, would you like to see your current city or a new city? Then the user responds current city.
Any suggestions on how best to implement this?
Thanks
For example in command "Jarvis open youtube and what time is", the regular expression in 'open_website_in_browser' method maches a the domain "youtube and what time is"
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.