Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running bot.py #76

Open
kk1775 opened this issue Apr 22, 2018 · 5 comments
Open

Running bot.py #76

kk1775 opened this issue Apr 22, 2018 · 5 comments

Comments

@kk1775
Copy link

kk1775 commented Apr 22, 2018

Hi, I follow the steps and run the bot.py and it shows this:
Error: Could not find or load main class Py4JServer
Traceback (most recent call last):
File "bot.py", line 12, in
from nlg import NLG
File "C:\Users\kk1775\Desktop\AI-Smart-Mirror-master\nlg.py", line 7, in
gateway = launch_py4j_server()
File "C:\Users\kk1775\Desktop\AI-Smart-Mirror-master\py4j_server_init_.py", line 34, in launch_py4j_server
_port = int(_pid.stdout.readline())
ValueError: invalid literal for int() with base 10: ' '
What can I do to solve this? plz help me I'm appreciated

@killerPhoenix
Copy link

Try installing...java..

@kk1775
Copy link
Author

kk1775 commented Apr 23, 2018

Hi, I had java on my computer.
Is there any other way to solve this?

@killerPhoenix
Copy link

did u gave python bot.py in virtualenv...try tht..it may work...

@Josh4you
Copy link

try installing py4js manually

@vikas12121200
Copy link

same error please help

(hhsmartmirror) pi@raspberrypi:~/AI-Smart-Mirror $ python bot.py
Traceback (most recent call last):
  File "bot.py", line 12, in <module>
    from nlg import NLG
  File "/home/pi/AI-Smart-Mirror/nlg.py", line 7, in <module>
    gateway = launch_py4j_server()
  File "/home/pi/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 390, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1024, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants