suqingdong / pypubmed

Toolkits for NCBI Pubmed
https://suqingdong.github.io/pypubmed/
MIT License
25 stars 7 forks source link

Pypubmed Update #3

Open roywhite98 opened 1 year ago

roywhite98 commented 1 year ago

I am getting this error when I try this :

~\home> pypubmed

ImportError: cannot import name 'ImpactFactor' from 'impact_factor' (E:\Python\Lib\site-packages\impact_factor_init_.py)

python version 3.11.2

Finally I found the problem.

open pypubmed\core\eutils.py and line 16 changes to:

from impact_factor.core import Factor

line 39 changes to:

IF = ImpactFactor()

then everything works well.

Bohuaw commented 1 year ago

Thank you for your answer. But a little question is that the line 39 supposed to chenge to: IF = Factor() Then everything be ok.