omegacen / conda-depgraph

A command-line utility to plot the dependency graph of a Conda environment.
GNU Lesser General Public License v3.0
52 stars 5 forks source link

Group object has no attribute 'resultcallback' #9

Closed meekrob closed 2 years ago

meekrob commented 2 years ago

It looks like this package isn't being maintained anymore, but I get this error with any invocation:

$ conda depgraph in mkl Traceback (most recent call last): File "/Users/meekrob/miniconda3/bin/conda-depgraph", line 6, in from conda_depgraph.cli import main File "/Users/meekrob/miniconda3/lib/python3.8/site-packages/conda_depgraph/cli.py", line 31, in @main.resultcallback() AttributeError: 'Group' object has no attribute 'resultcallback'

teake commented 2 years ago

Hi, can you post the output of the following two commands?

conda list --show-channel-urls
conda info
meekrob commented 2 years ago

Hi, thanks for the reply! I've attached the files with those commands run, although the output from the first command is quite extensive.

conda_info.txt conda_list_channels.txt

I wasn't able to make a smaller environment just for this:

conda create -n depgraph-test conda-depgraph -c omagacen Collecting package metadata (current_repodata.json): failed

UnavailableInvalidChannel: The channel is not accessible or is invalid. channel name: omagacen channel url: https://conda.anaconda.org/omagacen error code: 404

teake commented 2 years ago

Thanks for the output. Turns out click 8.1.0 has renamed a deprecated command. I'll release an updated version of conda-depgraph shortly. In the mean time, you could also install an older version of click:

conda install [...] click=7

Btw, you made a typo in the command above; it's omegacen, not omagacen :).

teake commented 2 years ago

I've pushed conda-depgraph 1.2.2 to the omegacen channel with the fix for the above issue.

meekrob commented 2 years ago

Thank you! It's working now. I will showcase it in a training about conda.

On Wed, May 25, 2022 at 3:51 AM Teake Nutma @.***> wrote:

I've pushed conda-depgraph 1.2.2 to the omegacen channel with the fix for the above issue.

— Reply to this email directly, view it on GitHub https://github.com/omegacen/conda-depgraph/issues/9#issuecomment-1137033999, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABCRWYNUJZPLLU54HLOPJF3VLXZZHANCNFSM5WWRJMKQ . You are receiving this because you authored the thread.Message ID: @.***>