-
Notifications
You must be signed in to change notification settings - Fork 7
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 and it says no module named 'requests' #13
Comments
From a cmd prompt, use > Path\easy_install.exe requests, where Path is your Python*\Scripts folder, if it was installed. (For example: C:\Python32\Scripts\easy_install.exe) If you don't have easy install and are running on a windows machine, you can get it here: http://www.lfd.uci.edu/~gohlke/pythonlibs/#distribute If you manually want to add a library to a windows machine, you can download the compressed library, uncompress it, and then place it into the Lib folder of your python path. (For example: C:\Python27\Lib) |
Hi, I found it was the problem on the path of the different version of Python. |
This code doesnt work on windows. |
hey whats the work around on windows by any chance? |
Try with virtual box
…On Fri, Aug 17, 2018, 5:25 AM iggytree ***@***.*** wrote:
hey whats the work around on windows by any chance?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#13 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/Ae1M0dkO_9ZrOQinoKIsvx78p2xedm--ks5uRgZtgaJpZM4Te7br>
.
|
Try installing py4j for your system
…On Mon, Apr 23, 2018, 12:25 AM kk1775 ***@***.*** wrote:
Hi, I found it was the problem on the path of the different version of
Python.
Yet, I still can't run the bot.py sadly. 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 should I do? plz help I really apreciate.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#13 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/Ae1M0UnYm7Skrct3oQA1j6trToTrB5mlks5trNIHgaJpZM4Te7br>
.
|
Sudo apt-get install requests , pip install requests.
…On Sun, Apr 22, 2018, 10:37 PM kk1775 ***@***.*** wrote:
I do as you said and I use both ways by the easy install and the manual
steps to install the library requests.
But it still shows the same error message.
Is there another factor that causes this?
BTW, what kind of OS did you run? Cause I would like to try this on
raspberry pi 3 in the future.
Thanks a lot.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#13 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/Ae1M0cswAxOs1qGtz38Htl31OgnNfpDAks5trLjDgaJpZM4Te7br>
.
|
I am also getting the same error and i am doing it in raspberry pi itself, i tried out these commands |
@PoojaAmin29 - Can you share the stack trace? |
I follow the steps on hh and when I execute the bot.py and it said no module named 'requests'
I run python bot.py and I get this:
Traceback (most recent call last):
File "bot.py", line 7, in
import requests
ModuleNotFoundError: No module named 'requests'
What's the problem? I'm using Win10.
Can someone please tell me how to solve this?
The text was updated successfully, but these errors were encountered: