SiriProxy icon indicating copy to clipboard operation
SiriProxy copied to clipboard

SiriProxy Error

Open KirmaanA opened this issue 15 years ago • 34 comments

Whenever I Try To Use "siriproxy bundle" or "siriproxy gencerts" I get this error

Kirmaan-Aboobakers-MacBook-Air:~ Kirmaan$ siriproxy gencerts -bash: siriproxy: command not found

Thanks

KirmaanA avatar Nov 30 '11 17:11 KirmaanA

Use: git clone https://github.com/plamoni/SiriProxy.git

Taruga avatar Nov 30 '11 19:11 Taruga

I too am having this issue. Had things running fine before the recent gem switch. I've got the project cloned in my user home folder. Rake install returns "siriproxy 0.0.1 built to pkg/siriproxy-0.0.1.gem" & "siriproxy (0.0.1) installed" and is indeed in the pkg folder. Can't get siriproxy to be recognized in terminal though...

Any help would be appreciated. Thanks!!

I LOVE siriproxy!

benjaminwood avatar Dec 01 '11 04:12 benjaminwood

bash-3.2$ cd siriproxy/pkg bash-3.2$ rvmsudo gem install siriproxy

You have to install the gem file for Siri. Plamoni missed this step in the read me. Then you can execute siriproxy

flash66 avatar Dec 01 '11 07:12 flash66

Hi flash66, thanks for your reply. I tried your suggestion and it said that it installed successfully, but it's still acting like its not installed: siriproxy: command not found.

Doesn't "rake install" build the gem and then install it? Did plamoni miss the step? Or am I experiencing another problem?

Thanks, I'm still running the previous version of siriproxy and am having fun learning & learning a lot. Appreciate the help!

benjaminwood avatar Dec 01 '11 21:12 benjaminwood

Hi Ben, I have to say, I've ran into a few annoying problems installing this on my system. To first answer your question, try running anything "siriproxy" with 'rvmsudo'. ''rake install' does not install the the Siri gem. although it looks like it does. After manually installing the gem from /pkg by: 'rvmsudo gem install siriproxy' Your command 'siriproxy bundle' should work but may have errors. To fix this just use 'rvmsudo siriproxy bundle'. The was also an issue installing the gems, as some ruby configuring was going on. if I remember correctly, you might get this:

""ERROR: There has been an error while running configure"" halting the process. Running this command with clang fixed the ruby issue. 'rvm install 1.9.3 --with-gcc=clang'

After that, just a few syntax errors in my config.yml for my plex plugin , and I was set. Make sure the config.example.yml is renamed to config.yml and put into the .siriproxy folder inside your siriproxy root folder. Don't forget to bundle!

The creation of the hidden .siriproxy folder step was the beginning of my trouble. It kept saying it already existed but it was invisible so....... Also the "siryproxy gencerts" did not work for me. a path couldn't be found so creation was a failure without the .crt file to rename and move.

I used the previous cert from my old siriproxy folder with success. You can still generate one the old way. There are a couple of additions that should be in the read me file, but with persistence you'll figure it out. Hope this helps! -TS

flash66 avatar Dec 02 '11 02:12 flash66

https://github.com/plamoni/SiriProxy/wiki/Common-Errors-and-Solutions

flash66 avatar Dec 02 '11 07:12 flash66

Can someone confirm that you must install the gem separately from the rake install? I do not think this is necessary, but others do.

Also, rake install should not be run as root.

plamoni avatar Dec 02 '11 16:12 plamoni

Hey guys, thanks for the help! After some more trial and error, I came to this conclusion:

Running "Rake install" returns siriproxy 0.0.1 built to pkg/siriproxy-0.0.1.gem siriproxy (0.0.1) installed

It did generate "pkg/siriproxy-0.0.1.gem" As far as I could tell it didn't install siriproxy. It did create the folder "/Users/benjamin/.rvm/gems/ruby-1.9.3-p0/gems/siriproxy-0.0.1" but didn't populate it. It did not put siriproxy in "/Users/benjamin/.rvm/gems/ruby-1.9.3-p0/bin"

As suggested I tried running "'rvmsudo gem install siriproxy" from the pkg folder. For me, it gave the same results as rake install which is that it says it installed, but it didn't!

I ended up manually moving the needed files from my cloned siriproxy folder to "/Users/benjamin/.rvm/gems/ruby-1.9.3-p0/gems/siriproxy-0.0.1" and "/Users/benjamin/.rvm/gems/ruby-1.9.3-p0/bin"

After this I could run "Siriproxy Gencerts" but it came with errors.

Generated ~/.siriproxy/server.passless.key Generated ~/.siriproxy/ca.pem Did not generate ~/.siriproxy/server.passless.crt

I ended up using my certificate files from my original siriproxy install that were created manually.

"siriproxy bundle" returned a permissions error. "rvmsudo siriproxy bundle" seemed to do the trick.

After all that… "rvmsudo siriproxy server" and..

Siriproxy is up and running!

benjaminwood avatar Dec 02 '11 22:12 benjaminwood

