Comments (8)
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.
try pip install bali-core==2.1.3
, not pip install ujson==4.3.0
from bali.
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.
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.
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:
- Downgrade to python 3.8 base image
- Upgrade to Bali 3.1.0, it's already stable
from bali.
should we streamline dependencies
from bali.
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.
no, I need keep in 2.1.3, so, thank you
from bali.
Related Issues (20)
- Introduce the protobuf practice which `bali` using HOT 1
- Enhanced configuration HOT 1
- logging out of the box
- Unify the file structure of different types of services HOT 1
- Docs of why to use bali framework
- 打开openapi页面时有的sqlalchemy转换报错 HOT 11
- Integrate FastAPI migration, like `Flask-Migrate`
- 我怎样去修改Resource中自定义action的response.status_code HOT 3
- asyncio SQLAlchemy HOT 2
- Hope to support python11 version HOT 1
- 是否可以加个微信群或者其他沟通渠道 HOT 17
- error when using alembic with asyncpg HOT 1
- Feature: `Bali.register()` - support separate registration of `HTTP Router` and `RPC Service` HOT 2
- How to modify the default port? HOT 2
- fetaure: allows customization of the settings module. HOT 1
- Add a ModelResource HOT 1
- How to create a background task in gRPC service HOT 3
- Dependencies updates
- Distributed transactions solution or integrate with third-party methods 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 bali.