HackerShackOfficial / AI-Smart-Mirror

Smart Mirror with a smart AI 🤖
MIT License
537 stars 214 forks source link

starting bot.py #8

Open alex11704 opened 7 years ago

alex11704 commented 7 years ago

Traceback (most recent call last): File "bot.py", line 12, in from nlg import NLG File "/Users/interview6/Desktop/!mirror/AI-Smart-Mirror-master/nlg.py", line 4, in from py4j_server import launch_py4j_server File "/Users/interview6/Desktop/!mirror/AI-Smart-Mirror-master/py4j_server/init.py", line 8, in from py4j.java_gateway import JavaGateway, GatewayClient, java_import ImportError: No module named py4j.java_gateway (hhsmartmirror) alex:AI-Smart-Mirror-master interview6$ python bot.py Traceback (most recent call last): File "bot.py", line 12, in from nlg import NLG File "/Users/interview6/Desktop/!mirror/AI-Smart-Mirror-master/nlg.py", line 4, in from py4j_server import launch_py4j_server File "/Users/interview6/Desktop/!mirror/AI-Smart-Mirror-master/py4j_server/init.py", line 8, in from py4j.java_gateway import JavaGateway, GatewayClient, java_import ImportError: No module named py4j.java_gateway

zgelici commented 7 years ago

Hi,

I think the solution is:

run first this command:

source hhsmartmirror/bin/activate

alex11704 commented 7 years ago

HI I am getting this error now

Traceback (most recent call last): File "bot.py", line 7, in import requests ImportError: No module named requests

fifacode commented 7 years ago

Hi i have this error

Traceback (most recent call last): File "bot.py", line 12, in from nlg import NLG File "/home/nik/AI-Smart-Mirror/nlg.py", line 7, in gateway = launch_py4j_server() File "/home/nik/AI-Smart-Mirror/py4j_server/init.py", line 31, in launch_py4j_server stdout=PIPE, stdin=PIPE) File "/usr/lib/python2.7/subprocess.py", line 711, in init errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1343, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory

Can someone help me?

prashu03 commented 7 years ago

i have this error and i am stuck up here can i get some help please

Traceback (most recent call last): File "bot.py", line 12, in from nlg import NLG File "/home/nik/AI-Smart-Mirror/nlg.py", line 7, in gateway = launch_py4j_server() File "/home/nik/AI-Smart-Mirror/py4j_server/init.py", line 31, in launch_py4j_server stdout=PIPE, stdin=PIPE) File "/usr/lib/python2.7/subprocess.py", line 711, in init errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1343, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory

Can someone help me?

sohailshareef commented 7 years ago

Traceback (most recent call last): File "bot.py", line 6, in import requests ImportError: No module named requests i am getting this error please help me i have college project.

fullbright commented 7 years ago

I realized that pyaudio was not installed correctly. I was getting an error when I run the setup.sh, at the pyaudio installation stage. I had to install portaudio19-dev to solve the issue on my side. sudo apt-get install portaudio19-dev

sohailshareef commented 7 years ago

Hello thanks for your help but I am getting problem in speech recognization installation. My pyaudio installed successfully and at the end while starting bot.py I am getting error like no module named request. I am in big trouble to submit this project in college.

sapgreengem commented 7 years ago

Is there any solution of this error. I am not finding any way to get rid of this (hhsmartmirror) gem@gem-Aspire-V5-571G:~/asd/AI-Smart-Mirror$ python bot.py Traceback (most recent call last): File "bot.py", line 12, in from nlg import NLG File "/home/gem/asd/AI-Smart-Mirror/nlg.py", line 7, in gateway = launch_py4j_server() File "/home/gem/asd/AI-Smart-Mirror/py4j_server/init.py", line 31, in launch_py4j_server stdout=PIPE, stdin=PIPE) File "/usr/lib/python2.7/subprocess.py", line 711, in init errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1343, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory

fullbright commented 7 years ago

Hello I found a solution. can you make sure that Java is installed on your system ?

I installed Java and it started working again.

Le 7 avr. 2017 3:10 PM, "sapgreengem" notifications@github.com a écrit :

Is there any solution of this error. I am not finding any way to get rid of this (hhsmartmirror) gem@gem-Aspire-V5-571G:~/asd/AI-Smart-Mirror$ python bot.py Traceback (most recent call last): File "bot.py", line 12, in from nlg import NLG File "/home/gem/asd/AI-Smart-Mirror/nlg.py", line 7, in gateway = launch_py4j_server() File "/home/gem/asd/AI-Smart-Mirror/py4j_server/init.py", line 31, in launch_py4j_server stdout=PIPE, stdin=PIPE) File "/usr/lib/python2.7/subprocess.py", line 711, in init errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1343, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/HackerHouseYT/AI-Smart-Mirror/issues/8#issuecomment-292532017, or mute the thread https://github.com/notifications/unsubscribe-auth/AAvP-B7ln0i7p6PdcrvddesNR1uMn_9cks5rtjXMgaJpZM4K33Kk .

aak2003 commented 6 years ago

HI I am getting this error

Traceback (most recent call last): File "bot.py", line 7, in import requests ImportError: No module named requests

amshoo commented 6 years ago

plz did someone the solution Traceback (most recent call last): File "bot.py", line 12, in from nlg import NLG File "C:\Users\USER\desktop\my-git\nlg.py", line 4, in from py4j_server import launch_py4j_server File "C:\Users\USER\desktop\my-git\py4j_server__init__.py", line 8, in from py4j.java_gateway import JavaGateway, GatewayClient, java_import ModuleNotFoundError: No module named 'py4j.java_gateway'

aak2003 commented 6 years ago

Try going to this site about the installation of py4j

http://py4j.sourceforge.net/install.html#install-instructions

On Thu, May 3, 2018, 9:09 AM auwal amshi notifications@github.com wrote:

plz did someone the solution Traceback (most recent call last): File "bot.py", line 12, in from nlg import NLG File "C:\Users\USER\desktop\my-git\nlg.py", line 4, in from py4j_server import launch_py4j_server File "C:\Users\USER\desktop\my-git\py4jserverinit_.py", line 8, in from py4j.java_gateway import JavaGateway, GatewayClient, java_import ModuleNotFoundError: No module named 'py4j.java_gateway'

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/HackerShackOfficial/AI-Smart-Mirror/issues/8#issuecomment-386184109, or mute the thread https://github.com/notifications/unsubscribe-auth/Ae1M0bf14c3TesbZyHhrYmDDxiWs3LqVks5tunwDgaJpZM4K33Kk .

ChrisCampling commented 6 years ago

mac users:

pip2 install requests

than 'pip2 install' each module not found. If having issues with pip2 install try:

curl https://bootstrap.pypa.io/get-pip.py | python