Skip to content

Issues with prepare_data.py on windows: cannot import name 'get_class_if_classified_error' from 'torch._export.db.logging'  #23

@qurram-zaheer

Description

@qurram-zaheer

I'm trying to run prepare_data.py on windows and I keep running into this error after the clean email file is generated:

Error in call to target 'panza.llm.local.TransformersLLM':
ImportError("cannot import name 'get_class_if_classified_error' from 'torch._export.db.logging' (C:\\Users\\username\\miniconda3\\envs\\panza2\\lib\\site-packages\\torch\\_export\\db\\logging.py)")

I am on windows. I've install torch 2.2.2 with cuda 12.1 manually. I had to do the manual install because installing from pyproject.toml gives me a Torch not compiled with CUDA enabled error.

Would greatly appreciate any help!

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