You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2022/08/08 17:11:21 UTC

[GitHub] [beam] kileys opened a new issue, #22621: [Bug]: Python build RC wheels failure

kileys opened a new issue, #22621:
URL: https://github.com/apache/beam/issues/22621

   ### What happened?
   
   ```
   /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/_distutils_hack/__init__.py:19: UserWarning: Distutils was imported before Setuptools, but importing Setuptools also replaces the `distutils` module in `sys.modules`. This may lead to undesirable behaviors or errors. To avoid these issues, avoid using distutils directly, ensure that setuptools is installed in the traditional way (e.g. not an editable install), and/or make sure that setuptools is always imported before distutils.
       "Distutils was imported before Setuptools, but importing Setuptools "
     /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/_distutils_hack/__init__.py:33: UserWarning: Setuptools is replacing distutils.
       warnings.warn("Setuptools is replacing distutils.")
     Traceback (most recent call last):
       File "/Users/runner/hostedtoolcache/Python/3.7.13/x64/lib/python3.7/site-packages/cibuildwheel/resources/get-pip.py", line 22318, in <module>
         main()
       File "/Users/runner/hostedtoolcache/Python/3.7.13/x64/lib/python3.7/site-packages/cibuildwheel/resources/get-pip.py", line 198, in main
         bootstrap(tmpdir=tmpdir)
       File "/Users/runner/hostedtoolcache/Python/3.7.13/x[64](https://github.com/apache/beam/runs/7701131404?check_suite_focus=true#step:11:66)/lib/python3.7/site-packages/cibuildwheel/resources/get-pip.py", line 120, in bootstrap
         import setuptools  # noqa
       File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/setuptools/__init__.py", line 8, in <module>
         import _distutils_hack.override  # noqa: F401
       File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/_distutils_hack/override.py", line 1, in <module>
         __import__('_distutils_hack').do_override()
       File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/_distutils_hack/__init__.py", line 77, in do_override
         ensure_local_distutils()
       File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/_distutils_hack/__init__.py", line 64, in ensure_local_distutils
         assert '_distutils' in core.__file__, core.__file__
     AssertionError: /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/core.py
                                                                 ✕ 2.18s
   Error: Command ['python', PosixPath('/Users/runner/hostedtoolcache/Python/3.7.13/x64/lib/python3.7/site-packages/cibuildwheel/resources/get-pip.py'), '-c', PosixPath('/Users/runner/hostedtoolcache/Python/3.7.13/x64/lib/python3.7/site-packages/cibuildwheel/resources/constraints-python37.txt')] failed with code 1. None
   ```
   
   https://github.com/apache/beam/runs/7701131404?check_suite_focus=true
   
   ### Issue Priority
   
   Priority: 1
   
   ### Issue Component
   
   Component: testing


-- 
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: github-unsubscribe@beam.apache.org.apache.org

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


[GitHub] [beam] kileys closed issue #22621: [Bug]: Python build RC wheels failure

Posted by GitBox <gi...@apache.org>.
kileys closed issue #22621: [Bug]: Python build RC wheels failure
URL: https://github.com/apache/beam/issues/22621


-- 
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: github-unsubscribe@beam.apache.org

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


[GitHub] [beam] AnandInguva commented on issue #22621: [Bug]: Python build RC wheels failure

Posted by GitBox <gi...@apache.org>.
AnandInguva commented on issue #22621:
URL: https://github.com/apache/beam/issues/22621#issuecomment-1208610769

   .take-issue


-- 
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: github-unsubscribe@beam.apache.org

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


[GitHub] [beam] AnandInguva commented on issue #22621: [Bug]: Python build RC wheels failure

Posted by GitBox <gi...@apache.org>.
AnandInguva commented on issue #22621:
URL: https://github.com/apache/beam/issues/22621#issuecomment-1208614280

   Recently the use of distutils was updated. The build RC wheels test has been skipped on the master branch. 
   
   `cibuildwheel` is used to build wheels for the Beam Python SDK. We use 1.11.0 version which is very old and with `setuptools>=60`, it causes an assertion error. More details can be found here https://github.com/pypa/setuptools/issues/2993. 
   
   Working on a PR to create a fix for this bug.
    


-- 
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: github-unsubscribe@beam.apache.org

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


[GitHub] [beam] tvalentyn commented on issue #22621: [Bug]: Python build RC wheels failure

Posted by GitBox <gi...@apache.org>.
tvalentyn commented on issue #22621:
URL: https://github.com/apache/beam/issues/22621#issuecomment-1208399828

   @AnandInguva is investigating. Thanks


-- 
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: github-unsubscribe@beam.apache.org

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


[GitHub] [beam] kileys commented on issue #22621: [Bug]: Python build RC wheels failure

Posted by GitBox <gi...@apache.org>.
kileys commented on issue #22621:
URL: https://github.com/apache/beam/issues/22621#issuecomment-1208387664

   @AnandInguva Potentially related to distutils change?
   cc: @tvalentyn 


-- 
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: github-unsubscribe@beam.apache.org

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


[GitHub] [beam] aaltay commented on issue #22621: [Bug]: Python build RC wheels failure

Posted by GitBox <gi...@apache.org>.
aaltay commented on issue #22621:
URL: https://github.com/apache/beam/issues/22621#issuecomment-1209661225

   Thank you for the quick resolution!


-- 
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: github-unsubscribe@beam.apache.org

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