Benny-/Yahoo-ticker-symbol-downloader

'too few arguments'

dwang888 opened this issue · 7 comments

Python 2.7 Anaconda
Step by step install using pip
run: YahooTickerDownloader.py stocks
error: "YahooTickerDownloader.py: error: too few arguments"

I was not able to reproduce this problem using Python 2.7.14 on a Linux machine using the following commands:

virtualenv "pyenv"
. ./pyenv/bin/activate
pip install Yahoo-ticker-downloader
YahooTickerDownloader.py "stocks"

Can you provider a list of all installed python packages using pip freeze?

below are the packages I installed. By the way, this is on Windows10, if I run it on Ubuntu16, no issue.
alabaster==0.7.9
anaconda-client==1.6.0
anaconda-navigator==1.5
anaconda-project==0.4.1
argcomplete==1.0.0
astroid==1.4.9
astropy==1.3
Babel==2.3.4
backports-abc==0.5
backports.csv==1.0.5
backports.shutil-get-terminal-size==1.0.0
backports.ssl-match-hostname==3.4.0.2
beautifulsoup4==4.5.3
bitarray==0.8.1
blaze==0.10.1
bokeh==0.12.4
bosonnlp==0.9.0
boto==2.45.0
Bottleneck==1.2.0
bz2file==0.98
cdecimal==2.3
certifi==2017.11.5
cffi==1.9.1
chardet==3.0.4
chest==0.2.3
click==6.7
cloudpickle==0.2.2
clyent==1.2.2
colorama==0.3.7
comtypes==1.1.2
conda==4.3.27
configobj==5.0.6
configparser==3.5.0
contextlib2==0.5.4
cryptography==1.7.1
cycler==0.10.0
Cython==0.26
cytoolz==0.8.2
dask==0.13.0
datashape==0.5.4
decorator==4.0.11
dill==0.2.5
docutils==0.13.1
elasticsearch==5.4.0
enum34==1.1.6
et-xmlfile==1.0.1
fastcache==1.0.2
Flask==0.12
Flask-Cors==3.0.2
funcsigs==1.0.2
functools32==3.2.3.post2
futures==3.0.5
gensim==1.0.1
gevent==1.2.1
greenlet==0.4.11
grin==1.2.1
h5py==2.6.0
HeapDict==1.0.0
html5lib==1.0.1
idna==2.6
imagesize==0.7.1
ipaddress==1.0.18
ipykernel==4.5.2
ipython==5.1.0
ipython-genutils==0.1.0
ipywidgets==5.2.2
isort==4.2.5
itsdangerous==0.24
jdcal==1.3
jedi==0.9.0
jieba==0.38
Jinja2==2.9.4
jsonschema==2.5.1
jupyter==1.0.0
jupyter-client==4.4.0
jupyter-console==5.0.0
jupyter-core==4.2.1
lazy-object-proxy==1.2.2
llvmlite==0.15.0
locket==0.2.0
lxml==3.7.2
MarkupSafe==0.23
matplotlib==2.0.0
menuinst==1.4.4
mistune==0.7.3
mpmath==0.19
multipledispatch==0.4.9
MySQL-python==1.2.5
nbconvert==4.2.0
nbformat==4.2.0
neo4j-driver==1.2.1
networkx==1.11
nltk==3.2.2
nose==1.3.7
notebook==4.3.1
numba==0.30.1+0.g8c1033f.dirty
numexpr==2.6.1
numpy==1.11.3
numpydoc==0.6.0
odfpy==1.3.6
odo==0.5.0
openpyxl==2.4.9
pandas==0.19.2
pandas-datareader==0.5.0
partd==0.3.7
path.py==0.0.0
pathlib2==2.2.0
patsy==0.4.1
pep8==1.7.0
pickleshare==0.7.4
Pillow==4.0.0
ply==3.9
prompt-toolkit==1.0.9
psutil==5.0.1
py==1.4.32
py2neo==3.1.2
PyAlgoTrade==0.18
pyasn1==0.1.9
pycosat==0.6.1
pycparser==2.17
pycrypto==2.6.1
pycurl==7.43.0
pyflakes==1.5.0
Pygments==2.1.3
pylint==1.6.4
pyltp==0.1.9.1
pyodbc==3.0.10
pyOpenSSL==16.2.0
pyparsing==2.1.4
pytest==3.0.5
python-crfsuite==0.9.2
python-dateutil==2.6.0
pytz==2016.10
pywin32==220
PyYAML==3.12
pyzmq==16.0.2
QtAwesome==0.4.3
qtconsole==4.2.1
QtPy==1.2.1
requests==2.18.4
requests-file==1.4.2
requests-ftp==0.3.1
rope==0.9.4
scandir==1.4
scikit-image==0.12.3
scikit-learn==0.18.1
scipy==0.18.1
seaborn==0.7.1
simplegeneric==0.8.1
simplejson==3.13.2
singledispatch==3.4.0.3
six==1.10.0
sklearn-crfsuite==0.3.6
smart-open==1.5.2
snowballstemmer==1.2.1
snownlp==0.12.3
sockjs-tornado==1.0.3
sphinx==1.5.1
spyder==3.1.2
SQLAlchemy==1.1.5
statsmodels==0.6.1
subprocess32==3.2.7
sympy==1.0
tables==3.2.2
tablib==0.12.1
tabulate==0.7.7
textrank4zh==0.3
toolz==0.8.2
tornado==4.4.2
tqdm==4.15.0
traitlets==4.3.1
tushare==0.8.1
unicodecsv==0.14.1
urllib3==1.22
wcwidth==0.1.7
web.py==0.38
webencodings==0.5.1
Werkzeug==0.11.15
widgetsnbextension==1.2.6
win-unicode-console==0.5
wrapt==1.10.8
xlrd==1.1.0
XlsxWriter==0.9.6
xlwings==0.10.2
xlwt==1.3.0
yahoo-finance==1.4.0
Yahoo-ticker-downloader==2.1.1
ystockquote==0.2.5

I tried to reproduce this on windows 10 using python 2.7.? and 3.6.? but I could not reproduce it. It was not a faithful reproduction however.

It was also difficult to re-create your environment as it contained packages which might be private (pip could not download everything) and/or required a MS compiler.

You could make a python2 and/or python3 virtualenv on windows and try again. Can you report back the results?

Hello, I have the same problem on windows 7.

I created a virtualenv and this is the pip "freeze" result:

(pyenv) (C:\Users\Maria\Anaconda2) C:\Users\Maria>pip freeze
backports.csv==1.0.5
certifi==2018.1.18
chardet==3.0.4
et-xmlfile==1.0.1
idna==2.6
jdcal==1.3
odfpy==1.3.6
openpyxl==2.4.10
PyYAML==3.12
requests==2.18.4
tablib==0.12.1
unicodecsv==0.14.1
urllib3==1.22
xlrd==1.1.0
xlwt==1.3.0
Yahoo-ticker-downloader==2.1.1

When I try to use YahooTickerDownloader.py stocks, I have the following error:

(pyenv) (C:\Users\Maria\Anaconda2) C:\Users\Maria>YahooTickerDownloader.py stocks
usage: YahooTickerDownloader.py [-h] [-i] [-e] [-E EXCHANGE] [-s SLEEP] [-p]
[-m MARKET]
type
YahooTickerDownloader.py: error: too few arguments

Any solution?

No solution as of yet. I was not yet able to reproduce the problem. I will try to reproduce it again with your configuration, @Alberms . I will report back whenever it succeeded or not.

What is this Anaconda2 ?

Anaconda is a Python distribution with almost all necessary packages for data science.
https://www.anaconda.com/download/