Discussion:
[conda] Problems adding/using conda-forge
Skip Montanaro
2017-01-21 21:22:20 UTC
Permalink
I want to give matplotlib 2.0 a whirl, so I added conda-forge to my channel
list:


conda config --add channels conda-forge


then began getting unauthorized errors. It said I needed to execute


anaconda login


So, I tried that, but soon discovered I had no login, so I created one at
https://anaconda.org/


Now the login command works, but I still get a huge mass of unauthorized
messages when I (for example) execute


conda search matplotlib


Here's one message out of an apparently infinite list:


Warning: you may need to login to anaconda.org again with 'anaconda login'
to access private packages(https://conda.anaconda.org/conda-forge/noarch/,
401 Client Error: UNAUTHORIZED for url:
https://conda.anaconda.org/conda-forge/noarch/repodata.json)


While logged in, I --remove'd the conda-forge channel, then added it back.
Same result.


Not sure what to do from here. Ideas?


Thx,


Skip Montanaro
--
You received this message because you are subscribed to the Google Groups "conda - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to conda+***@continuum.io.
To post to this group, send email to ***@continuum.io.
Visit this group at https://groups.google.com/a/continuum.io/group/conda/.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/conda/de036366-a21a-4880-91bc-e6588b1d53ac%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
Chris Barker
2017-01-23 06:44:12 UTC
Permalink
This is very odd -- conda-forge is apublic channel, I don't hink you should
need to be logged in to anaconda.org to use it.

Different story if you want to upload though....

-CHB
Post by Skip Montanaro
I want to give matplotlib 2.0 a whirl, so I added conda-forge to my
conda config --add channels conda-forge
then began getting unauthorized errors. It said I needed to execute
anaconda login
So, I tried that, but soon discovered I had no login, so I created one at
https://anaconda.org/
Now the login command works, but I still get a huge mass of unauthorized
messages when I (for example) execute
conda search matplotlib
Warning: you may need to login to anaconda.org again with 'anaconda
login' to access private packages(https://conda.anaconda.org/conda-forge/
https://conda.anaconda.org/conda-forge/noarch/repodata.json)
While logged in, I --remove'd the conda-forge channel, then added it back.
Same result.
Not sure what to do from here. Ideas?
Thx,
Skip Montanaro
--
You received this message because you are subscribed to the Google Groups
"conda - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an
Visit this group at https://groups.google.com/a/continuum.io/group/conda/.
To view this discussion on the web visit https://groups.google.com/a/
continuum.io/d/msgid/conda/de036366-a21a-4880-91bc-
e6588b1d53ac%40continuum.io
<https://groups.google.com/a/continuum.io/d/msgid/conda/de036366-a21a-4880-91bc-e6588b1d53ac%40continuum.io?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
--
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

***@noaa.gov
--
You received this message because you are subscribed to the Google Groups "conda - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to conda+***@continuum.io.
To post to this group, send email to ***@continuum.io.
Visit this group at https://groups.google.com/a/continuum.io/group/conda/.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/conda/CALGmxEJpyrAGE5u8HxPoTDAx1n0HmoVDumvdiVzX5gcgbcN%2BVg%40mail.gmail.com.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
Kale Franz
2017-01-23 07:11:41 UTC
Permalink
Could you give us the exact error message(s)? Copy and paste. Too much info is better than not enough. Let's figure out what's going on for you.
This is very odd -- conda-forge is apublic channel, I don't hink you should need to be logged in to anaconda.org to use it.
Different story if you want to upload though....
-CHB
Post by Skip Montanaro
conda config --add channels conda-forge
then began getting unauthorized errors. It said I needed to execute
anaconda login
So, I tried that, but soon discovered I had no login, so I created one at https://anaconda.org/
Now the login command works, but I still get a huge mass of unauthorized messages when I (for example) execute
conda search matplotlib
Warning: you may need to login to anaconda.org again with 'anaconda login' to access private packages(https://conda.anaconda.org/conda-forge/noarch/, 401 Client Error: UNAUTHORIZED for url: https://conda.anaconda.org/conda-forge/noarch/repodata.json)
While logged in, I --remove'd the conda-forge channel, then added it back. Same result.
Not sure what to do from here. Ideas?
Thx,
Skip Montanaro
--
You received this message because you are subscribed to the Google Groups "conda - Public" group.
Visit this group at https://groups.google.com/a/continuum.io/group/conda/.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/conda/de036366-a21a-4880-91bc-e6588b1d53ac%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
--
You received this message because you are subscribed to the Google Groups "conda - Public" group.
Visit this group at https://groups.google.com/a/continuum.io/group/conda/.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/conda/CALGmxEJpyrAGE5u8HxPoTDAx1n0HmoVDumvdiVzX5gcgbcN%2BVg%40mail.gmail.com.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
--
You received this message because you are subscribed to the Google Groups "conda - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to conda+***@continuum.io.
To post to this group, send email to ***@continuum.io.
Visit this group at https://groups.google.com/a/continuum.io/group/conda/.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/conda/92354634-77BD-4EDD-BB60-1D91AB4318AE%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
Skip Montanaro
2017-01-23 14:00:32 UTC
Permalink
Post by Kale Franz
Could you give us the exact error message(s)? Copy and paste. Too much
info is better than not enough. Let's figure out what's going on for you.
That was it. Repeated over and over and over again. Spewing out so fast I
couldn't see what was going on until I killed the command. All I elided in
my original post were the sheer number of repetitions. They were all
smashed together without line breaks either. My guess is that it emitted
one such group of messages per package. I added line breaks to the one
instance I showed.

I'm not at home right now (this was on my Mac at home). I'll run it under
the watchful eye of the script command tonight and see if it produces
something meaningful at the end.

Skip
--
You received this message because you are subscribed to the Google Groups "conda - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to conda+***@continuum.io.
To post to this group, send email to ***@continuum.io.
Visit this group at https://groups.google.com/a/continuum.io/group/conda/.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/conda/CANc-5Uy9YQAa2ahDN%2BB4vkpr6FfW0YxPes1WU10f3FxyyqhcFw%40mail.gmail.com.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
Skip Montanaro
2017-01-24 04:09:12 UTC
Permalink
Here's more data. I let "conda search matplotlib" run until it crashed
(maximum recursion depth exceeded). After all the 401 messages
finished spewing out (hundreds or thousands, I didn't bother
counting), I got a bunch of exceptions like this:

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Users/skip/anaconda/lib/python3.5/site-packages/conda/fetch.py",
line 111, in fetch_repodata
resp.raise_for_status()
File "/Users/skip/anaconda/lib/python3.5/site-packages/requests/models.py",
line 844, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 401 Client Error: UNAUTHORIZED for url:
https://conda.anaconda.org/conda-forge/osx-64/repodata.json

Finally, I got this traceback (elided a bunch of identical lines):

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Users/skip/anaconda/envs/anaconda/bin/conda", line 6, in <module>
sys.exit(main())
File "/Users/skip/anaconda/lib/python3.5/site-packages/conda/cli/main.py",
line 120, in main
exit_code = args_func(args, p)
File "/Users/skip/anaconda/lib/python3.5/site-packages/conda/cli/main.py",
line 130, in args_func
exit_code = args.func(args, p)
File "/Users/skip/anaconda/lib/python3.5/site-packages/conda/cli/main_search.py",
line 123, in execute
execute_search(args, parser)
File "/Users/skip/anaconda/lib/python3.5/site-packages/conda/cli/main_search.py",
line 172, in execute_search
unknown=args.unknown, json=args.json, offline=args.offline)
File "/Users/skip/anaconda/lib/python3.5/site-packages/conda/cli/common.py",
line 622, in get_index_trap
return get_index(*args, **kwargs)
File "/Users/skip/anaconda/lib/python3.5/site-packages/conda/api.py",
line 26, in get_index
index = fetch_index(channel_urls, use_cache=use_cache, unknown=unknown)
File "/Users/skip/anaconda/lib/python3.5/site-packages/conda/fetch.py",
line 293, in fetch_index
repodatas = [(u, f.result()) for u, f in zip(urls, futures)]
File "/Users/skip/anaconda/lib/python3.5/site-packages/conda/fetch.py",
line 293, in <listcomp>
repodatas = [(u, f.result()) for u, f in zip(urls, futures)]
File "/Users/skip/anaconda/lib/python3.5/concurrent/futures/_base.py",
line 405, in result
return self.__get_result()
File "/Users/skip/anaconda/lib/python3.5/concurrent/futures/_base.py",
line 357, in __get_result
raise self._exception
File "/Users/skip/anaconda/lib/python3.5/concurrent/futures/thread.py",
line 55, in run
result = self.fn(*self.args, **self.kwargs)
File "/Users/skip/anaconda/lib/python3.5/site-packages/conda/fetch.py",
line 68, in func
res = f(*args, **kwargs)
File "/Users/skip/anaconda/lib/python3.5/site-packages/conda/fetch.py",
line 154, in fetch_repodata
use_cache=use_cache, session=session)
...
File "/Users/skip/anaconda/lib/python3.5/site-packages/conda/fetch.py",
line 68, in func
res = f(*args, **kwargs)
File "/Users/skip/anaconda/lib/python3.5/site-packages/conda/fetch.py",
line 110, in fetch_repodata
resp = session.get(url + filename, headers=headers, proxies=session.proxies)
File "/Users/skip/anaconda/lib/python3.5/site-packages/requests/sessions.py",
line 487, in get
return self.request('GET', url, **kwargs)
File "/Users/skip/anaconda/lib/python3.5/site-packages/requests/sessions.py",
line 475, in request
resp = self.send(prep, **send_kwargs)
File "/Users/skip/anaconda/lib/python3.5/site-packages/requests/sessions.py",
line 585, in send
r = adapter.send(request, **kwargs)
File "/Users/skip/anaconda/lib/python3.5/site-packages/requests/adapters.py",
line 483, in send
return self.build_response(request, resp)
File "/Users/skip/anaconda/lib/python3.5/site-packages/requests/adapters.py",
line 234, in build_response
response = Response()
File "/Users/skip/anaconda/lib/python3.5/site-packages/requests/models.py",
line 554, in __init__
self.headers = CaseInsensitiveDict()
File "/Users/skip/anaconda/lib/python3.5/site-packages/requests/structures.py",
line 48, in __init__
self.update(data, **kwargs)
File "/Users/skip/anaconda/lib/python3.5/_collections_abc.py", line
771, in update
if isinstance(other, Mapping):
File "/Users/skip/anaconda/lib/python3.5/abc.py", line 182, in
__instancecheck__
if subclass in cls._abc_cache:
File "/Users/skip/anaconda/lib/python3.5/_weakrefset.py", line 72,
in __contains__
wr = ref(item)
RecursionError: maximum recursion depth exceeded while calling a Python object

