opencompass icon indicating copy to clipboard operation
opencompass copied to clipboard

[Bug] AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter'?

Open A-A-T-i-P opened this issue 1 year ago • 1 comments

Prerequisite

Type

I'm evaluating with the officially supported tasks/models/datasets.

Environment

ubuntu 22.04

Reproduces the problem - code/configuration sample

conda create --name opencompass python=3.10 pytorch torchvision pytorch-cuda -c nvidia -c pytorch -y

Reproduces the problem - command or script

1. conda create --name opencompass python=3.10 pytorch torchvision pytorch-cuda -c nvidia -c pytorch -y
2. git clone https://github.com/open-compass/opencompass.git
3. cd opencompass
4. pip install  -e .

Reproduces the problem - error message

AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter'?

Other information

Please upgrade python=3.11 when install opencompass, use this command with conda:

conda create --name opencompass python=3.11 pytorch torchvision pytorch-cuda -c nvidia -c pytorch -y

A-A-T-i-P avatar Mar 28 '24 07:03 A-A-T-i-P

Please provide the detailed config you use

bittersweet1999 avatar Apr 28 '24 17:04 bittersweet1999