bmoscon / cryptofeed

Cryptocurrency Exchange Websocket Data Feed Handler
Other
2.19k stars 679 forks source link

Issues installing from source #903

Closed cjelsa closed 1 year ago

cjelsa commented 1 year ago

Describe the bug Issues installing the package

To Reproduce python3 setup.py install

Expected behavior Installation of package form source

Screenshots clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/homebrew/Caskroom/miniforge/base/include -arch arm64 -fPIC -O2 -isystem /opt/homebrew/Caskroom/miniforge/base/include -arch arm64 -DCYTHON_WITHOUT_ASSERTIONS -I/opt/homebrew/Caskroom/miniforge/base/include/python3.9 -c cryptofeed/types.c -o build/temp.macosx-11.0-arm64-cpython-39/cryptofeed/types.o -O3 cryptofeed/types.c:3480:7: warning: unused variable 'pyx_t_2' [-Wunused-variable] int pyx_t_2; ^ cryptofeed/types.c:5603:7: warning: unused variable 'pyx_t_4' [-Wunused-variable] int pyx_t_4; ^ cryptofeed/types.c:5601:7: warning: unused variable 'pyx_t_2' [-Wunused-variable] int pyx_t_2; ^ cryptofeed/types.c:5602:7: warning: unused variable 'pyx_t_3' [-Wunused-variable] int pyx_t_3; ^ cryptofeed/types.c:7449:7: warning: unused variable 'pyx_t_2' [-Wunused-variable] int pyx_t_2; ^ cryptofeed/types.c:7450:7: warning: unused variable 'pyx_t_3' [-Wunused-variable] int pyx_t_3; ^ cryptofeed/types.c:7451:7: warning: unused variable 'pyx_t_4' [-Wunused-variable] int pyx_t_4; ^ cryptofeed/types.c:9613:7: warning: unused variable 'pyx_t_2' [-Wunused-variable] int pyx_t_2; ^ cryptofeed/types.c:9614:7: warning: unused variable 'pyx_t_3' [-Wunused-variable] int pyx_t_3; ^ cryptofeed/types.c:9612:7: warning: unused variable 'pyx_t_1' [-Wunused-variable] int pyx_t_1; ^ cryptofeed/types.c:11919:7: warning: unused variable 'pyx_t_3' [-Wunused-variable] int pyx_t_3; ^ cryptofeed/types.c:11918:7: warning: unused variable 'pyx_t_2' [-Wunused-variable] int pyx_t_2; ^ cryptofeed/types.c:14784:7: warning: unused variable 'pyx_t_2' [-Wunused-variable] int pyx_t_2; ^ cryptofeed/types.c:16205:7: warning: unused variable 'pyx_t_2' [-Wunused-variable] int pyx_t_2; ^ cryptofeed/types.c:16206:7: warning: unused variable 'pyx_t_3' [-Wunused-variable] int pyx_t_3; ^ cryptofeed/types.c:16207:7: warning: unused variable 'pyx_t_4' [-Wunused-variable] int pyx_t_4; ^ cryptofeed/types.c:18839:7: warning: unused variable 'pyx_t_5' [-Wunused-variable] int pyx_t_5; ^ cryptofeed/types.c:18837:7: warning: unused variable 'pyx_t_3' [-Wunused-variable] int pyx_t_3; ^ cryptofeed/types.c:20815:7: warning: unused variable 'pyx_t_3' [-Wunused-variable] int pyx_t_3; ^ cryptofeed/types.c:20814:7: warning: unused variable 'pyx_t_2' [-Wunused-variable] int pyx_t_2; ^ cryptofeed/types.c:20816:7: warning: unused variable 'pyx_t_4' [-Wunused-variable] int pyx_t_4; ^ cryptofeed/types.c:23076:7: warning: unused variable 'pyx_t_4' [-Wunused-variable] int pyx_t_4; ^ cryptofeed/types.c:23074:7: warning: unused variable 'pyx_t_2' [-Wunused-variable] int pyx_t_2; ^ cryptofeed/types.c:23075:7: warning: unused variable 'pyx_t_3' [-Wunused-variable] int pyx_t_3; ^ cryptofeed/types.c:25865:7: warning: unused variable 'pyx_t_4' [-Wunused-variable] int pyx_t_4; ^ cryptofeed/types.c:25863:7: warning: unused variable 'pyx_t_2' [-Wunused-variable] int pyx_t_2; ^ cryptofeed/types.c:25864:7: warning: unused variable 'pyx_t_3' [-Wunused-variable] int pyx_t_3; ^ cryptofeed/types.c:27347:7: warning: unused variable 'pyx_t_2' [-Wunused-variable] int pyx_t_2; ^ cryptofeed/types.c:29159:7: warning: unused variable 'pyx_t_2' [-Wunused-variable] int pyx_t_2; ^ cryptofeed/types.c:30848:7: warning: unused variable 'pyx_t_2' [-Wunused-variable] int pyx_t_2; ^ cryptofeed/types.c:30849:7: warning: unused variable 'pyx_t_3' [-Wunused-variable] int pyx_t_3; ^ cryptofeed/types.c:30850:7: warning: unused variable 'pyx_t_4' [-Wunused-variable] int pyx_t_4; ^ cryptofeed/types.c:33092:7: warning: unused variable 'pyx_t_3' [-Wunused-variable] int pyx_t_3; ^ cryptofeed/types.c:33091:7: warning: unused variable 'pyx_t_2' [-Wunused-variable] int pyx_t_2; ^ cryptofeed/types.c:33093:7: warning: unused variable 'pyx_t_4' [-Wunused-variable] int pyx_t_4; ^ 35 warnings generated.