Does that ring any bells with anyone? Should I just delete my Anaconda
install and start afresh? (I have been experiencing a fair bit of
flakiness on on ancient laptop, so disk errors are not 100% out of the
question, though Drive Genius isn't complaining at the moment. I am
waiting for a replacement which will run Linux.)

Thx,

Skip
--
You received this message because you are subscribed to the Google Groups "conda - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to conda+***@continuum.io.
To post to this group, send email to ***@continuum.io.
Visit this group at https://groups.google.com/a/continuum.io/group/conda/.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/conda/CANc-5UxDvcx13jwzf4kshA0GaywHHfxb-ipBpV%3DjwpUn_C7SOw%40mail.gmail.com.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
Dharhas Pothina
2017-01-24 04:44:21 UTC
Permalink
Maybe check if to see if you have anything weird in your .condarc file or
just delete it. Folks have had issues before if a bad channel name existed
in the .condarc config file.

- dharhas
Post by Skip Montanaro
Here's more data. I let "conda search matplotlib" run until it crashed
(maximum recursion depth exceeded). After all the 401 messages
finished spewing out (hundreds or thousands, I didn't bother
File "/Users/skip/anaconda/lib/python3.5/site-packages/conda/fetch.py",
line 111, in fetch_repodata
resp.raise_for_status()
File
"/Users/skip/anaconda/lib/python3.5/site-packages/requests/models.py",
line 844, in raise_for_status
raise HTTPError(http_error_msg, response=self)
https://conda.anaconda.org/conda-forge/osx-64/repodata.json
File "/Users/skip/anaconda/envs/anaconda/bin/conda", line 6, in <module>
sys.exit(main())
File
"/Users/skip/anaconda/lib/python3.5/site-packages/conda/cli/main.py",
line 120, in main
exit_code = args_func(args, p)
File
"/Users/skip/anaconda/lib/python3.5/site-packages/conda/cli/main.py",
line 130, in args_func
exit_code = args.func(args, p)
File
"/Users/skip/anaconda/lib/python3.5/site-packages/conda/cli/main_search.py",
line 123, in execute
execute_search(args, parser)
File
"/Users/skip/anaconda/lib/python3.5/site-packages/conda/cli/main_search.py",
line 172, in execute_search
unknown=args.unknown, json=args.json, offline=args.offline)
File
"/Users/skip/anaconda/lib/python3.5/site-packages/conda/cli/common.py",
line 622, in get_index_trap
return get_index(*args, **kwargs)
File "/Users/skip/anaconda/lib/python3.5/site-packages/conda/api.py",
line 26, in get_index
index = fetch_index(channel_urls, use_cache=use_cache, unknown=unknown)
File "/Users/skip/anaconda/lib/python3.5/site-packages/conda/fetch.py",
line 293, in fetch_index
repodatas = [(u, f.result()) for u, f in zip(urls, futures)]
File "/Users/skip/anaconda/lib/python3.5/site-packages/conda/fetch.py",
line 293, in <listcomp>
repodatas = [(u, f.result()) for u, f in zip(urls, futures)]
File "/Users/skip/anaconda/lib/python3.5/concurrent/futures/_base.py",
line 405, in result
return self.__get_result()
File "/Users/skip/anaconda/lib/python3.5/concurrent/futures/_base.py",
line 357, in __get_result
raise self._exception
File "/Users/skip/anaconda/lib/python3.5/concurrent/futures/thread.py",
line 55, in run
result = self.fn(*self.args, **self.kwargs)
File "/Users/skip/anaconda/lib/python3.5/site-packages/conda/fetch.py",
line 68, in func
res = f(*args, **kwargs)
File "/Users/skip/anaconda/lib/python3.5/site-packages/conda/fetch.py",
line 154, in fetch_repodata
use_cache=use_cache, session=session)
...
File "/Users/skip/anaconda/lib/python3.5/site-packages/conda/fetch.py",
line 68, in func
res = f(*args, **kwargs)
File "/Users/skip/anaconda/lib/python3.5/site-packages/conda/fetch.py",
line 110, in fetch_repodata
resp = session.get(url + filename, headers=headers,
proxies=session.proxies)
File
"/Users/skip/anaconda/lib/python3.5/site-packages/requests/sessions.py",
line 487, in get
return self.request('GET', url, **kwargs)
File
"/Users/skip/anaconda/lib/python3.5/site-packages/requests/sessions.py",
line 475, in request
resp = self.send(prep, **send_kwargs)
File
"/Users/skip/anaconda/lib/python3.5/site-packages/requests/sessions.py",
line 585, in send
r = adapter.send(request, **kwargs)
File
"/Users/skip/anaconda/lib/python3.5/site-packages/requests/adapters.py",
line 483, in send
return self.build_response(request, resp)
File
"/Users/skip/anaconda/lib/python3.5/site-packages/requests/adapters.py",
line 234, in build_response
response = Response()
File
"/Users/skip/anaconda/lib/python3.5/site-packages/requests/models.py",
line 554, in __init__
self.headers = CaseInsensitiveDict()
File
"/Users/skip/anaconda/lib/python3.5/site-packages/requests/structures.py",
line 48, in __init__
self.update(data, **kwargs)
File "/Users/skip/anaconda/lib/python3.5/_collections_abc.py", line
771, in update
File "/Users/skip/anaconda/lib/python3.5/abc.py", line 182, in
__instancecheck__
File "/Users/skip/anaconda/lib/python3.5/_weakrefset.py", line 72,
in __contains__
wr = ref(item)
RecursionError: maximum recursion depth exceeded while calling a Python object
Does that ring any bells with anyone? Should I just delete my Anaconda
install and start afresh? (I have been experiencing a fair bit of
flakiness on on ancient laptop, so disk errors are not 100% out of the
question, though Drive Genius isn't complaining at the moment. I am
waiting for a replacement which will run Linux.)
Thx,
Skip
--
You received this message because you are subscribed to the Google Groups
"conda - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an
Visit this group at https://groups.google.com/a/continuum.io/group/conda/.
To view this discussion on the web visit
https://groups.google.com/a/continuum.io/d/msgid/conda/CANc-5UxDvcx13jwzf4kshA0GaywHHfxb-ipBpV%3DjwpUn_C7SOw%40mail.gmail.com
.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
--
You received this message because you are subscribed to the Google Groups "conda - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to conda+***@continuum.io.
To post to this group, send email to ***@continuum.io.
Visit this group at https://groups.google.com/a/continuum.io/group/conda/.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/conda/CAG8wNrgwjQzPXY1j_DBoghq_0QQYED%3DCv39yqWP1AYzCPhwLtw%40mail.gmail.com.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
Kale Franz
2017-01-24 04:48:05 UTC
Permalink
I think you're just using an old version of conda. Probably something less
than 4.2.10.

