zeekay / soundcloud-cli

Soundcloud command-line interface.
MIT License
47 stars 13 forks source link

Version error #5

Closed mobiuscoffee closed 9 years ago

mobiuscoffee commented 9 years ago

I updated, or at least I think I updated, soundcloud-cli with pip, but sc -v still says it's 0.2.6

$ sc -v
sc 0.2.6

I tried fully uninstalling and reinstalling the program, but nothing changed.

zeekay commented 9 years ago

Try pip install --upgrade soundcloud-cli.

mobiuscoffee commented 9 years ago

I tried it earlier, but I just tried it again:

$ pip install --upgrade soundcloud-cli
Requirement already up-to-date: soundcloud-cli in /usr/local/lib/python2.7/dist-packages
Requirement already up-to-date: soundcloud in /usr/local/lib/python2.7/dist-packages (from soundcloud-cli)
Requirement already up-to-date: requests>=0.14.0 in /usr/local/lib/python2.7/dist-packages (from soundcloud->soundcloud-cli)
Requirement already up-to-date: fudge==1.0.3 in /usr/local/lib/python2.7/dist-packages (from soundcloud->soundcloud-cli)
Requirement already up-to-date: simplejson>=2.0 in /usr/local/lib/python2.7/dist-packages (from soundcloud->soundcloud-cli)
$ sc -v
sc 0.2.6
zeekay commented 9 years ago

What does which sc report? Is it pointed to the version you just installed?

mobiuscoffee commented 9 years ago
$ which sc
/usr/local/bin/sc

I'm not sure how to tell if it's pointed to the version I just installed. How would I check that?

zeekay commented 9 years ago

Check if it's a symlink or the file that was just installed:

› ls -l `which sc`
-rwxr-xr-x  1 zk  admin  199 Jul  7 16:32 /usr/local/bin/sc*

Not a symlink, so check contents:

› cat `which sc`
#!/usr/local/opt/python/bin/python2.7
# EASY-INSTALL-SCRIPT: 'soundcloud-cli==0.2.7','sc'
__requires__ = 'soundcloud-cli==0.2.7'
__import__('pkg_resources').run_script('soundcloud-cli==0.2.7', 'sc')

Everything is good.

mobiuscoffee commented 9 years ago

I put in those commands, but I'm not sure what it means. cat which sc gave me a slightly different output:

$ ls -l `which sc`
-rwxr-xr-x 1 root root 60 juil.  9 21:51 /usr/local/bin/sc
$ cat `which sc`
#!/usr/bin/python
from soundcloud_cli import cli
cli.main()
zeekay commented 9 years ago

You probably have multiple versions installed try to do pip uninstall soundcloud-cli until you see:

› pip uninstall soundcloud-cli
Cannot uninstall requirement soundcloud-cli, not installed

Manually rm the file in /usr/local/bin and install again.

mobiuscoffee commented 9 years ago

Confirmed fixed!

sc -v
sc 0.2.7