Git Product home page Git Product logo

Comments (8)

WillianFuks avatar WillianFuks commented on June 4, 2024

Hi Ainhoa,

Happy New Year to you as well :)

As for the issue you are seeing, I suspect that you are not actually using this package (tfcausalimpact), the error message seems to reference other implementations also available for Python.

If you want to use this current repository, you can just run pip install tfcausalimpact and then you'll have access to causal impact as implemented on top of Tensorflow Probability. If you want to keep using your current implementation of causal impact then you'll probably have to figure out which repository it refers to and ask them for help.

Let me know if this helps you.

Best,

Will

from tfcausalimpact.

wobiero avatar wobiero commented on June 4, 2024

Happy New Year Will,

I also seem to be having the same issue. I recently updated pandas and since then tfcausalimpact has been broken.
Exactly the same errors as Alnhoa84. I have uninstalled and reinstalled the package and removed all other existing packages with similar names, and the error persists.

Cheers,

W.

from tfcausalimpact.

WillianFuks avatar WillianFuks commented on June 4, 2024

Hi @wobiero ,

What is the output if you run this command?:

pip freeze | grep causalimpact

If you have the same issue than @AInhoa84 then it would indicate other package is being used instead of tfcausalimpact, the output of that command will confirm what's going on.

Best,

Will

from tfcausalimpact.

wobiero avatar wobiero commented on June 4, 2024

Hi @wobiero ,

What is the output if you run this command?:

pip freeze | grep causalimpact

If you have the same issue than @AInhoa84 then it would indicate other package is being used instead of tfcausalimpact, the output of that command will confirm what's going on.

Best,

Will

Hi Will,

You were right. I had some conflicts that I resolved. Working perfectly. Thanks for the great job.

Best.

W

from tfcausalimpact.

AInhoa84 avatar AInhoa84 commented on June 4, 2024

Hi @WillianFuks,

Thanks for your answer.

I have just pip installed tfcausalimpact and ran the command you mentioned:

Capture

And I still get the same errors. Should I uninstall the 1st causalimpact package? FYI, I am using your notebook https://github.com/WillianFuks/tfcausalimpact/blob/master/notebooks/getting_started.ipynb as a step-by-step guide.

Apologies as I am not an advanced Python user, but still really like this package and want to use it!

Regards,

Ainhoa

from tfcausalimpact.

WillianFuks avatar WillianFuks commented on June 4, 2024

Hi Ainhoa,

I suspect that indeed if you remove the first package then the notebook will process just fine. Both packages installed seems to cause conflicts when importing them.

from tfcausalimpact.

wobiero avatar wobiero commented on June 4, 2024

Hi Ainhoa,

I suspect that indeed if you remove the first package then the notebook will process just fine. Both packages installed seems to cause conflicts when importing them.

Hi Alnhoa,

For me the issue was that I had another causalimpact library installed. It has a similar import statement to tfcausalimpact i.e., "from causalimpact import CausalImpact".

When I ran the pip uninstall command, it wasn't getting removed. I had to physically delete the library, upgrade tensorflow and then reinstall tfcausalimpact.

Also try and install tfcausalimpact in your python root directory. That is, "python -m pip install tfcausalimpact" rather than "pip install tfcausalimpact".

Hope this helps.

W

from tfcausalimpact.

AInhoa84 avatar AInhoa84 commented on June 4, 2024

Hello,

Thanks both @WillianFuks and @wobiero it's working now! :)

Regards,

Ainhoa

from tfcausalimpact.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.