You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "zhengruifeng (via GitHub)" <gi...@apache.org> on 2023/05/22 01:21:22 UTC

[GitHub] [spark] zhengruifeng opened a new pull request, #41248: [SPARK-43601][INFRA] Remove the upper bound of `matplotlib` in requirements

zhengruifeng opened a new pull request, #41248:
URL: https://github.com/apache/spark/pull/41248

   ### What changes were proposed in this pull request?
   Remove the upper bound of `matplotlib` in requirements
   
   
   ### Why are the changes needed?
   1, actually, `matplotlib` is not pinned in CI;
   2, `matplotlib<3.3.0` fails `pip install -U -r dev/requirements.txt` in some cases, e.g. in `ubuntu 20.04`
   ```
         gcc -pthread -B /home/ruifeng.zheng/miniconda3/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/ruifeng.zheng/miniconda3/include -fPIC -O2 -isystem /home/ruifeng.zheng/miniconda3/include -fPIC -DFREETYPE_BUILD_TYPE=system -DPY_ARRAY_UNIQUE_SYMBOL=MPL_matplotlib_ft2font_ARRAY_API -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -D__STDC_FORMAT_MACROS=1 -Iextern/agg24-svn/include -I/home/ruifeng.zheng/miniconda3/lib/python3.10/site-packages/numpy/core/include -I/home/ruifeng.zheng/miniconda3/include/python3.10 -c src/checkdep_freetype2.c -o build/temp.linux-x86_64-cpython-310/src/checkdep_freetype2.o
         src/checkdep_freetype2.c:3:6: error: #error "FreeType version 2.3 or higher is required. You may set the MPLLOCALFREETYPE environment variable to 1 to let Matplotlib download it."
              #error "FreeType version 2.3 or higher is required. \
               ^~~~~
         src/checkdep_freetype2.c:10:10: error: #include expects "FILENAME" or <FILENAME>
          #include FT_FREETYPE_H
                   ^~~~~~~~~~~~~
         src/checkdep_freetype2.c:15:9: note: #pragma message: Compiling with FreeType version FREETYPE_MAJOR.FREETYPE_MINOR.FREETYPE_PATCH.
          #pragma message("Compiling with FreeType version " \
                  ^~~~~~~
         src/checkdep_freetype2.c:18:4: error: #error "FreeType version 2.3 or higher is required. You may set the MPLLOCALFREETYPE environment variable to 1 to let Matplotlib download it."
            #error "FreeType version 2.3 or higher is required. \
             ^~~~~
         error: command '/usr/bin/gcc' failed with exit code 1
         [end of output]
   
     note: This error originates from a subprocess, and is likely not a problem with pip.
   error: legacy-install-failure
   
   × Encountered error while trying to install package.
   ╰─> matplotlib
   ```
   
   
   
   ### Does this PR introduce _any_ user-facing change?
   no, dev-only
   
   
   ### How was this patch tested?
   manually test
   


-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] zhengruifeng commented on pull request #41248: [SPARK-43601][INFRA] Remove the upper bound of `matplotlib` in requirements

Posted by "zhengruifeng (via GitHub)" <gi...@apache.org>.
zhengruifeng commented on PR #41248:
URL: https://github.com/apache/spark/pull/41248#issuecomment-1556423040

   > Hi, @zhengruifeng . Does it mean we need to add a lower-bound instead?
   > 
   > >
   
   I guess we don't need a lower-bound:
   1, we don't use a lower-bound in [CI](https://github.com/apache/spark/blob/master/dev/infra/Dockerfile#L68);
   2, the `matplotlib` is only used in Pandas API on Spark, and `pandas` already has a [lower-bound](https://github.com/pandas-dev/pandas/blob/main/requirements-dev.txt#L29) `matplotlib>=3.6.1` for `matplotlib`.


-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] zhengruifeng closed pull request #41248: [SPARK-43601][INFRA] Remove the upper bound of `matplotlib` in requirements

Posted by "zhengruifeng (via GitHub)" <gi...@apache.org>.
zhengruifeng closed pull request #41248: [SPARK-43601][INFRA] Remove the upper bound of `matplotlib` in requirements
URL: https://github.com/apache/spark/pull/41248


-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] zhengruifeng commented on pull request #41248: [SPARK-43601][INFRA] Remove the upper bound of `matplotlib` in requirements

Posted by "zhengruifeng (via GitHub)" <gi...@apache.org>.
zhengruifeng commented on PR #41248:
URL: https://github.com/apache/spark/pull/41248#issuecomment-1556531491

   @dongjoon-hyun thank you for the reviews. 
   merged to master


-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] dongjoon-hyun commented on pull request #41248: [SPARK-43601][INFRA] Remove the upper bound of `matplotlib` in requirements

Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun commented on PR #41248:
URL: https://github.com/apache/spark/pull/41248#issuecomment-1556423778

   Then, Pefect! Thank you!


-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org