Please advance to either 4.2.16 or 4.3.7.

conda update conda
Post by Dharhas Pothina
Maybe check if to see if you have anything weird in your .condarc file or
just delete it. Folks have had issues before if a bad channel name existed
in the .condarc config file.
- dharhas
Post by Skip Montanaro
Here's more data. I let "conda search matplotlib" run until it crashed
(maximum recursion depth exceeded). After all the 401 messages
finished spewing out (hundreds or thousands, I didn't bother
File "/Users/skip/anaconda/lib/python3.5/site-packages/conda/fetch.py",
line 111, in fetch_repodata
resp.raise_for_status()
File "/Users/skip/anaconda/lib/python3.5/site-packages/
requests/models.py",
line 844, in raise_for_status
raise HTTPError(http_error_msg, response=self)
https://conda.anaconda.org/conda-forge/osx-64/repodata.json
File "/Users/skip/anaconda/envs/anaconda/bin/conda", line 6, in <module>
sys.exit(main())
File "/Users/skip/anaconda/lib/python3.5/site-packages/conda/
cli/main.py",
line 120, in main
exit_code = args_func(args, p)
File "/Users/skip/anaconda/lib/python3.5/site-packages/conda/
cli/main.py",
line 130, in args_func
exit_code = args.func(args, p)
File "/Users/skip/anaconda/lib/python3.5/site-packages/conda/
cli/main_search.py",
line 123, in execute
execute_search(args, parser)
File "/Users/skip/anaconda/lib/python3.5/site-packages/conda/
cli/main_search.py",
line 172, in execute_search
unknown=args.unknown, json=args.json, offline=args.offline)
File "/Users/skip/anaconda/lib/python3.5/site-packages/conda/
cli/common.py",
line 622, in get_index_trap
return get_index(*args, **kwargs)
File "/Users/skip/anaconda/lib/python3.5/site-packages/conda/api.py",
line 26, in get_index
index = fetch_index(channel_urls, use_cache=use_cache,
unknown=unknown)
File "/Users/skip/anaconda/lib/python3.5/site-packages/conda/fetch.py",
line 293, in fetch_index
repodatas = [(u, f.result()) for u, f in zip(urls, futures)]
File "/Users/skip/anaconda/lib/python3.5/site-packages/conda/fetch.py",
line 293, in <listcomp>
repodatas = [(u, f.result()) for u, f in zip(urls, futures)]
File "/Users/skip/anaconda/lib/python3.5/concurrent/futures/_base.py",
line 405, in result
return self.__get_result()
File "/Users/skip/anaconda/lib/python3.5/concurrent/futures/_base.py",
line 357, in __get_result
raise self._exception
File "/Users/skip/anaconda/lib/python3.5/concurrent/futures/thread.py",
line 55, in run
result = self.fn(*self.args, **self.kwargs)
File "/Users/skip/anaconda/lib/python3.5/site-packages/conda/fetch.py",
line 68, in func
res = f(*args, **kwargs)
File "/Users/skip/anaconda/lib/python3.5/site-packages/conda/fetch.py",
line 154, in fetch_repodata
use_cache=use_cache, session=session)
...
File "/Users/skip/anaconda/lib/python3.5/site-packages/conda/fetch.py",
line 68, in func
res = f(*args, **kwargs)
File "/Users/skip/anaconda/lib/python3.5/site-packages/conda/fetch.py",
line 110, in fetch_repodata
resp = session.get(url + filename, headers=headers,
proxies=session.proxies)
File "/Users/skip/anaconda/lib/python3.5/site-packages/
requests/sessions.py",
line 487, in get
return self.request('GET', url, **kwargs)
File "/Users/skip/anaconda/lib/python3.5/site-packages/
requests/sessions.py",
line 475, in request
resp = self.send(prep, **send_kwargs)
File "/Users/skip/anaconda/lib/python3.5/site-packages/
requests/sessions.py",
line 585, in send
r = adapter.send(request, **kwargs)
File "/Users/skip/anaconda/lib/python3.5/site-packages/
requests/adapters.py",
line 483, in send
return self.build_response(request, resp)
File "/Users/skip/anaconda/lib/python3.5/site-packages/
requests/adapters.py",
line 234, in build_response
response = Response()
File "/Users/skip/anaconda/lib/python3.5/site-packages/
requests/models.py",
line 554, in __init__
self.headers = CaseInsensitiveDict()
File "/Users/skip/anaconda/lib/python3.5/site-packages/
requests/structures.py",
line 48, in __init__
self.update(data, **kwargs)
File "/Users/skip/anaconda/lib/python3.5/_collections_abc.py", line
771, in update
File "/Users/skip/anaconda/lib/python3.5/abc.py", line 182, in
__instancecheck__
File "/Users/skip/anaconda/lib/python3.5/_weakrefset.py", line 72,
in __contains__
wr = ref(item)
RecursionError: maximum recursion depth exceeded while calling a Python object
Does that ring any bells with anyone? Should I just delete my Anaconda
install and start afresh? (I have been experiencing a fair bit of
flakiness on on ancient laptop, so disk errors are not 100% out of the
question, though Drive Genius isn't complaining at the moment. I am
waiting for a replacement which will run Linux.)
Thx,
Skip
--
You received this message because you are subscribed to the Google Groups
"conda - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an
Visit this group at https://groups.google.com/a/continuum.io/group/conda/
.
To view this discussion on the web visit https://groups.google.com/a/
continuum.io/d/msgid/conda/CANc-5UxDvcx13jwzf4kshA0GaywHHfxb-
ipBpV%3DjwpUn_C7SOw%40mail.gmail.com.
For more options, visit https://groups.google.com/a/continuum.io/d/optout
.
--
*Kale J. Franz, PhD*
*Conda Tech Lead*
****@continuum.io <***@continuum.io>*
*@kalefranz <https://twitter.com/kalefranz>*

