Closed halidaltuner closed 11 years ago
sudo ppl?
Hey there! Interesting error message you've got there! Not one I've come across yet... So I'm afraid there are a few questions I have to ask right back at you in order to figure out what's wrong.
sudo
? What happens if you just run ppl
on its own?cat ~/.pplconfig
say?@storge sudo ppl output same error.
@h2s heey!
halid@Halids-MacBook-Pro: ~ $ cat ~/.pplconfig [15:28:25]
cat: /Users/halid/.pplconfig: No such file or directory
FAIL: 1
sudo ppl output same error.
I think there might have been a bit of a misunderstanding here. When @storge said "sudo ppl?", he was expressing surprise that you were running ppl with sudo
, but it looked as if he was asking you what the output of sudo ppl
was.
Are you really running the command sudo ppl
and getting an error message? Why are you running it with sudo
?
However, now that we know that you don't have anything in ~/.pplconfig
, I'm wondering if this problem is indicative of a documentation problem with ppl. You're running the command in your home directory: /Users/halid
. ppl works a lot like git, in that a ppl address book is effectively also a git repository. As such, you should create a dedicated directory in which to store your address book data as described by the quick start guide.
If you enter the commands in that guide, do you get the same error?
ppl init ~/contacts
cd ~/contacts
ppl add alice "Alice Adams"
ppl add bob "Bob Brown"
ppl add eve "Eve Edwards"
ppl email alice alice@example.org
ppl phone bob 0123456789
ppl org eve "Red Hat"
echo "[address book]" > ~/.pplconfig
echo path = "`pwd`" >> ~/.pplconfig
hey @h2s i follow your instructions but still same error.
halid@Halids-MacBook-Pro:~% ppl init ~/contacts
/Users/halid/.rvm/gems/ruby-1.9.3-p362/gems/ppl-1.6.0/lib/ppl/adapter/storage/git.rb:13:in `new': Could not find repository from '/Users/halid' (Rugged::RepositoryError)
from /Users/halid/.rvm/gems/ruby-1.9.3-p362/gems/ppl-1.6.0/lib/ppl/adapter/storage/git.rb:13:in `initialize'
from /Users/halid/.rvm/gems/ruby-1.9.3-p362/gems/ppl-1.6.0/lib/ppl/adapter/storage/factory.rb:17:in `new'
from /Users/halid/.rvm/gems/ruby-1.9.3-p362/gems/ppl-1.6.0/lib/ppl/adapter/storage/factory.rb:17:in `load_adapter'
from /Users/halid/.rvm/gems/ruby-1.9.3-p362/gems/ppl-1.6.0/lib/ppl/application/bootstrap.rb:69:in `storage_adapter'
from /Users/halid/.rvm/gems/ruby-1.9.3-p362/gems/ppl-1.6.0/lib/ppl/application/bootstrap.rb:23:in `block in commands'
from /Users/halid/.rvm/gems/ruby-1.9.3-p362/gems/ppl-1.6.0/lib/ppl/application/bootstrap.rb:22:in `each'
from /Users/halid/.rvm/gems/ruby-1.9.3-p362/gems/ppl-1.6.0/lib/ppl/application/bootstrap.rb:22:in `commands'
from /Users/halid/.rvm/gems/ruby-1.9.3-p362/gems/ppl-1.6.0/lib/ppl/application/bootstrap.rb:30:in `command_suite'
from /Users/halid/.rvm/gems/ruby-1.9.3-p362/gems/ppl-1.6.0/lib/ppl/application/bootstrap.rb:53:in `router'
from /Users/halid/.rvm/gems/ruby-1.9.3-p362/gems/ppl-1.6.0/lib/ppl/application/bootstrap.rb:60:in `shell'
from /Users/halid/.rvm/gems/ruby-1.9.3-p362/gems/ppl-1.6.0/bin/ppl:13:in `<top (required)>'
from /Users/halid/.rvm/gems/ruby-1.9.3-p362/bin/ppl:19:in `load'
from /Users/halid/.rvm/gems/ruby-1.9.3-p362/bin/ppl:19:in `<main>'
from /Users/halid/.rvm/gems/ruby-1.9.3-p362/bin/ruby_noexec_wrapper:14:in `eval'
from /Users/halid/.rvm/gems/ruby-1.9.3-p362/bin/ruby_noexec_wrapper:14:in `<main>'
Sorry for the delayed response on this issue. I've been a bit busy with Christmas & New Year celebrations!
I have racked my brain about this problem but I am getting nowhere. It looks like the problem is in some way related to the fact that you're using rvm, but I can't be sure. I don't use rvm, so I haven't tested ppl with it.
I'll install rvm and see what I can dig up, but I can't promise any results as I don't have a machine with OS X on to test thoroughly.
Hi there,
I'm sorry for letting this issue sit dormant for so many months. Nothing I've tried has been sufficient to reproduce the error message you saw, and it seems unlikely that I'll figure it out at this point. I'm going to admit defeat and close this this issue now.
However, if anybody (including the OP) stumbles across this and either already has this problem or manages to figure out how to reproduce it, I would be very grateful if they would post about it in this issue, and I'll reopen it at once.
Thanks, and apologies again for not managing to sort this out for you :(
What should I do?