question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AttributeError with latest version of Transformers

See original GitHub issue

Hi with the latest version of transformers i.e 3.1.0 I see the following error when I try to import Summarizer

from summarizer import Summarizer

AttributeError: module 'transformers.utils.logging' has no attribute 'basicConfig'

Not sure if something broke because of changes to the base transformer library? Works fine with 2.2.x though.

Any insights would be appreciated.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
angrytreescommented, May 28, 2021

Hi, have the same issue now

After update transformer library to 2.2.x works fine

0reactions
shridharprcommented, Jun 11, 2021

I am getting following error - “AttributeError: module transformers.models.big_bird has no attribute BigBirdTokenizer” While importing “from summarizer import Summarizer”

Read more comments on GitHub >

github_iconTop Results From Across the Web

python - AttributeError: module transformers has no attribute ...
My solution was to first edit the source code to remove the line that adds "TF" in front of the package as the...
Read more >
What to do when you get an error - Hugging Face Course
In this section we'll look at some common errors that can occur when you're trying to generate predictions from your freshly tuned Transformer...
Read more >
Killing Ticks - Beverly Wang - Medium
AttributeError: 'Version' object has no attribute 'major' ... (update packaging to its latest version); pip install transformers (reinstall transformers) ...
Read more >
Install spaCy · spaCy Usage Documentation
pip install spacy[lookups,transformers] ... When updating to a newer version of spaCy, it's generally recommended to start with a clean virtual environment.
Read more >
Version 0.24.2 — scikit-learn 1.2.0 documentation
April 2021 Changelog: sklearn.compose: compose.ColumnTransformer.get_feature_names does not call get_feature_names on transformers with an empty column ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found