<http://continuum.io/> <http://continuum.io/>
<http://continuum.io/>
221 W 6th St | Suite 1550 | Austin, TX 78701
--
You received this message because you are subscribed to the Google Groups "conda - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to conda+***@continuum.io.
To post to this group, send email to ***@continuum.io.
Visit this group at https://groups.google.com/a/continuum.io/group/conda/.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/conda/CAOmq0fgpjmt_nLSABm4XUut0MXmkqcC6Y_fAa5jwakZNZTCxZg%40mail.gmail.com.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
Kale Franz
2017-01-24 04:49:42 UTC
Permalink
P.S. you might have to temporarily remove that conda-forge channel from
your condarc file.

conda config --remove channels conda-forge
Post by Kale Franz
I think you're just using an old version of conda. Probably something
less than 4.2.10.
Please advance to either 4.2.16 or 4.3.7.
conda update conda
Post by Dharhas Pothina
Maybe check if to see if you have anything weird in your .condarc file or
just delete it. Folks have had issues before if a bad channel name existed
in the .condarc config file.
- dharhas
Post by Skip Montanaro
Here's more data. I let "conda search matplotlib" run until it crashed
(maximum recursion depth exceeded). After all the 401 messages
finished spewing out (hundreds or thousands, I didn't bother
File "/Users/skip/anaconda/lib/python3.5/site-packages/conda/fetc
h.py",
line 111, in fetch_repodata
resp.raise_for_status()
File "/Users/skip/anaconda/lib/python3.5/site-packages/requests/
models.py",
line 844, in raise_for_status
raise HTTPError(http_error_msg, response=self)
https://conda.anaconda.org/conda-forge/osx-64/repodata.json
File "/Users/skip/anaconda/envs/anaconda/bin/conda", line 6, in <module>
sys.exit(main())
File "/Users/skip/anaconda/lib/python3.5/site-packages/conda/cli/
main.py",
line 120, in main
exit_code = args_func(args, p)
File "/Users/skip/anaconda/lib/python3.5/site-packages/conda/cli/
main.py",
line 130, in args_func
exit_code = args.func(args, p)
File "/Users/skip/anaconda/lib/python3.5/site-packages/conda/cli/
main_search.py",
line 123, in execute
execute_search(args, parser)
File "/Users/skip/anaconda/lib/python3.5/site-packages/conda/cli/
main_search.py",
line 172, in execute_search
unknown=args.unknown, json=args.json, offline=args.offline)
File "/Users/skip/anaconda/lib/python3.5/site-packages/conda/cli/
common.py",
line 622, in get_index_trap
return get_index(*args, **kwargs)
File "/Users/skip/anaconda/lib/python3.5/site-packages/conda/api.py",
line 26, in get_index
index = fetch_index(channel_urls, use_cache=use_cache,
unknown=unknown)
File "/Users/skip/anaconda/lib/python3.5/site-packages/conda/fetc
h.py",
line 293, in fetch_index
repodatas = [(u, f.result()) for u, f in zip(urls, futures)]
File "/Users/skip/anaconda/lib/python3.5/site-packages/conda/fetc
h.py",
line 293, in <listcomp>
repodatas = [(u, f.result()) for u, f in zip(urls, futures)]
File "/Users/skip/anaconda/lib/python3.5/concurrent/futures/_base.py",
line 405, in result
return self.__get_result()
File "/Users/skip/anaconda/lib/python3.5/concurrent/futures/_base.py",
line 357, in __get_result
raise self._exception
File "/Users/skip/anaconda/lib/python3.5/concurrent/futures/threa
d.py",
line 55, in run
result = self.fn(*self.args, **self.kwargs)
File "/Users/skip/anaconda/lib/python3.5/site-packages/conda/fetc
h.py",
line 68, in func
res = f(*args, **kwargs)
File "/Users/skip/anaconda/lib/python3.5/site-packages/conda/fetc
h.py",
line 154, in fetch_repodata
use_cache=use_cache, session=session)
...
File "/Users/skip/anaconda/lib/python3.5/site-packages/conda/fetc
h.py",
line 68, in func
res = f(*args, **kwargs)
File "/Users/skip/anaconda/lib/python3.5/site-packages/conda/fetc
h.py",
line 110, in fetch_repodata
resp = session.get(url + filename, headers=headers,
proxies=session.proxies)
File "/Users/skip/anaconda/lib/python3.5/site-packages/requests/
sessions.py",
line 487, in get
return self.request('GET', url, **kwargs)
File "/Users/skip/anaconda/lib/python3.5/site-packages/requests/
sessions.py",
line 475, in request
resp = self.send(prep, **send_kwargs)
File "/Users/skip/anaconda/lib/python3.5/site-packages/requests/
sessions.py",
line 585, in send
r = adapter.send(request, **kwargs)
File "/Users/skip/anaconda/lib/python3.5/site-packages/requests/
adapters.py",
line 483, in send
return self.build_response(request, resp)
File "/Users/skip/anaconda/lib/python3.5/site-packages/requests/
adapters.py",
line 234, in build_response
response = Response()
File "/Users/skip/anaconda/lib/python3.5/site-packages/requests/
models.py",
line 554, in __init__
self.headers = CaseInsensitiveDict()
File "/Users/skip/anaconda/lib/python3.5/site-packages/requests/
structures.py",
line 48, in __init__
self.update(data, **kwargs)
File "/Users/skip/anaconda/lib/python3.5/_collections_abc.py", line
771, in update
File "/Users/skip/anaconda/lib/python3.5/abc.py", line 182, in
__instancecheck__
File "/Users/skip/anaconda/lib/python3.5/_weakrefset.py", line 72,
in __contains__
wr = ref(item)
RecursionError: maximum recursion depth exceeded while calling a Python object
Does that ring any bells with anyone? Should I just delete my Anaconda
install and start afresh? (I have been experiencing a fair bit of
flakiness on on ancient laptop, so disk errors are not 100% out of the
question, though Drive Genius isn't complaining at the moment. I am
waiting for a replacement which will run Linux.)
Thx,
Skip
--
You received this message because you are subscribed to the Google
Groups "conda - Public" group.
To unsubscribe from this group and stop receiving emails from it, send
Visit this group at https://groups.google.com/a/co
ntinuum.io/group/conda/.
To view this discussion on the web visit https://groups.google.com/a/co
ntinuum.io/d/msgid/conda/CANc-5UxDvcx13jwzf4kshA0GaywHHfxb-i
pBpV%3DjwpUn_C7SOw%40mail.gmail.com.
For more options, visit https://groups.google.com/a/co
ntinuum.io/d/optout.
--
*Kale J. Franz, PhD*
*Conda Tech Lead*
<http://continuum.io/> <http://continuum.io/>
<http://continuum.io/>
221 W 6th St | Suite 1550 | Austin, TX 78701
--
*Kale J. Franz, PhD*
*Conda Tech Lead*
****@continuum.io <***@continuum.io>*
*@kalefranz <https://twitter.com/kalefranz>*

