-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Closed
Labels
Resolution: DoneIssue is done internallyIssue is done internallyStatus: DoneIssue is done internallyIssue is done internally
Description
Problem Description
In an effort to once and for all get IDF working in a consistent basis, I made a Docker image that installs all the prerequisites, including Python, and yet I still can't get the install script to work, I assume it's a python versioning error but nothing I do can force it to use Python3.
Expected Behavior
install.sh esp32 should install the tools
Actual Behavior
> [16/24] RUN ./install.sh esp32:
#19 0.410 Detecting the Python interpreter
#19 0.410 Checking "python" ...
#19 0.412 /esp/esp-idf/tools/detect_python.sh: line 16: python: command not found
#19 0.414 Checking "python3" ...
#19 0.454 Python 3.5.2
#19 0.454 "python3" has been detected
#19 0.455 Installing ESP-IDF tools
#19 0.476 File "/esp/esp-idf/tools/idf_tools.py", line 382
#19 0.476 msg = f'Rename {path_from} to {path_to} failed'
#19 0.476 ^
#19 0.476 SyntaxError: invalid syntax
------
executor failed running [/bin/sh -c ./install.sh esp32]: exit code: 1
Steps to reproduce
Make a Dockerfile that installs python3, and checks out the 4.4 branch of ESP-IDF
FROM ubuntu
# Python
RUN apt-get install --reinstall ca-certificates
RUN apt-get install -y software-properties-common
RUN add-apt-repository ppa:deadsnakes/ppa
RUN apt-get update
RUN apt-get install -y python3
RUN alias python=python3
RUN apt-get install -y python3-pip
RUN pip3 install --user pipenv
#ESP-IDF
RUN apt-get install -y git wget flex bison gperf python3 python3-pip python3-setuptools cmake ninja-build ccache libffi-dev libssl-dev dfu-util libusb-1.0-0
RUN mkdir -p /esp
WORKDIR "/esp"
RUN git clone -b v4.4.1 --recursive https://github.com/espressif/esp-idf.git
WORKDIR "/esp/esp-idf"
ENV ESP_PYTHON=python3
RUN ./install.sh esp32
Metadata
Metadata
Assignees
Labels
Resolution: DoneIssue is done internallyIssue is done internallyStatus: DoneIssue is done internallyIssue is done internally