DNABERT icon indicating copy to clipboard operation
DNABERT copied to clipboard

Importing error of Transformers

Open Rofidagamal opened this issue 1 year ago • 4 comments

ImportError: cannot import name 'DNATokenizer' from 'transformers' (/usr/local/lib/python3.9/dist-packages/transformers/init.py)

I try several tries to get it put there is no solution, how can I solve it ?

Rofidagamal avatar May 03 '23 22:05 Rofidagamal

Have you solved the problem yet?

OPUS-Lightphenexx avatar Aug 07 '23 07:08 OPUS-Lightphenexx

No

Rofidagamal avatar Aug 07 '23 08:08 Rofidagamal

You could try upgrading the transformer module using pip install transformers --upgrade, and then it worked out fine. but however, i reproduced the model all over again with a new one.

OPUS-Lightphenexx avatar Aug 07 '23 12:08 OPUS-Lightphenexx

I tried "pip install transformers --upgrade", and still not working

nehmea avatar Apr 18 '24 03:04 nehmea