<http://continuum.io/> <http://continuum.io/>
<http://continuum.io/>
221 W 6th St | Suite 1550 | Austin, TX 78701
--
You received this message because you are subscribed to the Google Groups "conda - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to conda+***@continuum.io.
To post to this group, send email to ***@continuum.io.
Visit this group at https://groups.google.com/a/continuum.io/group/conda/.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/conda/CAOmq0fgQ70nBVTUe08ORyGPnLgx3ExiBaa9gqbv1GrKghOeC8A%40mail.gmail.com.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
Skip Montanaro
2017-01-24 11:26:36 UTC
Permalink
Dharhas> Maybe check if to see if you have anything weird in your
.condarc file or
Dharhas> just delete it. Folks have had issues before if a bad channel
name existed
Dharhas> in the .condarc config file.

Seems fairly innocuous:

(anaconda) ~% cat ~/.condarc
channels:
- conda-forge
- defaults

Still, removing it (well, moving it out of the way) solved my problem.

Kale> I think you're just using an old version of conda. Probably
something less than 4.2.10.

Kale> Please advance to either 4.2.16 or 4.3.7.

That also seems to be true:

% conda --version
conda 4.1.6

Updating it initially failed:

% conda update conda
Error: Package 'conda' is not installed in /Users/skip/anaconda/envs/anaconda

