Giter Club home page Giter Club logo

Comments (8)

JoshYuJump avatar JoshYuJump commented on May 26, 2024

I tests it and it's OK in my situation.

Here are the steps:

# 1st, launch the python 3.9.2 docker container 
docker run -it python:3.9.2-slim /bin/bash

# 2nd, upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command
/usr/local/bin/python -m pip install --upgrade pip

# 3rd, install ujson, bali-core v3.1.0 require  ujson<5.0.0,>=4.0.1
root@d1d0ccb1175f:/# pip install ujson==4.3.0
Collecting ujson==4.3.0
  Using cached ujson-4.3.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (214 kB)
Installing collected packages: ujson
Successfully installed ujson-4.3.0

Would please show us the specific error message.

from bali.

Ed-XCF avatar Ed-XCF commented on May 26, 2024

try pip install bali-core==2.1.3, not pip install ujson==4.3.0

from bali.

JoshYuJump avatar JoshYuJump commented on May 26, 2024

Oh yes, i see. It's ujson-3.2.0 in Bali v2.1.3.

root@d1d0ccb1175f:/# pip install ujson==3.2.0
Collecting ujson==3.2.0
  Downloading ujson-3.2.0.tar.gz (7.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.1/7.1 MB 192.2 kB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: ujson
  Building wheel for ujson (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for ujson (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [13 lines of output]
      running bdist_wheel
      running build
      running build_ext
      building 'ujson' extension
      creating build
      creating build/temp.linux-aarch64-cpython-39
      creating build/temp.linux-aarch64-cpython-39/deps
      creating build/temp.linux-aarch64-cpython-39/deps/double-conversion
      creating build/temp.linux-aarch64-cpython-39/deps/double-conversion/double-conversion
      creating build/temp.linux-aarch64-cpython-39/lib
      creating build/temp.linux-aarch64-cpython-39/python
      gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I./python -I./lib -I./deps/double-conversion/double-conversion -I/usr/local/include/python3.9 -c ./deps/double-conversion/double-conversion/bignum-dtoa.cc -o build/temp.linux-aarch64-cpython-39/./deps/double-conversion/double-conversion/bignum-dtoa.o -D_GNU_SOURCE
      error: command 'gcc' failed: No such file or directory
      [end of output]

Are you having the same problem? @Ed-XCF

from bali.

Ed-XCF avatar Ed-XCF commented on May 26, 2024

x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-RNBry6/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I./python -I./lib -I./deps/double-conversion/double-conversion -I/home/tofu/code/financial/finture-financial/venv/include -I/usr/include/python3.9 -c ./deps/double-conversion/double-conversion/bignum-dtoa.cc -o build/temp.linux-x86_64-cpython-39/./deps/double-conversion/double-conversion/bignum-dtoa.o -D_GNU_SOURCE
error: command 'x86_64-linux-gnu-gcc' failed: No such file or directory
[end of output]

from bali.

JoshYuJump avatar JoshYuJump commented on May 26, 2024

Your host should have installed gcc and g++ to build c++ files because there's no wheel package for ujson-3.2.0 in python 3.9. ref: https://pypi.org/project/ujson/3.2.0/#files @Ed-XCF

Other options:

  1. Downgrade to python 3.8 base image
  2. Upgrade to Bali 3.1.0, it's already stable

from bali.

Ed-XCF avatar Ed-XCF commented on May 26, 2024

should we streamline dependencies

from bali.

JoshYuJump avatar JoshYuJump commented on May 26, 2024

should we streamline dependencies

It's already done in v3.1.0.

Maybe I can release a v2.1.9 to fixed it, does this meet your needs? @Ed-XCF

from bali.

Ed-XCF avatar Ed-XCF commented on May 26, 2024

no, I need keep in 2.1.3, so, thank you

from bali.

Related Issues (20)

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.