Open carruthjr opened 7 years ago
Josephs-MacBook-Air:AI-Smart-Mirror josephcarruth$ cat setup.sh
pip install virtualenv virtualenv hhsmartmirror source ./hhsmartmirror/bin/activate pip install -r requirements.txt pip install --global-option='build_ext' --global-option='-I/usr/local/include' --global-option='-L/usr/local/lib' pyaudio Josephs-MacBook-Air:AI-Smart-Mirror josephcarruth$ sudo ./setup.sh ./setup.sh: line 3: pip: command not found ./setup.sh: line 4: virtualenv: command not found ./setup.sh: line 5: ./hhsmartmirror/bin/activate: No such file or directory ./setup.sh: line 6: pip: command not found ./setup.sh: line 7: pip: command not found Josephs-MacBook-Air:AI-Smart-Mirror josephcarruth$
This is what I get when I do this, can someone tell me why? I've followed the webpage & video's instruction very closely, but why? Is there something I don't have downloaded?
Yep, make sure you install pip
. http://stackoverflow.com/questions/17271319/how-to-install-pip-on-mac-os-x
Thank you, Aaron, I like the youtube video. This will be a really cool addition to a project. J
On Nov 18, 2016, at 11:38 AM, Aaron Tainter notifications@github.com wrote:
Yep, make sure you install pip. http://stackoverflow.com/questions/17271319/how-to-install-pip-on-mac-os-x http://stackoverflow.com/questions/17271319/how-to-install-pip-on-mac-os-x β You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/HackerHouseYT/AI-Smart-Mirror/issues/7#issuecomment-261593083, or mute the thread https://github.com/notifications/unsubscribe-auth/AWbTEfsZ_Q8vXC4If7r1UwTeYN3Cn0n_ks5q_eKcgaJpZM4K14FF.
(hhsmartmirror) Josephs-MacBook-Air:AI-Smart-Mirror josephcarruth$ sudo ./setup.sh
Password:
The directory '/Users/josephcarruth/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/Users/josephcarruth/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting virtualenv
Downloading virtualenv-15.1.0-py2.py3-none-any.whl (1.8MB)
100% |ββββββββββββββββββββββββββββββββ| 1.8MB 553kB/s
Installing collected packages: virtualenv
Successfully installed virtualenv-15.1.0
Please use the system python to run this script
Traceback (most recent call last):
File "/Users/josephcarruth/Desktop/AI-Smart-Mirror/hhsmartmirror/bin/virtualenv", line 11, in
^
1 error generated.
error: command 'cc' failed with exit status 1
----------------------------------------
Command "/Users/josephcarruth/Desktop/AI-Smart-Mirror/hhsmartmirror/bin/python -u -c "import setuptools, tokenize;file='/private/tmp/pip-build-G3TtfC/pyaudio/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" build_ext -I/usr/local/include -L/usr/local/lib install --record /tmp/pip-8sp0Id-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/josephcarruth/Desktop/AI-Smart-Mirror/hhsmartmirror/include/site/python2.7/pyaudio" failed with error code 1 in /private/tmp/pip-build-G3TtfC/pyaudio/
(hhsmartmirror) Josephs-MacBook-Air:AI-Smart-Mirror josephcarruth$ python bot.py
/Users/josephcarruth/Desktop/AI-Smart-Mirror/hhsmartmirror/lib/python2.7/site-packages/pydub/utils.py:178: RuntimeWarning: Couldn't find ffplay or avplay - defaulting to ffplay, but may not work
warn("Couldn't find ffplay or avplay - defaulting to ffplay, but may not work", RuntimeWarning)
Warning: OpenCV not installed. To use facial recognition, make sure you've properly configured OpenCV.
Used wrong endpoint for microphone debugging
Found face
Traceback (most recent call last):
File "bot.py", line 254, in
This is as far as I've gotten but for some reason the PyAudio file doesn't install or something. Is there anything else I need to download? Thanks
fatal error: 'portaudio.h' file not found
I would google this. The setup.sh script installs a module called pyaudio. For some reason it can't find the portaudio.h file when it installs. You could also try installing portaudio first. brew install portaudio
Had the same issue (Mac OS Sierra). Using brew to install "portaudio" solved the issue for me.
I tried that too, but for some reason it has never worked. Iβm looking at ways to put it on a RPi right now, but Iβve been busy this winter. Iβll look into that again though.
On Jan 7, 2017, at 11:06 PM, dropert <notifications@github.com mailto:notifications@github.com> wrote:
Had the same issue (Mac OS Sierra). Using brew to install "portaudio" solved the issue for me.
β You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/HackerHouseYT/AI-Smart-Mirror/issues/7#issuecomment-271130364, or mute the thread https://github.com/notifications/unsubscribe-auth/AWbTER_lTZygsrfE8mcGvWUFs7a-QZDUks5rQG7jgaJpZM4K14FF.
Thanks @dropert ! It works for me.
Same. brew install portaudio solves the issue installing pyaudio on mac
Pip did not work for me
Sudo apt-get portaudio19-dev will solve the missing portaudio.h file problem
you can also install it with ..... brew install portaudio
I haven't tried this yet (will tonight) on a Rasp Pi 3B, but it looks promising... https://www.pyimagesearch.com/2016/04/18/install-guide-raspberry-pi-3-raspbian-jessie-opencv-3/
Will let you know once I try it.
Hello everyone i managed to install everything on raspberry pi3 and there are a lot of issues that would come to your way if you try to do it on raspberry pi.I spent 8 days to work it out so please let me know if i can be of any help.
@pawans-optimus I am getting error -> File "/home/pi/AI-Smart-Mirror/speech.py", line 54, in synthesize_text song = AudioSegment.from_mp3("tmp.mp3") File "/home/pi/AI-Smart-Mirror/hhsmartmirror/local/lib/python2.7/site-packages/pydub/audio_segment.py", line 532, in from_mp3 return cls.from_file(file, 'mp3', parameters) File "/home/pi/AI-Smart-Mirror/hhsmartmirror/local/lib/python2.7/site-packages/pydub/audio_segment.py", line 512, in from_file p = subprocess.Popen(conversion_command, stdin=devnull, stdout=subprocess.PIPE, stderr=subprocess.PIPE) File "/usr/lib/python2.7/subprocess.py", line 710, in init errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory
Can you help me out here
@SChandel4 Please make sure that you have proper privileges. If you made the virtual env using a root user then you have run everything afterwards as root and vice versa. Also make sure you call bot.py from within virtual env. And if evrything fails--do a workaround --- chmod to 755 that directory
i will try to add another readme for pi boards only this weekend.
am gating this error, can some one help:
Traceback (most recent call last):
File "bot.py", line 12, in
Try Sudo apt-get install py4j Or pip install py4j
One of them will work
On Wed, May 2, 2018, 11:39 AM auwal amshi notifications@github.com wrote:
am gating this error, can some one help: 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'
β You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/HackerShackOfficial/AI-Smart-Mirror/issues/7#issuecomment-385874087, or mute the thread https://github.com/notifications/unsubscribe-auth/Ae1M0Ujqm2GzCRqNY1baDSgXOQIckVY6ks5tuU22gaJpZM4K14FF .
On May 2, 2018 11:39 AM, "auwal amshi" notifications@github.com wrote:
am gating this error, can some one help: 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'
β You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/HackerShackOfficial/AI-Smart-Mirror/issues/7#issuecomment-385874087, or mute the thread https://github.com/notifications/unsubscribe-auth/Ae1M0Ujqm2GzCRqNY1baDSgXOQIckVY6ks5tuU22gaJpZM4K14FF .
Also do the following if required
On Wed, May 2, 2018, 11:53 AM Crazy Freaks aakaash200317@gmail.com wrote:
Try Sudo apt-get install py4j Or pip install py4j
One of them will work
On Wed, May 2, 2018, 11:39 AM auwal amshi notifications@github.com wrote:
am gating this error, can some one help: 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'
β You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/HackerShackOfficial/AI-Smart-Mirror/issues/7#issuecomment-385874087, or mute the thread https://github.com/notifications/unsubscribe-auth/Ae1M0Ujqm2GzCRqNY1baDSgXOQIckVY6ks5tuU22gaJpZM4K14FF .
On May 2, 2018 11:39 AM, "auwal amshi" notifications@github.com wrote:
am gating this error, can some one help: 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'
β You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/HackerShackOfficial/AI-Smart-Mirror/issues/7#issuecomment-385874087, or mute the thread https://github.com/notifications/unsubscribe-auth/Ae1M0Ujqm2GzCRqNY1baDSgXOQIckVY6ks5tuU22gaJpZM4K14FF .
Hi @aak2003 seems like you are lacking that will to make it work. Anyways i will definitely add another readme this weekend :-)
Hi @saxenapawan800 plz help me As I am stuck at Bad auth/tokens parms problem Even if I had given the right creditals it doesn't work And plz tell me how to add api keys for maps and other stuff
I am stuck at python bot.py and running in OS X
(hhsmartmirror) YOGAs-MacBook-Pro:AI-Smart-Mirror yogawpradhana$ python bot.py
No Java runtime present, requesting install.
Traceback (most recent call last):
File "bot.py", line 12, in
Is there anyone get this issue and how to fix it? Thank you in advance
Hello everyone i managed to install everything on raspberry pi3 and there are a lot of issues that would come to your way if you try to do it on raspberry pi.I spent 8 days to work it out so please let me know if i can be of any help.
how did you install homebrew on raspberry pi 3 for packages and pip installation please
I can't seem to do the last steps for some weird reason. I have it all until the sudo ./setup.sh part. It doesn't work for me. Can someone help?