You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "raulcd (via GitHub)" <gi...@apache.org> on 2025/09/17 09:44:38 UTC

[I] [CI][Python] Use Debug build on our Windows Python CI job [arrow]

raulcd opened a new issue, #47583:
URL: https://github.com/apache/arrow/issues/47583

   ### Describe the enhancement requested
   
   When we migrated from AppVeyor to GitHub we `set CMAKE_BUILD_TYPE=Release` it would be good to use `Debug` builds.
   When trying to naively set `set CMAKE_BUILD_TYPE=Debug` we got:
   ```
   | =================================== ERRORS ====================================
   | ________________________ ERROR collecting test session ________________________
   | C:\Python313\Lib\importlib\__init__.py:88: in import_module
   |     return _bootstrap._gcd_import(name[level:], package, level)
   |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   | <frozen importlib._bootstrap>:1387: in _gcd_import
   |     ???
   | <frozen importlib._bootstrap>:1360: in _find_and_load
   |     ???
   | <frozen importlib._bootstrap>:1310: in _find_and_load_unlocked
   |     ???
   | <frozen importlib._bootstrap>:488: in _call_with_frames_removed
   |     ???
   | <frozen importlib._bootstrap>:1387: in _gcd_import
   |     ???
   | <frozen importlib._bootstrap>:1360: in _find_and_load
   |     ???
   | <frozen importlib._bootstrap>:1331: in _find_and_load_unlocked
   |     ???
   | <frozen importlib._bootstrap>:935: in _load_unlocked
   |     ???
   | <frozen importlib._bootstrap_external>:1026: in exec_module
   |     ???
   | <frozen importlib._bootstrap>:488: in _call_with_frames_removed
   |     ???
   | C:\Python313\Lib\site-packages\pyarrow\__init__.py:61: in <module>
   |     import pyarrow.lib as _lib
   | pyarrow/config.pxi:95: in init pyarrow.lib
   |     ???
   | pyarrow/config.pxi:75: in pyarrow.lib._build_info
   |     ???
   | <stringsource>:44: in string.to_py.__pyx_convert_PyBytes_string_to_py_6libcpp_6string_std__in_string
   |     ???
   | E   MemoryError
   ```
   Relevant stackoverflow:
   https://stackoverflow.com/questions/62792200/c-std-string-different-between-debug-and-release-dynamic-library/72481742#72481742
   
   This is because we are building PyArrow on Release mode on Windows no matter the value for `PYARROW_BUILD_TYPE` because of:
   https://github.com/apache/arrow/blob/6c0c3cd082b52660ae28b7bce6507a9f2d9f1091/python/setup.py#L175-L179
   
   This started as a conversation on:
   https://github.com/apache/arrow/pull/47567#discussion_r2354622624
   
   ### Component(s)
   
   Continuous Integration, Python


-- 
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: issues-unsubscribe@arrow.apache.org.apache.org

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


Re: [I] [CI][Python] Use Debug build on our Windows Python CI job [arrow]

Posted by "raulcd (via GitHub)" <gi...@apache.org>.
raulcd commented on issue #47583:
URL: https://github.com/apache/arrow/issues/47583#issuecomment-4925207309

   Issue resolved by pull request 50406
   https://github.com/apache/arrow/pull/50406


-- 
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@arrow.apache.org

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


Re: [I] [CI][Python] Use Debug build on our Windows Python CI job [arrow]

Posted by "pitrou (via GitHub)" <gi...@apache.org>.
pitrou commented on issue #47583:
URL: https://github.com/apache/arrow/issues/47583#issuecomment-4891408683

   @raulcd Can this be revisited now we have migrated to Meson?


-- 
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@arrow.apache.org

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


Re: [I] [CI][Python] Use Debug build on our Windows Python CI job [arrow]

Posted by "raulcd (via GitHub)" <gi...@apache.org>.
raulcd commented on issue #47583:
URL: https://github.com/apache/arrow/issues/47583#issuecomment-3302190322

   As pointer by @pitrou on the original comment thread that check might be obsolete, quoting the original comment below:
   
   > Oh, by the way, that check might be obsolete because:
   >> Changed in version 3.8: Release builds and debug builds are now ABI compatible
   >
   > https://docs.python.org/3/using/configure.html#python-debug-build
   


-- 
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@arrow.apache.org

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


Re: [I] [CI][Python] Use Debug build on our Windows Python CI job [arrow]

Posted by "raulcd (via GitHub)" <gi...@apache.org>.
raulcd closed issue #47583: [CI][Python] Use Debug build on our Windows Python CI job
URL: https://github.com/apache/arrow/issues/47583


-- 
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: issues-unsubscribe@arrow.apache.org

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