Skip to content

Exca version update conflict with conda #133

@BelCorentin

Description

@BelCorentin

I had the following error with exca

----> 1 from exca.helpers import DiscriminatedModel

ImportError: cannot import name 'DiscriminatedModel' from 'exca.helpers' (/home/co/miniconda3/envs/neuralset/lib/python3.12/site-packages/exca/helpers.py)

-> helpers.DiscriminatedModel Has been added to later versions of exca

The problem was that even if my pip list | grep exca showed an updated version, the source code in my site-packages was still old.

Which I could only fix by deleting the exca folder in my site-packages miniconda env (uninstalling / reinstalling didn't fix anything, even if I was on the last version of exca), then reinstalling.

Happened to me on 2 different conda envs, different machines. Fix is easy though, just posting this in case someone encounters the same issue, so they find a quick fix.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions