Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: cannot import name 'Term' #200

Closed
jodobear opened this issue Aug 22, 2020 · 2 comments
Closed

ImportError: cannot import name 'Term' #200

jodobear opened this issue Aug 22, 2020 · 2 comments
Labels
bug Something isn't working

Comments

@jodobear
Copy link

Summary

Cannot Import covsirphy because cannot import name 'Term'. I used to be able to work on the notebook until 20-08-18. Now I can't import the package.

Related classes

Codes and outputs:

!pip3 install covsirphy
import covsirphy as cs

This code returns

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-9-820f56c3f8b1> in <module>()
      1 get_ipython().system('pip3 install requests')
----> 2 import covsirphy as cs
      3 import pandas as pd

6 frames
/usr/local/lib/python3.6/dist-packages/covsirphy/analysis/sr_change.py in <module>()
      7 import pandas as pd
      8 import ruptures as rpt
----> 9 from covsirphy.cleaning import Term, JHUData
     10 from covsirphy.phase.trend import Trend
     11 from covsirphy.analysis.phase_series import PhaseSeries

ImportError: cannot import name 'Term'

---------------------------------------------------------------------------

Environment

  • CovsirPhy version: 2.7.1
  • Python version; 3.8
  • Installation: pip3
  • OS: Colab Notebook

Thanks for the effort and helping.

@jodobear jodobear added the bug Something isn't working label Aug 22, 2020
@lisphilar
Copy link
Owner

Dear @jodobear ,
Thank you for your kind notice!

With unknown reason, removed file (covsirphy/analysis/sr_change.py) was uploaded in version 2.7.1 in PyPI.
I uploaded the current files as version 2.7.2, but the bug was not fixed. I'm trying to fix it.

Please use development version with !pip install "git+https://github.com/lisphilar/covid19-sir.git#egg=covsirphy" for a while.

@lisphilar
Copy link
Owner

Dear @jodobear ,
I edited init files with #201 and upladed stable version 2.7.3
With my colab notebook, I successfully completed pip installation.
Please confirm it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants