Giter Club home page Giter Club logo

Comments (4)

bmoscon avatar bmoscon commented on August 31, 2024 1

i resolved this in the main branch. will release an update later after more testing

from orderbook.

aceamro avatar aceamro commented on August 31, 2024

I've confirmed it works fine on my machine, thanks for the quick update.

from orderbook.

aifirstd3v avatar aifirstd3v commented on August 31, 2024

@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.

bmoscon avatar bmoscon commented on August 31, 2024

@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)

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.