-
Notifications
You must be signed in to change notification settings - Fork 5
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
import broken #12
Comments
let me double check and get back to you. thanks for reporting |
import after running setup.py install does work if i clone the repo. Then I tried the example in the readme, but it hung for 5 min then returned error: |
I tried pip install. did not work for me either. Install for local:
Seems Thomson Reuters changed their stuff. I need to fix this. For now can try to remove this source # google_finance, yahoo_finance can still work
>> comp_match.match(['Apple', 'Google', 'Facebook', 'CitiBank'], ['google_finance'])
{'Facebook': [['Facebook, Inc. Common Stock', CompanyUnderline: [FB2A@XETRA@DE], {'score': 2.0}], ['Facebook, Inc. Common Stock', CompanyUnderline: [FB@NASDAQ OMX PHLX@US], {'score': 1.0}], ['FACEBOOKI8JS/UnSBDR QI', CompanyUnderline: [FBOK34@Bovespa Stock Exchange@BR], {'score': 1.0}], ['Facebook, Inc. Common Stock', CompanyUnderline: [FB@@UN], {'score': 1.0}], ['Facebook, Inc. Common Stock', CompanyUnderline: [FB@Vienna Stock Exchange@AT], {'score': 1.0}]], 'Apple': [['Apple Inc.', CompanyUnderline: [APC@XETRA@DE], {'score': 2.0}], ['Apple Inc.', CompanyUnderline: [AAPL@NASDAQ OMX PHLX@US], {'score': 1.0}], ['Apple Hospitality REIT Inc', CompanyUnderline: [APLE@New York Stock Exchange@US], {'score': 1.0}], ['APPLE RUSH CO I/SH NEW', CompanyUnderline: [APRU@@UN], {'score': 1.0}], ['Apple Inc.', CompanyUnderline: [AAPL@@UN], {'score': 1.0}]], 'Google': [['CBOE Equity VIX ON Google', CompanyUnderline: [VXGOG@@UN], {'score': 1.0}]], 'CitiBank': []} |
And I will welcome contribution to this package :) To be honest I did not take care of it ever since I had the first implementation and after 0.0.0.dev and the development effort for this just stopped as I do not work in this industry anymore. Any help like code, feature request or morale support would be good |
Hey Franklin, I've taken a closer look at the code this week and I do have an interest in this. I am open to contributing/forking as I work on scratching my own itch. I noticed that you have a lot of time.sleep statements, even going as long as sleeping for 30. I imagine this is the main cause of the slowness? Before I try playing with that, do you remember what prompted such long sleeps? And/or are there any other 'institutional memory' notes/tricks you would advise me to keep in mind? I'm happy to switch to email or something if 'issues' isn't the right space for this |
I am actually going to rewrite this package myself as well -- has been doing other stuff and did not do any maintenance -- I am planning to make the core async based. the main reason for "slowness" is indeed caused by sleep if there is exception happening. sleep is intentional because when crawling websites like google or yahoo or tr you do not want to hit them too frequently. |
After my initial check, tr(thomson Reuters)changed their format and caused the parsing to throw exception. And retry triggered and it is going to wait longer and longer. Currently google and Yahoo finance works as usual But a good point mentioned by you is that it is currently waiting too long before telling users that here is a problem. |
Hi,
I'm unable to import this package to try it out. Reproduce steps:
pip install comp-match
python -c 'import comp_match'
Result:
ModuleNotFoundErrror: No module named comp_match
The text was updated successfully, but these errors were encountered: