Comments (4)
i resolved this in the main branch. will release an update later after more testing
from orderbook.
I've confirmed it works fine on my machine, thanks for the quick update.
from orderbook.
@bmoscon I got this error :
Updating dependencies
Resolving dependencies... (0.5s)
Package operations: 1 install, 1 update, 0 removals
• Updating aiohttp (3.9.1 -> 3.9.3)
• Installing order-book (0.6.0): Failed
ChefBuildError
Backend subprocess exited when trying to invoke build_wheel
running bdist_wheel
running build
running build_ext
building 'order_book' extension
creating build
creating build/temp.macosx-14.0-arm64-cpython-311
creating build/temp.macosx-14.0-arm64-cpython-311/orderbook
clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -I/private/var/folders/9y/26y83xyn2g36jr_6ds7g2lnw0000gn/T/tmpi91da1hd/.venv/include -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c orderbook/orderbook.c -o build/temp.macosx-14.0-arm64-cpython-311/orderbook/orderbook.o -O3
In file included from orderbook/orderbook.c:7:
orderbook/orderbook.h:124:15: error: 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: error: 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))
^~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX14.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);
^
1 warning and 2 errors generated.
error: command '/usr/bin/clang' failed with exit code 1
at ~/.local/pipx/venvs/poetry/lib/python3.12/site-packages/poetry/installation/chef.py:164 in _prepare
160│
161│ error = ChefBuildError("\n\n".join(message_parts))
162│
163│ if error is not None:
→ 164│ raise error from None
165│
166│ return path
167│
168│ def _prepare_sdist(self, archive: Path, destination: Path | None = None) -> Path:
Note: This error originates from the build backend, and is likely not a problem with poetry but with order-book (0.6.0) not supporting PEP 517 builds. You can verify this by running 'pip wheel --no-cache-dir --use-pep517 "order-book (==0.6.0)"'.
from orderbook.
@aifirstd3v you have to pull the repo and manually build it. I havent released the wheel / code yet, but I will do so later this week. I just resolved the last 2 warnings that I was getting so you shouldnt have any issues building now
from orderbook.
Related Issues (17)
- error occured when pip install HOT 8
- Methods to return data as list HOT 4
- support .items() on orderbook sides
- use skiplist to improve 4x cpu performance HOT 2
- Can we inherit this OrderBook? HOT 2
- how to use to_list? HOT 1
- SortedDict iteration behavior HOT 2
- Issues installing from source HOT 2
- please release v 0.6.0 HOT 1
- Wrong length of list in 'to_list' method HOT 1
- Implementation Performance HOT 2
- Errors while creating many OrderBook instances HOT 4
- Build on windows fails HOT 1
- Checksum segmentation fault [kraken] HOT 3
- SortedDict has an unexpected behaviour after interrupted for-loops HOT 3
- How to remove a price? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from orderbook.