Giter Club home page Giter Club logo

Comments (4)

enzbus avatar enzbus commented on June 21, 2024

Hello, it appears there are issues with low-level internet access Python modules. Is the machine you ran this on connected to the internet? You can use Cvxportfolio without internet access (look at the documentation of UserProvidedMarketData) but the tests assume you have a working connection. And no, I don't think there's any missing package there.

Or maybe you have some proxy or firewall configuration that prevents that machine to access the two http addresses (Yahoo Finance and Fred) those tests were targeting ?

from cvxportfolio.

enzbus avatar enzbus commented on June 21, 2024

Re: Chinese firewall. That probably explains it, the pd.read_csv in question targets a http resource (you can see it in the source of Fred). If you have access to a VPN you may retry...

from cvxportfolio.

fengwz17 avatar fengwz17 commented on June 21, 2024

Re: Chinese firewall. That probably explains it, the pd.read_csv in question targets a http resource (you can see it in the source of Fred). If you have access to a VPN you may retry...

Thanks for the help! I use VPN and seems I am able to access Yahoo Finance and Fred website, also successfully ping these main page links but still face the same issues. I agree it should be some issues with low-level internet access Python modules or some complicate/strange internet proxy configuration problems...

I tests some local examples successfully, and I have decided to give up trying the online tests. Thanks again for your quick and kindly reply :)

from cvxportfolio.

enzbus avatar enzbus commented on June 21, 2024

Thank you! I'm not sure how to help, for reference one of the two lines on which it fails is something like this:

import pandas as pd
pd.read_csv("https://alfred.stlouisfed.org/graph/alfredgraph.csv?id=CES0500000003&vintage_date=2023-07-06")

If you are able to open that same address in your browser then there's probably something wrong with how the VPN is set up, and beyond my area of expertise...

from cvxportfolio.

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.