-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build for Python 3.8 on Ubuntu 18.04 #74
Comments
Hello @roflcoopter can you please check whether your default python version is 3.6 or 3.8. https://github.com/google-coral/pycoral/blob/master/Makefile#L17 |
Thanks for your response! Well, the script build.sh builds inside a docker container so my hosts python version wouldn't matter right? I modified the script to launch an ubuntu:18.04 image as base but that produces python 3.6 binaries. Tried modifying the Dockerfile as well to include python 3.8 but that results in dependency issues during build. Is there a way to build without using docker? |
We don't have any steps to build with out docker. I think, Docker image ubuntu:18.04 itself has python 3.6. Can you try to build the ubuntu image with python 3.8 and pass that image here: https://github.com/google-coral/pycoral/blob/master/scripts/build.sh#L44 |
Managed to do it! I modified RUN add-apt-repository ppa:deadsnakes/ppa
RUN DEBIAN_FRONTEND=noninteractive apt install -y \
python3.8 \
python3-pip \
python3.8-dev \
python3.8-full \
libpython3.8-dev \
libpython3.8-dev:armhf \
libpython3.8-dev:arm64
RUN python3.8 -m pip install cython numpy
ENV CPLUS_INCLUDE_PATH="$CPLUS_INCLUDE_PATH:/usr/include/python3.8/:/usr/include/aarch64-linux-gnu/python3.8/" And lastly i modified https://github.com/google-coral/pycoral/blob/master/Makefile#L15 to: PYTHON ?= $(shell which python3.8) |
Description
I need to build pycoral and tflite for for Python 3.8 on Ubuntu 18.04.
My application runs on a Jetson Nano (which only supports Ubuntu 18.04) and it requires Python 3.8.
If i install the pre-built wheels for Python 3.8 i get a dependency issue with GLIBC 2.29, which is not available in Ubuntu 18.04.
When i try to build this repo from source, and specify that i want to build for Python 3.8 it defaults to Ubuntu 20.04 which is a no go for me.
I edited the
scripts/build.sh
to only build for python 3.8, and changed python 3.8 to build inside theubuntu:18.04
image, but the build only outputs wheels for python 3.6. (egtflite_runtime-2.5.0.post1-cp36-cp36m-linux_aarch64.whl
)Why do the scripts not respect my chosen python version?
Click to expand!
Issue Type
Build/Install
Operating System
Ubuntu
Coral Device
USB Accelerator
Other Devices
No response
Programming Language
Python 3.8
Relevant Log Output
No response
The text was updated successfully, but these errors were encountered: