Giter Club home page Giter Club logo

tushare-trader's People

Contributors

astraeux avatar chuihero avatar dependabot[bot] avatar gorf avatar holsety avatar jimmysoa avatar lstwzd avatar odoomod avatar shenjian74 avatar suckhard avatar thippo avatar tradingreason avatar zackzk avatar zhsso avatar

Stargazers

 avatar

Watchers

 avatar

tushare-trader's Issues

SSLError

account_info.py

Traceback (most recent call last):
File "C:\Users\DELL\AppData\Local\Programs\Python\Python37\lib\site-packages\urllib3\connectionpool.py", line 677, in urlopen
chunked=chunked,
File "C:\Users\DELL\AppData\Local\Programs\Python\Python37\lib\site-packages\urllib3\connectionpool.py", line 381, in _make_request
self._validate_conn(conn)
File "C:\Users\DELL\AppData\Local\Programs\Python\Python37\lib\site-packages\urllib3\connectionpool.py", line 976, in validate_conn
conn.connect()
File "C:\Users\DELL\AppData\Local\Programs\Python\Python37\lib\site-packages\urllib3\connection.py", line 370, in connect
ssl_context=context,
File "C:\Users\DELL\AppData\Local\Programs\Python\Python37\lib\site-packages\urllib3\util\ssl
.py", line 377, in ssl_wrap_socket
return context.wrap_socket(sock, server_hostname=server_hostname)
File "C:\Users\DELL\AppData\Local\Programs\Python\Python37\lib\ssl.py", line 412, in wrap_socket
session=session
File "C:\Users\DELL\AppData\Local\Programs\Python\Python37\lib\ssl.py", line 853, in _create
self.do_handshake()
File "C:\Users\DELL\AppData\Local\Programs\Python\Python37\lib\ssl.py", line 1117, in do_handshake
self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1056)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\DELL\AppData\Local\Programs\Python\Python37\lib\site-packages\requests\adapters.py", line 449, in send
timeout=timeout
File "C:\Users\DELL\AppData\Local\Programs\Python\Python37\lib\site-packages\urllib3\connectionpool.py", line 725, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "C:\Users\DELL\AppData\Local\Programs\Python\Python37\lib\site-packages\urllib3\util\retry.py", line 439, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='newetrade.csc108.com', port=443): Max retries exceeded with url: /login/loginMain.jspx (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1056)')))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\DELL\Documents\stock\tushare\account_info.py", line 82, in
main()
File "C:\Users\DELL\Documents\stock\tushare\account_info.py", line 49, in main
csc.login()
File "C:\Users\DELL\AppData\Local\Programs\Python\Python37\lib\site-packages\tushare_trader-0.7.7-py3.7.egg\tushare_trader\trader\trader.py", line 46, in login
vs.PAGES['csclogin']))
File "C:\Users\DELL\AppData\Local\Programs\Python\Python37\lib\site-packages\requests\sessions.py", line 543, in get
return self.request('GET', url, **kwargs)
File "C:\Users\DELL\AppData\Local\Programs\Python\Python37\lib\site-packages\requests\sessions.py", line 530, in request
resp = self.send(prep, **send_kwargs)
File "C:\Users\DELL\AppData\Local\Programs\Python\Python37\lib\site-packages\requests\sessions.py", line 643, in send
r = adapter.send(request, **kwargs)
File "C:\Users\DELL\AppData\Local\Programs\Python\Python37\lib\site-packages\requests\adapters.py", line 514, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='newetrade.csc108.com', port=443): Max retries exceeded with url: /login/loginMain.jspx (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1056)')))

error when install because pandas upgraded

python setup.py install
C:\Users\DELL\Desktop\tushare-trader-master\tushare-trader-master\tushare_trader\stock\classifying.py:16: FutureWarning: pandas.util.testing is deprecated. Use the functions in the public API at pandas.testing instead.
from pandas.util.testing import network_error_classes
Traceback (most recent call last):
File "setup.py", line 4, in
import tushare_trader
File "C:\Users\DELL\Desktop\tushare-trader-master\tushare-trader-master\tushare_trader_init
.py", line 36, in
from tushare_trader.stock.classifying import (get_industry_classified, get_concept_classified,
File "C:\Users\DELL\Desktop\tushare-trader-master~20200412-073515\tushare-trader-master\tushare_trader\stock\classifying.py", line 16, in
from pandas.util.testing import _network_error_classes
ImportError: cannot import name '_network_error_classes' from 'pandas.util.testing' (C:\Users\DELL\AppData\Local\Programs\Python\Python37\lib\site-packages\pandas\util\testing.py)

pip list
Package Version


backcall 0.2.0
beautifulsoup4 4.9.1
bs4 0.0.1
certifi 2020.4.5.2
chardet 3.0.4
click 7.1.2
colorama 0.4.3
cssselect 1.1.0
decorator 4.4.2
easyquotation 0.7.4
easyutils 0.1.7
et-xmlfile 1.0.1
idna 2.9
ipython 7.15.0
ipython-genutils 0.2.0
jdcal 1.4.1
jedi 0.17.1
Jinja2 2.11.2
lxml 4.5.1
MarkupSafe 1.1.1
numpy 1.18.5
openpyxl 3.0.3
pandas 1.0.4
parso 0.7.0
pickleshare 0.7.5
piecash 1.0.0
Pillow 7.1.2
pip 20.1.1
prompt-toolkit 3.0.5
pygame 1.9.6
Pygments 2.6.1
PyPDF4 1.27.0
pyquery 1.4.1
python-dateutil 2.8.1
pytz 2020.1
pywin32 228
requests 2.23.0
setuptools 40.8.0
simplejson 3.17.0
six 1.15.0
soupsieve 2.0.1
SQLAlchemy 1.3.18
SQLAlchemy-Utils 0.36.6
traitlets 4.3.3
tushare 1.2.60
tzlocal 2.1
urllib3 1.25.9
wcwidth 0.2.5
websocket-client 0.57.0
xlrd 1.2.0

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.