-
Notifications
You must be signed in to change notification settings - Fork 250
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
Possible issue when using Cvxportfolio's internet access through a VPN #129
Comments
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 ? |
Re: Chinese firewall. That probably explains it, the |
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 :) |
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... |
I followed the instructions in Readme and run such commands:
pip install -U cvxportfolio
python3 -m cvxportfolio.tests
Then I got the following traceback:
From the traceback info, it seems like there are some problems in pands.read_csv() or something, but if I test it as following:
It appears that pandas.read_csv() itself no problems.. Then I am not sure if there is something else that causing such issues or not, thanks for the help.
BTW, I am in Beijing, China. Not sure if it is caused by network issues..
The text was updated successfully, but these errors were encountered: