xtools-at / AssistantPi

Bring both Google Assistant and Alexa to your Raspberry Pi
MIT License
490 stars 50 forks source link

Setup.sh fails during python-vlc #25

Closed shoemakn closed 6 years ago

shoemakn commented 7 years ago

This is on latest Raspbian Stretch Lite (Jessie no longer available after WiFi exploit was patched), released 2017-09-07, kernel v4.9

Python 2 & 3 releases (python2 --version and python3 --version): Python 2.7.13 Python 3.5.3

Description of problem: Initial run of /opt/AlexaPi/src/scripts/setup.sh fails at the following:

Collecting python-vlc from git+https://github.com/oaubert/python-vlc.git#egg=python-vlc (from -r ./requirements.txt (line 3))
  Cloning https://github.com/oaubert/python-vlc.git to /tmp/pip-build-IFM6d6/python-vlc
    Complete output from command python setup.py egg_info:
    /usr/lib/python2.7/dist-packages/setuptools/dist.py:342: UserWarning: The version specified ('%s"') is an invalid version, this may not work as expected with newer versions of setuptools, pip, and PyPI. Please see PEP 440 for more details.
      "details." % self.metadata.version
    running egg_info
    creating pip-egg-info/python_vlc_generator.egg-info
    writing pip-egg-info/python_vlc_generator.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/python_vlc_generator.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/python_vlc_generator.egg-info/dependency_links.txt
    writing manifest file 'pip-egg-info/python_vlc_generator.egg-info/SOURCES.txt'
    error: package directory 'generator/generate' does not exist

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-IFM6d6/python-vlc/

Steps to reproduce:

  1. Fresh Raspbian Stretch Lite install
  2. Connect to network
  3. Fresh git clone of AssistantPi to /opt/AlexaPi per installation intructions
  4. Run sudo /opt/AlexaPi/src/scripts/setup.sh
xtools-at commented 7 years ago

Thanks for reporting, I'm currently abroad and check on it when I'm back. You can try installing the missing dependency from the error message before running the setup. Please report back if you run into any problems!

shoemakn commented 7 years ago

Thanks!

I also tried installing on a fresh install of Jessie (I found the July release in my Downloads folder) with the same results.

Will try discerning the appropriate dependency and pre-installing it.

shoemakn commented 7 years ago

It would appear this is a problem with the dependency itself: python-vlc ... I'm not sure how you may want to label this thread but I'll leave it open for you. Thanks again!

shoemakn commented 7 years ago

Installed dependency: python-vlc via the latest commit prior to the AssistantPi's commit date: sha0b9da32bfb6ad6ed5296fa1cd967e0f5d101cbf1

Also had to manually install pip via get-pip.py script to get the process going.

Initially had some issues with the Amazon/Alexa authorization

Encountered 3 errors during GoogleAssistant build, all pertaining to bdist_wheel: image

Now the install says it was successful, but I apparently need to finish some audio configuration (at least)

shoemakn commented 7 years ago

yeah. nothing works as documented, I'm afraid. I've tried both vlc and sox for audio. I can successfully record and play back audio using arecord and aplay, but despite following all of the instructions I've found here and in the wiki, I've hit a brick wall.

cemtes commented 7 years ago

Shoemakn, I'm encountering the same error with the python-vlc, but I'm totally new to linux. Could you go in to a bit of detail about how you solved this? Thanks.

shoemakn commented 7 years ago

cemtes, I wish I could help... but I haven't been able to resolve the issue myself.

It seems like several of the dependencies have some issues with their own setup scripts, so you can follow xtools-at's advice above and try to find a way to get them installed before running the AssistantPi setup script, but your mileage may vary. Best wishes & good luck!

cemtes commented 7 years ago

Were you able to actually get it fully installed? That's the part I'm stuck on, and don't know how to install specific dependencies with the proper commit as you mentioned in your post.

shoemakn commented 7 years ago

cemtes, I wish I could help... but I haven't been able to resolve the issue myself.

nickexile commented 7 years ago

Try running the following command to install python-vlc sudo pip2 install python_vlc That should install the dependency for you using python2

lucio97 commented 7 years ago

@nickexile solution work, thank you so much :D

cemtes commented 7 years ago

@nickexile thanks a ton. That worked.

cemtes commented 7 years ago

@shoemakn For what it's worth. I finally got it working. I had to do a fresh install of raspbian withOUT desktop. Then went through all the install. It kept pausing at various parts so I had to run the setup multiple times to get all the components. When I first ran it I was getting an error that it couldn't find "pulse" as an input so I had to go into the config.txt and change input from "pulse" to "mic" and it started accepting input. But then I wasn't getting any output. It turns out I didn't have pulseaudio installed. After a manual installation of pulse audio it seems to be working.

shoemakn commented 7 years ago

@cemtes my install still fails during the bdist_wheel build process. Did yours go without a hitch there, or did you have an additional dependency install?

Thanks @nickexile for the vlc install