In fact I needed to deactivate my current environment to install it.

Now that conda is at a proper version:

(anaconda) ~% conda --version
conda 4.3.7

I don't get recursion errors, but still can't search matplotlib with
the conda-forge in the mix:

~% mv .condarc- .condarc
~% type activate
activate is a function
activate ()
{
. /Users/skip/anaconda/bin/activate "$@"
}
~% activate anaconda
(anaconda) ~% conda search matplotlib
Fetching package metadata ...

CondaHTTPError: HTTP 401 UNAUTHORIZED for url
<https://conda.anaconda.org/t/sm-f174968d-6e7c-419a-ba8e-a9f2177c417e/conda-forge/osx-64/repodata.json>
Elapsed: 00:00.373658

The remote server has indicated you are using invalid credentials for
this channel.

If the remote site is anaconda.org or follows the Anaconda Server API, you
will need to
(a) login to the site with `anaconda login`, or
(b) provide conda with a valid token directly.

Further configuration help can be found at <https://conda.io/docs/config.html>.

Move .condarc out of the way and I'm back in business, albeit sans
matplotlib 2.0.0.

Add conda-forge channel again (starting from an empty .condarc file),
and the error returns (this time searching from the root environment):

~% ~/anaconda/bin/conda config --add channels conda-forge
~% cat ~/.condarc
channels:
- conda-forge
- defaults
~% ~/anaconda/bin/conda search matplotlib
Fetching package metadata ...

