ImportError: No module named binstar_client.scripts.cli ? It's there but can't find.

0 views
Skip to first unread message

mail...@gmail.com

unread,
May 25, 2016, 6:42:39 PM5/25/16
to Anaconda - Public
On my Ubuntu 14.04  bit I tried:
$ anaconda search -t conda r-lava
Traceback (most recent call last):
  File "/opt/anaconda/bin/anaconda", line 4, in <module>
    import binstar_client.scripts.cli
ImportError: No module named binstar_client.scripts.cli
So to alleviate it, I ran: 
:/opt/anaconda$ conda update binstar
Fetching package metadata: ....
# All requested packages already installed.
# packages in environment at /opt/anaconda:
binstar                   0.12                          2  
And tried 
>>> import binstar_client
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named binstar_client
So curious I added binstar_client.pth
cat  /opt/anaconda/lib/python2.7/site-packages/binstar_client.pth 
binstar_client
 
$ ls /opt/anaconda/lib/python2.7/site-packages/binstar_client*
/opt/anaconda/lib/python2.7/site-packages/binstar_client.pth

/opt/anaconda/lib/python2.7/site-packages/binstar_client:
commands  inspect_package  tests  utils
Not sure why it's NOT finding binstar_client

BTW: :/opt/anaconda$ find . -name "binstar_client*"
./lib/python2.7/site-packages/binstar_client
./lib/python2.7/site-packages/binstar_client.pth
./pkgs/binstar-0.7.1-py27_0/lib/python2.7/site-packages/binstar_client
./pkgs/anaconda-client-1.4.0-py27_0/lib/python2.7/site-packages/binstar_client
./pkgs/binstar-0.5.3-py27_0/lib/python2.7/site-packages/binstar_client

Is there a way to reinstall anaconda fresh and keep the pkgs? That might be the cleanest of all way.
Thanks much,

John Morrison

unread,
Jun 1, 2016, 10:50:25 AM6/1/16
to Anaconda - Public, mail...@gmail.com
You may have an older version of Anaconda as Binstar was the previous name. The new package should be anaconda-client, this allows you to search from Anaconda Cloud(Anaconda.org). It may be best to update.

    conda update conda
    conda update anaconda
    conda install anaconda-client

You could keep the packages directory and move it into place on a new installation. This is in ~/anaconda/pkgs, you could move this directory, remove Anaconda, reinstall a newer version of Anaconda, then move the directory back into the new installation.

    

S. H. Yoon

unread,
Jun 5, 2016, 12:39:11 PM6/5/16
to John Morrison, Anaconda - Public
Don't think that's simple as that.
I for example have R installed via conda.
That seems to be in subdir of lib/R/bin
I have mv'd directory & created a symbol link  on my Ubuntu & installed a new one. A diff should reveal potential issues.
Still, thank u for the response. It does help me to certain pts.
Reply all
Reply to author
Forward
0 new messages