folly3 opened a new issue #10974:
URL: https://github.com/apache/airflow/issues/10974


   **Apache Airflow version**: 1.10.2
   
   - **OS** (e.g. from /etc/os-release): Mac OS X | 10.15.6
   
   **What happened**: I can't build image through using the following breeze 
commad
   
   ./breeze build-image --production-image --install-airflow-version="1.10.2"
   
   Removing intermediate container f0ac3df80323
    ---> 0ac6851388bc
   Step 50/65 : ENV AIRFLOW_INSTALL_VERSION=${AIRFLOW_INSTALL_VERSION}
    ---> Running in 057c99021846
   Removing intermediate container 057c99021846
    ---> 55e48234a411
   Step 51/65 : WORKDIR /opt/airflow
    ---> Running in 969b54f7df4c
   Removing intermediate container 969b54f7df4c
    ---> 3fb9c6b83054
   Step 52/65 : RUN pip install --user 
"${AIRFLOW_INSTALL_SOURCES}[${AIRFLOW_EXTRAS}]${AIRFLOW_INSTALL_VERSION}"     
--constraint "${AIRFLOW_CONSTRAINTS_URL}" &&     if [ -n 
"${ADDITIONAL_PYTHON_DEPS}" ]; then pip install --user 
${ADDITIONAL_PYTHON_DEPS}     --constraint "${AIRFLOW_CONSTRAINTS_URL}"; fi &&  
   find /root/.local/ -name '*.pyc' -print0 | xargs -0 rm -r &&     find 
/root/.local/ -type d -name '__pycache__' -print0 | xargs -0 rm -r
    ---> Running in 8891a38dcfed
   + pip install --user 
'apache-airflow[async,aws,azure,celery,dask,elasticsearch,gcp,kubernetes,mysql,postgres,redis,slack,ssh,statsd,virtualenv]==1.10.2'
 --constraint 
https://raw.githubusercontent.com/apache/airflow/constraints-1.10.2/constraints-3.7.txt
   Collecting 
apache-airflow[async,aws,azure,celery,dask,elasticsearch,gcp,kubernetes,mysql,postgres,redis,slack,ssh,statsd,virtualenv]==1.10.2
     Downloading apache-airflow-1.10.2.tar.gz (5.2 MB)
       ERROR: Command errored out with exit status 1:
        command: /usr/local/bin/python -c 'import sys, setuptools, tokenize; 
sys.argv[0] = '"'"'/tmp/pip-install-f0xtaqnq/apache-airflow/setup.py'"'"'; 
__file__='"'"'/tmp/pip-install-f0xtaqnq/apache-airflow/setup.py'"'"';f=getattr(tokenize,
 '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', 
'"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info 
--egg-base /tmp/pip-pip-egg-info-64dcdo1n
            cwd: /tmp/pip-install-f0xtaqnq/apache-airflow/
       Complete output (11 lines):
       /tmp/pip-install-f0xtaqnq/apache-airflow/setup.py:23: 
DeprecationWarning: the imp module is deprecated in favour of importlib; see 
the module's documentation for alternative uses
         import imp
       Traceback (most recent call last):
         File "<string>", line 1, in <module>
         File "/tmp/pip-install-f0xtaqnq/apache-airflow/setup.py", line 429, in 
<module>
           do_setup()
         File "/tmp/pip-install-f0xtaqnq/apache-airflow/setup.py", line 287, in 
do_setup
           verify_gpl_dependency()
         File "/tmp/pip-install-f0xtaqnq/apache-airflow/setup.py", line 53, in 
verify_gpl_dependency
           raise RuntimeError("By default one of Airflow's dependencies 
installs a GPL "
       RuntimeError: By default one of Airflow's dependencies installs a GPL 
dependency (unidecode). To avoid this dependency set 
SLUGIFY_USES_TEXT_UNIDECODE=yes in your environment when you install or upgrade 
Airflow. To force installing the GPL version set AIRFLOW_GPL_UNIDECODE
       ----------------------------------------
   ERROR: Command errored out with exit status 1: python setup.py egg_info 
Check the logs for full command output.
   The command '/bin/bash -o pipefail -e -u -x -c pip install --user 
"${AIRFLOW_INSTALL_SOURCES}[${AIRFLOW_EXTRAS}]${AIRFLOW_INSTALL_VERSION}"     
--constraint "${AIRFLOW_CONSTRAINTS_URL}" &&     if [ -n 
"${ADDITIONAL_PYTHON_DEPS}" ]; then pip install --user 
${ADDITIONAL_PYTHON_DEPS}     --constraint "${AIRFLOW_CONSTRAINTS_URL}"; fi &&  
   find /root/.local/ -name '*.pyc' -print0 | xargs -0 rm -r &&     find 
/root/.local/ -type d -name '__pycache__' -print0 | xargs -0 rm -r' returned a 
non-zero code: 1
   
   
   I don't understand this error, I ran the same command with another version 
of airflow (./breeze build-image --production-image 
--install-airflow-version="1.10.2") and it worked as well.
   
   I have to use the version 1.10.2 and for me breeze is a good way to build 
env easily.
   
   Best regards,
   
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to