CondaHTTPError: HTTP 401 UNAUTHORIZED for url
<https://conda.anaconda.org/t/sm-f174968d-6e7c-419a-ba8e-a9f2177c417e/conda-forge/osx-64/repodata.json>
Elapsed: 00:00.728581

The remote server has indicated you are using invalid credentials for
this channel.

If the remote site is anaconda.org or follows the Anaconda Server API, you
will need to
(a) login to the site with `anaconda login`, or
(b) provide conda with a valid token directly.

Further configuration help can be found at <https://conda.io/docs/config.html>.

Stopping at that point. Opened a ticket, per Ian...

https://github.com/ContinuumIO/anaconda-issues/issues/1379

S
--
You received this message because you are subscribed to the Google Groups "conda - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to conda+***@continuum.io.
To post to this group, send email to ***@continuum.io.
Visit this group at https://groups.google.com/a/continuum.io/group/conda/.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/conda/CANc-5UyzPpSt8nNO8bSfUJ__sVtDcpEYQukOOR%2Bj7tVaT6oPaA%40mail.gmail.com.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
Colin Brislawn
2017-02-03 20:00:01 UTC
Permalink
I've just encountered this issue too, and am also troubleshooting without
much luck.

Any updates?

Colin
Post by Skip Montanaro
Dharhas> Maybe check if to see if you have anything weird in your
.condarc file or
Dharhas> just delete it. Folks have had issues before if a bad channel
name existed
Dharhas> in the .condarc config file.
(anaconda) ~% cat ~/.condarc
- conda-forge
- defaults
Still, removing it (well, moving it out of the way) solved my problem.
Kale> I think you're just using an old version of conda. Probably
something less than 4.2.10.
Kale> Please advance to either 4.2.16 or 4.3.7.
% conda --version
conda 4.1.6
% conda update conda
Error: Package 'conda' is not installed in
/Users/skip/anaconda/envs/anaconda
In fact I needed to deactivate my current environment to install it.
(anaconda) ~% conda --version
conda 4.3.7
I don't get recursion errors, but still can't search matplotlib with
~% mv .condarc- .condarc
~% type activate
activate is a function
activate ()
{
}
~% activate anaconda
(anaconda) ~% conda search matplotlib
Fetching package metadata ...
CondaHTTPError: HTTP 401 UNAUTHORIZED for url
<
https://conda.anaconda.org/t/sm-f174968d-6e7c-419a-ba8e-a9f2177c417e/conda-forge/osx-64/repodata.json>
Elapsed: 00:00.373658
The remote server has indicated you are using invalid credentials for
this channel.
If the remote site is anaconda.org or follows the Anaconda Server API, you
will need to
(a) login to the site with `anaconda login`, or
(b) provide conda with a valid token directly.
Further configuration help can be found at <
https://conda.io/docs/config.html>.
Move .condarc out of the way and I'm back in business, albeit sans
matplotlib 2.0.0.
Add conda-forge channel again (starting from an empty .condarc file),
~% ~/anaconda/bin/conda config --add channels conda-forge
~% cat ~/.condarc
- conda-forge
- defaults
~% ~/anaconda/bin/conda search matplotlib
Fetching package metadata ...
CondaHTTPError: HTTP 401 UNAUTHORIZED for url
<
https://conda.anaconda.org/t/sm-f174968d-6e7c-419a-ba8e-a9f2177c417e/conda-forge/osx-64/repodata.json>
Elapsed: 00:00.728581
The remote server has indicated you are using invalid credentials for
this channel.
If the remote site is anaconda.org or follows the Anaconda Server API, you
will need to
(a) login to the site with `anaconda login`, or
(b) provide conda with a valid token directly.
Further configuration help can be found at <
https://conda.io/docs/config.html>.
Stopping at that point. Opened a ticket, per Ian...
https://github.com/ContinuumIO/anaconda-issues/issues/1379
S
--
You received this message because you are subscribed to the Google Groups "conda - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to conda+***@continuum.io.
To post to this group, send email to ***@continuum.io.
Visit this group at https://groups.google.com/a/continuum.io/group/conda/.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/conda/b138edca-a6d8-47dd-9313-261f2cb6c60a%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
Loading...