Benny- / Yahoo-ticker-symbol-downloader

A web scraper for ticker symbols from yahoo finance
https://pypi.python.org/pypi/Yahoo-ticker-downloader/
Other
247 stars 87 forks source link

install error #42

Closed Ryzbc closed 6 years ago

Ryzbc commented 6 years ago

Hi Benny, I am trying to install your module but the pip crack. Attached I will copy last part of the error message. My platform is Mac with macOS High Sierra, version 10.13.3 and use Terminal for the pip. The message is: creating build/temp.macosx-10.6-intel-2.7/reppy/rep-cpp/deps/url-cpp creating build/temp.macosx-10.6-intel-2.7/reppy/rep-cpp/deps/url-cpp/src /usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Ireppy/rep-cpp/include -Ireppy/rep-cpp/deps/url-cpp/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c reppy/rep-cpp/src/agent.cpp -o build/temp.macosx-10.6-intel-2.7/reppy/rep-cpp/src/agent.o -std=c++11 In file included from reppy/rep-cpp/src/agent.cpp:4: reppy/rep-cpp/deps/url-cpp/include/url.h:8:10: fatal error: 'unordered_map' file not found

include

         ^
1 error generated.
error: command '/usr/bin/clang' failed with exit status 1
Benny- commented 6 years ago

Thank you for this bug report. It appears to be a error in building the latest added dependency (reppy for robots.txt parsing).

The quickest and easiest workaround would be to install 2.1.1 of Yahoo-ticker-symbol-downloader while this bug is being investigated and fixed. That version does not have that dependency.

pip install Yahoo-ticker-downloader==2.1.1

Can you please try doing the following and report back the full results? (regardless if it succeeds or not)

pip install reppy
Ryzbc commented 6 years ago

Thanks Benny, I will try it and report you the result.

Enviado por Rafa Barneto

El 18 mar 2018, a las 12:29, Benny Jacobs notifications@github.com<mailto:notifications@github.com> escribió:

Thank you for this bug report. It appears to be a error in building the latest added dependency (reppy for robots.txt parsing).

The quickest and easiest workaround would be to install 2.1.1 of Yahoo-ticker-symbol-downloader while this bug is being investigated and fixed. That version does not have that dependency.

pip install Yahoo-ticker-downloader==2.1.1

Can you please try doing the following and report back the full results? (regardless if it succeeds or not)

pip install reppy

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FBenny-%2FYahoo-ticker-symbol-downloader%2Fissues%2F42%23issuecomment-373990832&data=02%7C01%7C%7C187ad01d1c7b477092f008d58cc39410%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636569693983928687&sdata=1DtddoTSxLsmDSG5nVaICU7O%2B9WqbPlL7ZcmoQ7ywk0%3D&reserved=0, or mute the threadhttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAdxPxzUUjdsWT2tCegCkFzts0RXMvQFkks5tfkUygaJpZM4Sse02&data=02%7C01%7C%7C187ad01d1c7b477092f008d58cc39410%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636569693983928687&sdata=bjplDIsnd0NimZ%2Bi%2FjWnrcoTS4EhlcHtbT7eGaHoOlo%3D&reserved=0.

Ryzbc commented 6 years ago