That's great Ben. As I said rake install builds the gem but installation needs manual intervention. So I guess it's confirmed. The gencert also needs a bit of work. Seems the problem is primarily incorrect paths. Glad to hear you have it up and running.

flash66 avatar Dec 02 '11 23:12 flash66

By the way, the gem should have been populated with rake to /pkg not /bin.

flash66 avatar Dec 02 '11 23:12 flash66

Yeah, this confirms that at least for some rake install doesn't install the gem. I have a couple of friends that are experiencing that same issue, so I know it's not just us.

The gem was populated to /pkg but since I couldn't get it to install I manually moved the entire contents of the siriproxy folder to "Users/benjamin/.rvm/gems/ruby-1.9.3-p0/gems/siriproxy-0.0.1". I also had to move the "siriproxy" (no extension) file form /bin into place at "/Users/benjamin/.rvm/gems/ruby-1.9.3-p0/bin".

Thanks again flash! I greatly appreciate the help.

Thanks plamoni for all your hard work! Siriproxy is a brilliant idea!

benjaminwood avatar Dec 02 '11 23:12 benjaminwood

Hi Guys, i just want to say thank you for all your help and i have run into alot of issues but you have help me resolve them. my last iss is with cert, im getting the following error.

David-Hernandezs-iMac:~ dhernandez1110$ rvmsudo siriproxy server Starting SiriProxy on port 443.. Create server for iPhone connection /Users/dhernandez1110/.rvm/gems/ruby-1.9.3-p0/gems/eventmachine-0.12.10/lib/em/connection.rb:304:in `block in start_tls': Could not find /Users/dhernandez1110/.siriproxy/server.passless.crt for start_tls (EventMachine::FileNotFoundException)

delrio1110 avatar Dec 03 '11 01:12 delrio1110

server.passless.key server.passless.crt

Make sure these two files are in your Siriproxy folder.

flash66 avatar Dec 03 '11 01:12 flash66

thanks Flash i have finally got it up and running. how do i stop the siri proxy so that i can make changes.

delrio1110 avatar Dec 03 '11 01:12 delrio1110

Control c

Sent from my mobile

On Dec 2, 2011, at 5:47 PM, [email protected] wrote:

thanks Flash i have finally got it up and running. how do i stop the siri proxy so that i can make changes.


Reply to this email directly or view it on GitHub: https://github.com/plamoni/SiriProxy/issues/98#issuecomment-2998363

benjaminwood avatar Dec 03 '11 02:12 benjaminwood

im playing around with siri and the plug-in and i was wondering if i just wanted to add some some new text to the siriproxy example where would i make those changes so that siri will say them. sorry but im new at this.

delrio1110 avatar Dec 03 '11 02:12 delrio1110

Look inside the files and code samples. Play around with them and have some fun. Learning what to do will help you master it. It's just text in the samples. Try changing " Siri Proxy is up and running" to something else. That will get you started.

flash66 avatar Dec 03 '11 02:12 flash66

Hello, I'm stuck at step 5 (siriproxy gencert). So I go in the pkg directory. And I do "gem install rvmsudo siriproxy-0.0.1.gem". But I don't understand what to do after that. When I call "siriproxy gencert" or "siriproxy-0.0.1 gencert" it doesn't work.

aurel6710 avatar Dec 03 '11 09:12 aurel6710

Try rvmsudo siriproxy gencert

flash66 avatar Dec 03 '11 11:12 flash66

I cd to /SiriProxy/pkg then I run rvmsudo gem install siriproxy-0.0.1.gem and I get this.....

Successfully installed siriproxy-0.0.1 1 gem installed Installing ri documentation for siriproxy-0.0.1... file 'lib' not found Installing RDoc documentation for siriproxy-0.0.1... file 'lib' not found

So I thought GREAT its finally installed!!! But when I try to run it "rvmsudo siriproxy server" I get -bash: siriproxy: Command not found.

Im new to ruby and I'm not quite sure exactly what benjaminwood was talking about. I get were to paths are but not sure what files/folders to move.

I had no problem getting it running the initial why with start.rb, but I can't use that anymore :-(

any help would be appreciated

-Nandor690

EDIT: Ok I figured out that "for me at least", I had to move /Users/Nandor/SiriProxy/bin/siriproxy > /Users/Nandor/.rvm/rubies/ruby-1.9.3-p0/bin. That allowed me to start using the "siriproxy" in the command line for the gencerts. I tried to move it to /Users/Nandor/.rvm/gems/ruby-1.9.3-p0/gems/siriproxy-0.0.1but that did nothing for me. Instead of following the path on through the /gems/ directory I had to go through the /rubies/ directory. (Maybe a typo on his part, but not sure) But I can't figure out where the command_line.rb goes so I can fix this error when running "rvmsudo siriproxy server"

rvmsudo siriproxy server /Users/Nandor/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require': cannot load such file -- siriproxy/command_line (LoadError) from /Users/Nandor/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:inrequire' from /Users/Nandor/.rvm/rubies/ruby-1.9.3-p0/bin/siriproxy:4:in `

'

nandor690 avatar Dec 03 '11 12:12 nandor690