.....

Installed /opt/homebrew/Caskroom/miniforge/base/lib/python3.9/site-packages/cryptofeed-2.3.1-py3.9-macosx-11.0-arm64.egg Processing dependencies for cryptofeed==2.3.1 Searching for uvloop Reading https://pypi.org/simple/uvloop/ /opt/homebrew/Caskroom/miniforge/base/lib/python3.9/site-packages/pkg_resources/init.py:123: PkgResourcesDeprecationWarning: is an invalid version and will not be supported in a future release warnings.warn( Downloading https://files.pythonhosted.org/packages/a2/22/2fba0652a03bac8c38201d5832aaba8d47e6e8dd4e2d05c9746571927ebb/uvloop-0.16.0-cp39-cp39-macosx_10_9_universal2.whl#sha256=6ccd57ae8db17d677e9e06192e9c9ec4bd2066b77790f9aa7dede2cc4008ee8f Best match: uvloop 0.16.0 Processing uvloop-0.16.0-cp39-cp39-macosx_10_9_universal2.whl Installing uvloop-0.16.0-cp39-cp39-macosx_10_9_universal2.whl to /opt/homebrew/Caskroom/miniforge/base/lib/python3.9/site-packages Adding uvloop 0.16.0 to easy-install.pth file

Installed /opt/homebrew/Caskroom/miniforge/base/lib/python3.9/site-packages/uvloop-0.16.0-py3.9-macosx-11.0-arm64.egg Searching for order_book>=0.5.0 Reading https://pypi.org/simple/order_book/ Downloading https://files.pythonhosted.org/packages/b0/ee/0a9bf06103fd8dfce7de898be78c103a412d1c9906666e360e76eab56599/order_book-0.5.0.tar.gz#sha256=3ca1aed68078ef5ff3b15fe35ae150fcbced6d21605dee72e9fef91c49752187 Best match: order-book 0.5.0 Processing order_book-0.5.0.tar.gz Writing /var/folders/yx/5qqmfqr546d5qcclbk5ykrrh0000gp/T/easy_install-4ikhersu/order_book-0.5.0/setup.cfg Running order_book-0.5.0/setup.py -q bdist_egg --dist-dir /var/folders/yx/5qqmfqr546d5qcclbk5ykrrh0000gp/T/easy_install-4ikhersu/order_book-0.5.0/egg-dist-tmp-x1wc0q9m /opt/homebrew/Caskroom/miniforge/base/lib/python3.9/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn( In file included from orderbook/orderbook.c:7: orderbook/orderbook.h:124:15: warning: incompatible function pointer types initializing 'freefunc' (aka 'void ()(void )') with an expression of type 'void (PyObject )' (aka 'void (struct _object )') [-Wincompatible-function-pointer-types] .m_free = order_book_free, ^~~~~~~ orderbook/orderbook.c:543:9: warning: incompatible pointer to integer conversion passing 'void ' to parameter of type 'long' [-Wint-conversion] if (EXPECT(memchr(&data[startpos], (char) 'E', pos - startpos), 0)) { ^~~~~~~~~~~~~~~ orderbook/utils.h:13:44: note: expanded from macro 'EXPECT'

define EXPECT(EXPR, VAL) __builtin_expect((EXPR), (VAL))

                                       ^~~~~~

orderbook/orderbook.c:562:25: warning: passing 'uint8_t ' (aka 'unsigned char ') to parameter of type 'const char ' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (EXPECT(!strncmp(&data[startpos], "0.0000", 6) || memchr(&data[startpos], (char) 'E', pos - startpos), 0)) { ^~~~~~~ orderbook/utils.h:13:45: note: expanded from macro 'EXPECT'

define EXPECT(EXPR, VAL) __builtin_expect((EXPR), (VAL))

                                        ^~~~

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/string.h:84:26: note: passing argument to parameter 's1' here int strncmp(const char *s1, const char *s2, size_t __n); ^ 3 warnings generated. zip_safe flag not set; analyzing archive contents... pycache__.order_book.cpython-39: module references file No eggs found in /var/folders/yx/5qqmfqr546d5qcclbk5ykrrh0000gp/T/easy_install-4ikhersu/order_book-0.5.0/egg-dist-tmp-x1wc0q9m (setup script problem?) error: The 'order_book>=0.5.0' distribution was not found and is required by cryptofeed

Operating System: MacOS Monterey 12.5.1

Cryptofeed Version From source cryptofeed 2.3.1

cjelsa commented 1 year ago

After installing requirements.txt manually using pip the package installed from source with a few errors