-/Yahoo-ticker-symbol-downloader] install error (#42)

good morning Benny!

following your instructions I installed the previous version 2.1.1 of your program and it works, at least without options: I has been able to download all stocks tickers, but when I try to select an specific market [-m us], the program do not recognize that parameter and d’ont work. Probably it is a new feature or I make some error in typing it. On the other hand, when I try to install reppy, I get the following messages:

" Building from C++ running bdist_wheel running build running build_py creating build creating build/lib.macosx-10.6-intel-2.7 creating build/lib.macosx-10.6-intel-2.7/reppy copying reppy/init.py -> build/lib.macosx-10.6-intel-2.7/reppy copying reppy/exceptions.py -> build/lib.macosx-10.6-intel-2.7/reppy copying reppy/ttl.py -> build/lib.macosx-10.6-intel-2.7/reppy copying reppy/util.py -> build/lib.macosx-10.6-intel-2.7/reppy creating build/lib.macosx-10.6-intel-2.7/reppy/cache copying reppy/cache/init.py -> build/lib.macosx-10.6-intel-2.7/reppy/cache copying reppy/cache/policy.py -> build/lib.macosx-10.6-intel-2.7/reppy/cache running build_ext building 'reppy.robots' extension creating build/temp.macosx-10.6-intel-2.7 creating build/temp.macosx-10.6-intel-2.7/reppy creating build/temp.macosx-10.6-intel-2.7/reppy/rep-cpp creating build/temp.macosx-10.6-intel-2.7/reppy/rep-cpp/src creating build/temp.macosx-10.6-intel-2.7/reppy/rep-cpp/deps creating build/temp.macosx-10.6-intel-2.7/reppy/rep-cpp/deps/url-cpp creating build/temp.macosx-10.6-intel-2.7/reppy/rep-cpp/deps/url-cpp/src /usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Ireppy/rep-cpp/include -Ireppy/rep-cpp/deps/url-cpp/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c reppy/rep-cpp/src/agent.cpp -o build/temp.macosx-10.6-intel-2.7/reppy/rep-cpp/src/agent.o -std=c++11 In file included from reppy/rep-cpp/src/agent.cpp:4: reppy/rep-cpp/deps/url-cpp/include/url.h:8:10: fatal error: 'unordered_map' file not found

include

       ^

1 error generated. error: command '/usr/bin/clang' failed with exit status 1


Failed building wheel for reppy Running setup.py clean for reppy Failed to build reppy Installing collected packages: reppy Running setup.py install for reppy ... error Complete output from command /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -u -c "import setuptools, tokenize;file='/private/var/folders/yg/m793vdss71xcx7w9flp9cmsm0000gq/T/pip-build-wF9pWb/reppy/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /var/folders/yg/m793vdss71xcx7w9flp9cmsm0000gq/T/pip-vcltOQ-record/install-record.txt --single-version-externally-managed --compile: Building from C++ running install running build running build_py creating build creating build/lib.macosx-10.6-intel-2.7 creating build/lib.macosx-10.6-intel-2.7/reppy copying reppy/init.py -> build/lib.macosx-10.6-intel-2.7/reppy copying reppy/exceptions.py -> build/lib.macosx-10.6-intel-2.7/reppy copying reppy/ttl.py -> build/lib.macosx-10.6-intel-2.7/reppy copying reppy/util.py -> build/lib.macosx-10.6-intel-2.7/reppy creating build/lib.macosx-10.6-intel-2.7/reppy/cache copying reppy/cache/init.py -> build/lib.macosx-10.6-intel-2.7/reppy/cache copying reppy/cache/policy.py -> build/lib.macosx-10.6-intel-2.7/reppy/cache running build_ext building 'reppy.robots' extension creating build/temp.macosx-10.6-intel-2.7 creating build/temp.macosx-10.6-intel-2.7/reppy creating build/temp.macosx-10.6-intel-2.7/reppy/rep-cpp creating build/temp.macosx-10.6-intel-2.7/reppy/rep-cpp/src creating build/temp.macosx-10.6-intel-2.7/reppy/rep-cpp/deps creating build/temp.macosx-10.6-intel-2.7/reppy/rep-cpp/deps/url-cpp creating build/temp.macosx-10.6-intel-2.7/reppy/rep-cpp/deps/url-cpp/src /usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Ireppy/rep-cpp/include -Ireppy/rep-cpp/deps/url-cpp/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c reppy/rep-cpp/src/agent.cpp -o build/temp.macosx-10.6-intel-2.7/reppy/rep-cpp/src/agent.o -std=c++11 In file included from reppy/rep-cpp/src/agent.cpp:4: reppy/rep-cpp/deps/url-cpp/include/url.h:8:10: fatal error: 'unordered_map' file not found

include

         ^
1 error generated.
error: command '/usr/bin/clang' failed with exit status 1

----------------------------------------

Command "/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -u -c "import setuptools, tokenize;file='/private/var/folders/yg/m793vdss71xcx7w9flp9cmsm0000gq/T/pip-build-wF9pWb/reppy/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /var/folders/yg/m793vdss71xcx7w9flp9cmsm0000gq/T/pip-vcltOQ-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/yg/m793vdss71xcx7w9flp9cmsm0000gq/T/pip-build-wF9pWb/reppy/“ Best regards.

Rafa Barneto

El 18 mar 2018, a las 21:00, Rafa Ryzbc ryzbc@outlook.es<mailto:ryzbc@outlook.es> escribió:

Enviado por Rafa Barneto

Inicio del mensaje reenviado:

De: Benny Jacobs notifications@github.com<mailto:notifications@github.com> Fecha: 18 de marzo de 2018, 12:29:54 CET Para: Benny-/Yahoo-ticker-symbol-downloader Yahoo-ticker-symbol-downloader@noreply.github.com<mailto:Yahoo-ticker-symbol-downloader@noreply.github.com> Cc: Ryzbc ryzbc@outlook.es<mailto:ryzbc@outlook.es>, Author author@noreply.github.com<mailto:author@noreply.github.com> Asunto: Re: [Benny-/Yahoo-ticker-symbol-downloader] install error (#42) Responder a: Benny-/Yahoo-ticker-symbol-downloader reply@reply.github.com<mailto:reply@reply.github.com>

Thank you for this bug report. It appears to be a error in building the latest added dependency (reppy for robots.txt parsing).

The quickest and easiest workaround would be to install 2.1.1 of Yahoo-ticker-symbol-downloader while this bug is being investigated and fixed. That version does not have that dependency.

pip install Yahoo-ticker-downloader==2.1.1

Can you please try doing the following and report back the full results? (regardless if it succeeds or not)

pip install reppy

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FBenny-%2FYahoo-ticker-symbol-downloader%2Fissues%2F42%23issuecomment-373990832&data=02%7C01%7C%7C187ad01d1c7b477092f008d58cc39410%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636569693983928687&sdata=1DtddoTSxLsmDSG5nVaICU7O%2B9WqbPlL7ZcmoQ7ywk0%3D&reserved=0, or mute the threadhttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAdxPxzUUjdsWT2tCegCkFzts0RXMvQFkks5tfkUygaJpZM4Sse02&data=02%7C01%7C%7C187ad01d1c7b477092f008d58cc39410%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636569693983928687&sdata=bjplDIsnd0NimZ%2Bi%2FjWnrcoTS4EhlcHtbT7eGaHoOlo%3D&reserved=0.

Ryzbc commented 6 years ago

good morning Benny!

following your instructions I installed the previous version 2.1.1 of your program and it works, at least without options: I has been able to download all stocks tickers, but when I try to select an specific market [-m us], the program do not recognize that parameter and d’ont work. Probably it is a new feature or I make some error in typing it. On the other hand, when I try to install reppy, I get the following messages:

" Building from C++ running bdist_wheel running build running build_py creating build creating build/lib.macosx-10.6-intel-2.7 creating build/lib.macosx-10.6-intel-2.7/reppy copying reppy/init.py -> build/lib.macosx-10.6-intel-2.7/reppy copying reppy/exceptions.py -> build/lib.macosx-10.6-intel-2.7/reppy copying reppy/ttl.py -> build/lib.macosx-10.6-intel-2.7/reppy copying reppy/util.py -> build/lib.macosx-10.6-intel-2.7/reppy creating build/lib.macosx-10.6-intel-2.7/reppy/cache copying reppy/cache/init.py -> build/lib.macosx-10.6-intel-2.7/reppy/cache copying reppy/cache/policy.py -> build/lib.macosx-10.6-intel-2.7/reppy/cache running build_ext building 'reppy.robots' extension creating build/temp.macosx-10.6-intel-2.7 creating build/temp.macosx-10.6-intel-2.7/reppy creating build/temp.macosx-10.6-intel-2.7/reppy/rep-cpp creating build/temp.macosx-10.6-intel-2.7/reppy/rep-cpp/src creating build/temp.macosx-10.6-intel-2.7/reppy/rep-cpp/deps creating build/temp.macosx-10.6-intel-2.7/reppy/rep-cpp/deps/url-cpp creating build/temp.macosx-10.6-intel-2.7/reppy/rep-cpp/deps/url-cpp/src /usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Ireppy/rep-cpp/include -Ireppy/rep-cpp/deps/url-cpp/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c reppy/rep-cpp/src/agent.cpp -o build/temp.macosx-10.6-intel-2.7/reppy/rep-cpp/src/agent.o -std=c++11 In file included from reppy/rep-cpp/src/agent.cpp:4: reppy/rep-cpp/deps/url-cpp/include/url.h:8:10<x-apple-data-detectors://0>: fatal error: 'unordered_map' file not found

include

       ^

1 error generated. error: command '/usr/bin/clang' failed with exit status 1


Failed building wheel for reppy Running setup.py clean for reppy Failed to build reppy Installing collected packages: reppy Running setup.py install for reppy ... error Complete output from command /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -u -c "import setuptools, tokenize;file='/private/var/folders/yg/m793vdss71xcx7w9flp9cmsm0000gq/T/pip-build-wF9pWb/reppy/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /var/folders/yg/m793vdss71xcx7w9flp9cmsm0000gq/T/pip-vcltOQ-record/install-record.txt --single-version-externally-managed --compile: Building from C++ running install running build running build_py creating build creating build/lib.macosx-10.6-intel-2.7 creating build/lib.macosx-10.6-intel-2.7/reppy copying reppy/init.py -> build/lib.macosx-10.6-intel-2.7/reppy copying reppy/exceptions.py -> build/lib.macosx-10.6-intel-2.7/reppy copying reppy/ttl.py -> build/lib.macosx-10.6-intel-2.7/reppy copying reppy/util.py -> build/lib.macosx-10.6-intel-2.7/reppy creating build/lib.macosx-10.6-intel-2.7/reppy/cache copying reppy/cache/init.py -> build/lib.macosx-10.6-intel-2.7/reppy/cache copying reppy/cache/policy.py -> build/lib.macosx-10.6-intel-2.7/reppy/cache running build_ext building 'reppy.robots' extension creating build/temp.macosx-10.6-intel-2.7 creating build/temp.macosx-10.6-intel-2.7/reppy creating build/temp.macosx-10.6-intel-2.7/reppy/rep-cpp creating build/temp.macosx-10.6-intel-2.7/reppy/rep-cpp/src creating build/temp.macosx-10.6-intel-2.7/reppy/rep-cpp/deps creating build/temp.macosx-10.6-intel-2.7/reppy/rep-cpp/deps/url-cpp creating build/temp.macosx-10.6-intel-2.7/reppy/rep-cpp/deps/url-cpp/src /usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Ireppy/rep-cpp/include -Ireppy/rep-cpp/deps/url-cpp/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c reppy/rep-cpp/src/agent.cpp -o build/temp.macosx-10.6-intel-2.7/reppy/rep-cpp/src/agent.o -std=c++11 In file included from reppy/rep-cpp/src/agent.cpp:4: reppy/rep-cpp/deps/url-cpp/include/url.h:8:10<x-apple-data-detectors://1>: fatal error: 'unordered_map' file not found

include

         ^
1 error generated.
error: command '/usr/bin/clang' failed with exit status 1

----------------------------------------

Command "/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -u -c "import setuptools, tokenize;file='/private/var/folders/yg/m793vdss71xcx7w9flp9cmsm0000gq/T/pip-build-wF9pWb/reppy/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /var/folders/yg/m793vdss71xcx7w9flp9cmsm0000gq/T/pip-vcltOQ-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/yg/m793vdss71xcx7w9flp9cmsm0000gq/T/pip-build-wF9pWb/reppy/“ Best regards.

Enviado por Rafa Barneto

El 18 mar 2018, a las 12:29, Benny Jacobs notifications@github.com<mailto:notifications@github.com> escribió:

Thank you for this bug report. It appears to be a error in building the latest added dependency (reppy for robots.txt parsing).

The quickest and easiest workaround would be to install 2.1.1 of Yahoo-ticker-symbol-downloader while this bug is being investigated and fixed. That version does not have that dependency.

pip install Yahoo-ticker-downloader==2.1.1

Can you please try doing the following and report back the full results? (regardless if it succeeds or not)

pip install reppy

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FBenny-%2FYahoo-ticker-symbol-downloader%2Fissues%2F42%23issuecomment-373990832&data=02%7C01%7C%7C187ad01d1c7b477092f008d58cc39410%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636569693983928687&sdata=1DtddoTSxLsmDSG5nVaICU7O%2B9WqbPlL7ZcmoQ7ywk0%3D&reserved=0, or mute the threadhttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAdxPxzUUjdsWT2tCegCkFzts0RXMvQFkks5tfkUygaJpZM4Sse02&data=02%7C01%7C%7C187ad01d1c7b477092f008d58cc39410%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636569693983928687&sdata=bjplDIsnd0NimZ%2Bi%2FjWnrcoTS4EhlcHtbT7eGaHoOlo%3D&reserved=0.

Benny- commented 6 years ago

I have delegated the problem with installing reppy to https://github.com/seomoz/reppy/issues/84

Benny- commented 6 years ago

How do you know te -m switch does not work? What is the command you are using? What is the expected result? What is the actual result? You can make another issue for the -m switch not working.

Ryzbc commented 6 years ago

I am trying to select just the US-Canada markets with [-m us], but I am not sure what is the correct syntax.

Enviado por Rafa Barneto

El 20 mar 2018, a las 12:56, Benny Jacobs notifications@github.com<mailto:notifications@github.com> escribió:

How do you know te -m switch does not work? What is the command you are using? What is the expected result? What is the actual result? You can make another issue for the -m switch not working.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FBenny-%2FYahoo-ticker-symbol-downloader%2Fissues%2F42%23issuecomment-374571293&data=02%7C01%7C%7C5f59d3fb7154424081a508d58e59a243%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636571437987861890&sdata=rD3pbHvI%2BO4t5DfdLfBmG%2BylcIR9IQ7yDvmrF9lu8R8%3D&reserved=0, or mute the threadhttps://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAdxPx2rC0elTl7Qj5YkM_gBoYJSSuGDCks5tgO5ygaJpZM4Sse02&data=02%7C01%7C%7C5f59d3fb7154424081a508d58e59a243%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636571437987861890&sdata=%2BufOlf%2BXGc1Yx44tok%2FjlQ0Sa7a5FvJ7RMGLZ3etqWQ%3D&reserved=0.

Benny- commented 6 years ago

That should be the correct syntax.

YahooTickerDownloader.py -m us stocks

How do you know it does not work?

Ryzbc commented 6 years ago

Yes, it works, it was my mistake. Sorry and many thanks.

Enviado por Rafa Barneto

El 20 mar 2018, a las 13:10, Benny Jacobs notifications@github.com<mailto:notifications@github.com> escribió:

That should be the correct syntax.

YahooTickerDownloader.py -m us stocks

How do you know it does not work?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FBenny-%2FYahoo-ticker-symbol-downloader%2Fissues%2F42%23issuecomment-374575138&data=02%7C01%7C%7Ce452cc2da6f94d4ad11408d58e5b9954%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636571446416271300&sdata=18JaHbRhaKDwB6wmBjN21dfDVpJbeuHxhIRlqiLbSek%3D&reserved=0, or mute the threadhttps://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAdxPx1bFVdfPUnE9mml1fCwC84tYwARBks5tgPHAgaJpZM4Sse02&data=02%7C01%7C%7Ce452cc2da6f94d4ad11408d58e5b9954%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636571446416271300&sdata=bCMVbNT%2FNlkpw6tS0taRRWA3w3eSOrStoKhK9UqR8F0%3D&reserved=0.

Benny- commented 6 years ago

Great! I'll close this issue now.

For the pip installation error you need to upgrade your Mac OS and/or Xcode. Some old versions seems to be missing a header. For details refer to https://github.com/seomoz/reppy/issues/84 again.